|
45 | 45 | import org.mastodon.mamut.model.Spot;
|
46 | 46 | import org.mastodon.mamut.plugin.MamutPlugin;
|
47 | 47 | import org.mastodon.mamut.tomancak.compact_lineage.CompactLineageFrame;
|
48 |
| -import org.mastodon.mamut.tomancak.divisioncount.ShowDivisionCountsOverTimeCommand; |
| 48 | +import org.mastodon.mamut.tomancak.divisioncount.ShowSpotAndDivisionCountsOverTimeCommand; |
49 | 49 | import org.mastodon.mamut.tomancak.divisiontagset.CellDivisionsTagSetCommand;
|
50 | 50 | import org.mastodon.mamut.tomancak.export.ExportCounts;
|
51 | 51 | import org.mastodon.mamut.tomancak.export.ExportDivisionCountsPerTimepointCommand;
|
@@ -102,7 +102,7 @@ public class TomancakPlugins extends AbstractContextual implements MamutPlugin
|
102 | 102 |
|
103 | 103 | private static final String EXPORT_DIVISION_COUNTS_PER_TIMEPOINT = "[tomancak] export division counts per timepoint";
|
104 | 104 |
|
105 |
| - private static final String SHOW_DIVISION_COUNTS_OVER_TIME = "[tomancak] show division counts over time"; |
| 105 | + private static final String SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME = "[tomancak] show division counts over time"; |
106 | 106 |
|
107 | 107 | private static final String ADD_CENTER_SPOTS = "[tomancak] add center spots";
|
108 | 108 | private static final String MIRROR_SPOTS = "[tomancak] mirror spots";
|
@@ -132,7 +132,7 @@ public class TomancakPlugins extends AbstractContextual implements MamutPlugin
|
132 | 132 |
|
133 | 133 | private static final String[] EXPORT_DIVISION_COUNTS_PER_TIMEPOINT_KEYS = { "not mapped" };
|
134 | 134 |
|
135 |
| - private static final String[] SHOW_DIVISION_COUNTS_OVER_TIME_KEYS = { "not mapped" }; |
| 135 | + private static final String[] SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME_KEYS = { "not mapped" }; |
136 | 136 |
|
137 | 137 | private static final String[] ADD_CENTER_SPOTS_KEYS = { "not mapped" };
|
138 | 138 | private static final String[] MIRROR_SPOTS_KEYS = { "not mapped" };
|
@@ -163,7 +163,7 @@ public class TomancakPlugins extends AbstractContextual implements MamutPlugin
|
163 | 163 | menuTexts.put( EXPORT_SPOTS_COUNTS_PER_LINEAGE, "Export spot counts per lineage" );
|
164 | 164 | menuTexts.put( EXPORT_SPOTS_COUNTS_PER_TIMEPOINT, "Export spot counts per timepoint" );
|
165 | 165 | menuTexts.put( EXPORT_DIVISION_COUNTS_PER_TIMEPOINT, "Export division counts per timepoint" );
|
166 |
| - menuTexts.put( SHOW_DIVISION_COUNTS_OVER_TIME, "Show division counts over time" ); |
| 166 | + menuTexts.put( SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME, "Show spot and division counts over time" ); |
167 | 167 | menuTexts.put( ADD_CENTER_SPOTS, "Add center spots" );
|
168 | 168 | menuTexts.put( MIRROR_SPOTS, "Mirror spots along X-axis" );
|
169 | 169 | menuTexts.put( CREATE_CONFLICT_TAG_SET, "Create conflict tag set" );
|
@@ -208,8 +208,9 @@ public void getCommandDescriptions( final CommandDescriptions descriptions )
|
208 | 208 | "Exports counts of spots per timepoint into CSV-like files to be imported in data processors. One file." );
|
209 | 209 | descriptions.add( EXPORT_DIVISION_COUNTS_PER_TIMEPOINT, EXPORT_DIVISION_COUNTS_PER_TIMEPOINT_KEYS,
|
210 | 210 | "Exports counts of divisions per timepoint into CSV-like files to be imported in data processors. One file." );
|
211 |
| - descriptions.add( SHOW_DIVISION_COUNTS_OVER_TIME, SHOW_DIVISION_COUNTS_OVER_TIME_KEYS, |
212 |
| - "Shows a plot of the number of divisions over time." ); |
| 211 | + descriptions.add( |
| 212 | + SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME, SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME_KEYS, |
| 213 | + "Shows a plot of the number of spots and divisions over time." ); |
213 | 214 | descriptions.add( ADD_CENTER_SPOTS, ADD_CENTER_SPOTS_KEYS, "On each timepoint with selected spots, add a new spot that is in the center (average position)." );
|
214 | 215 | descriptions.add( MIRROR_SPOTS, MIRROR_SPOTS_KEYS, "Mirror spots along x-axis." );
|
215 | 216 | descriptions.add( CREATE_CONFLICT_TAG_SET, CREATE_CONFLICT_TAG_SET_KEYS, "Search spots that overlap and create a tag set that highlights these conflicts." );
|
@@ -258,7 +259,7 @@ public void getCommandDescriptions( final CommandDescriptions descriptions )
|
258 | 259 |
|
259 | 260 | private final AbstractNamedAction exportDivisionCountsPerTimepointAction;
|
260 | 261 |
|
261 |
| - private final AbstractNamedAction showDivisionCountsOverTimeAction; |
| 262 | + private final AbstractNamedAction showSpotAndDivisionCountsOverTimeAction; |
262 | 263 |
|
263 | 264 | // private final AbstractNamedAction mergeProjectsAction;
|
264 | 265 |
|
@@ -298,7 +299,8 @@ public TomancakPlugins()
|
298 | 299 | exportSpotsCountsPerTimepointAction = new RunnableAction( EXPORT_SPOTS_COUNTS_PER_TIMEPOINT, this::exportCountsPerTimepoint );
|
299 | 300 | exportDivisionCountsPerTimepointAction =
|
300 | 301 | new RunnableAction( EXPORT_DIVISION_COUNTS_PER_TIMEPOINT, this::exportDivisionCountsPerTimepoint );
|
301 |
| - showDivisionCountsOverTimeAction = new RunnableAction( SHOW_DIVISION_COUNTS_OVER_TIME, this::showDivisionCountsOverTime ); |
| 302 | + showSpotAndDivisionCountsOverTimeAction = |
| 303 | + new RunnableAction( SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME, this::showSpotAndDivisionCountsOverTime ); |
302 | 304 | addCenterSpots = new RunnableAction( ADD_CENTER_SPOTS, this::addCenterSpots );
|
303 | 305 | mirrorSpots = new RunnableAction( MIRROR_SPOTS, this::mirrorSpots );
|
304 | 306 | createConflictTagSet = new RunnableAction( CREATE_CONFLICT_TAG_SET, this::createConflictTagSet );
|
@@ -329,7 +331,7 @@ public List< ViewMenuBuilder.MenuItem > getMenuItems()
|
329 | 331 | item( EXPORT_PHYLOXML ) ) ),
|
330 | 332 | menu( "Plugins",
|
331 | 333 | menu( "Lineage analysis",
|
332 |
| - item( SHOW_DIVISION_COUNTS_OVER_TIME ) ), |
| 334 | + item( SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME ) ), |
333 | 335 | menu( "Tags",
|
334 | 336 | item( LOCATE_TAGS ),
|
335 | 337 | item( COPY_TAG ),
|
@@ -384,7 +386,7 @@ public void installGlobalActions( final Actions actions )
|
384 | 386 | actions.namedAction( exportSpotsCountsPerLineageAction, EXPORTS_SPOTS_COUNTS_PER_LINEAGE_KEYS );
|
385 | 387 | actions.namedAction( exportSpotsCountsPerTimepointAction, EXPORTS_SPOTS_COUNTS_PER_TIMEPOINT_KEYS );
|
386 | 388 | actions.namedAction( exportDivisionCountsPerTimepointAction, EXPORT_DIVISION_COUNTS_PER_TIMEPOINT_KEYS );
|
387 |
| - actions.namedAction( showDivisionCountsOverTimeAction, SHOW_DIVISION_COUNTS_OVER_TIME_KEYS ); |
| 389 | + actions.namedAction( showSpotAndDivisionCountsOverTimeAction, SHOW_SPOT_AND_DIVISION_COUNTS_OVER_TIME_KEYS ); |
388 | 390 | actions.namedAction( addCenterSpots, ADD_CENTER_SPOTS_KEYS );
|
389 | 391 | actions.namedAction( mirrorSpots, MIRROR_SPOTS_KEYS );
|
390 | 392 | actions.namedAction( createConflictTagSet, CREATE_CONFLICT_TAG_SET_KEYS );
|
@@ -484,9 +486,9 @@ private void exportDivisionCountsPerTimepoint()
|
484 | 486 | "context", projectModel.getContext() );
|
485 | 487 | }
|
486 | 488 |
|
487 |
| - private void showDivisionCountsOverTime() |
| 489 | + private void showSpotAndDivisionCountsOverTime() |
488 | 490 | {
|
489 |
| - commandService.run( ShowDivisionCountsOverTimeCommand.class, true, "projectModel", projectModel ); |
| 491 | + commandService.run( ShowSpotAndDivisionCountsOverTimeCommand.class, true, "projectModel", projectModel ); |
490 | 492 | }
|
491 | 493 |
|
492 | 494 | private void changeBranchLabels()
|
|
0 commit comments