Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace createBigDataViewer() and createTrackScheme() with createView() #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/partA/scripting_mastodon.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ This is done via the `WindowManager` gateway.
For instance, to create a BDV view with the current project, we write:

```python
from org.mastodon.mamut.views.bdv import MamutViewBdv

# A new BDV window.
mamut.getWindowManager().createBigDataViewer()
mamut.getWindowManager().createView( MamutViewBdv )
```

You should see this window appearing:
Expand Down Expand Up @@ -212,7 +214,7 @@ This is simply done with:
# Run the full tracking process.
trackmate.run()
# Show results.
mamut.getWindowManager().createBigDataViewer()
mamut.getWindowManager().createView( MamutViewBdv )
```

We get results that are slightly different from the previous run, as we changed the detection radius.
Expand Down Expand Up @@ -359,8 +361,10 @@ Let's visualize the tags we just assigned in a TrackScheme window.
We will again use the `WindowManager` gateway, using a python dictionary to configure settings.
We set the coloring mode to be a certain tag-set like this:
```python
from org.mastodon.mamut.views.trackscheme import MamutViewTrackScheme

displaySettings = {'TagSet' : 'Fruits'}
mamut.getWindowManager().createTrackScheme( displaySettings )
mamut.getWindowManager().createView( MamutViewTrackScheme, displaySettings )
```

![](../imgs/Mastodon_Scripting_05.png){width="80%" align="center"}
Expand Down