@@ -452,41 +452,53 @@ Tree2
452452
453453## Lineage Motif Search
454454
455- * Menu Location: ` Plugins > Lineage Analysis > Lineage Motif Search `
456- * This command is capable of finding lineage motifs that are similar to a motif defined by a selection of the user.
457- * The linage motif search operates on Mastodon's branch graph.
455+ * Menu Location: ` Plugins > Lineage Analysis > Find lineage motifs `
456+ * This command is capable of finding lineage motifs that are similar to a motif defined by either a tracklet selected by
457+ the user or a tracklet imported via a graph ml file.
458+ * The linage motif search can operate on Mastodon's branch graph or on the model graph. While using the model graph is
459+ slightly more accurate, it is recommended to use the branch graph since it is a lot faster.
458460* Lineage trees are considered similar if they share a similar structure and thus represent a similar cell division
459- pattern. The structure of a lineage tree is represented by the tree topology .
461+ pattern. The tree topology represents the structure of a lineage tree.
460462 This tree topology consists of the actual branching pattern and the cell lifetimes,
461- i.e., the time points between two subsequent cell divisions.
462- * The algorithm iterates over the branch graph
463+ i.e., the time points between two cell divisions.
463464
464465### Workflow
465466
466- 1 . The user selects a motif in the track scheme, which should be searched for in the lineage trees.
467+ 1 . The user selects a motif
468+ 1 . By selecting it in the track scheme
469+ 2 . By importing it from a graph ml file
4674702 . The algorithm iterates over each branch in the branch graph using an offset before the first division, which is the
468471 same as the duration before the first division of the selected motif.
469- 3 . For each branch, the algorithm computes the tree edit distance between the selected motif and the branch
472+ 3 . For each branch, the algorithm computes the tree edit distance between the selected (imported) motif and the branch
470473 tree. For more details on the tree edit distance, see section [ Zhang tree edit distance] ( #zhang-tree-edit-distance ) .
471- 4 . The algorithm creates a new tag set and tags the spots belonging to the ` n ` most similar branches with a color
474+ 4 . The algorithm sorts the branches based on their computed distance (ascending order) to the selected (imported) motif.
475+ 5 . The algorithm creates a new tag set and tags the spots belonging to the ` n ` most similar branches with a color
472476 that is faded out from the original motif color. ` n ` is the number of motifs specified by the user. The lower the
473477 computed distance, the more similar the found motif is to the original motif.
474478
475479### Usage
476480
477- 1 . The user selects a motif in the track scheme, which should be searched for in the lineage trees.
478- 1 . The motif must have exactly one root node, i.e. the selected spots all must be connected to one root spot.
481+ 1 . The user selects a motif, which should be searched for in the lineage trees.
482+ 1 . Directly in the track scheme
483+ 2 . By importing it from a graph ml file. The file can be chosen to choose the file in the dialog
484+ 3 . In both cases: the motif must have exactly one root node, i.e., the selected spots all must be connected to one
485+ root spot.
4794862 . Open the dialog. Set the parameters and click on ` OK ` .
480- 3 . Visualize the results in the track scheme and/or the BigDataViewer using ` View > Coloring > The generated tag set ` .
487+ 3 . The algorithm computes the most similar motifs in the lineage trees and creates a new tag set with a tag and color
488+ for each found motif.
489+ 4 . Visualize the results in the track scheme and/or the BigDataViewer using ` View > Coloring > The generated tag set ` .
481490
482491### Parameters
483492
484493* Number of motifs
485494 * The number of motifs to search for in the lineage trees.
486495 * The given motif will always be included in the results.
487- * Color
488- * A color that will be used to tag spots that are part of a motif. The actual colors will be faded out versions of
489- the given color. The more the color is faded, the less similar is the found motif to the original motif.
496+ * Color of the most similar motif
497+ * A color that will be used to tag spots that are part of the most similar motif.
498+ * Color of the least similar motif
499+ * A color that will be used to tag spots that are part of the least similar motif.
500+ * The colors of the motifs in between will be interpolated on a gradient from the color of the most similar motif to
501+ the color of the least similar motif.
490502* Similarity measure:
491503 1 . (default) ![ normalized_zhang_distance.gif] ( doc/clustering/normalized_zhang_distance.gif ) <sup >1,2</sup >
492504 2 . ![ per_branch_zhang_distance.gif] ( doc/clustering/per_branch_zhang_distance.gif ) <sup >1</sup >
@@ -495,6 +507,19 @@ Tree2
495507 * <sup >1</sup >Local cost function: ![ local_cost.gif] ( doc/clustering/local_cost.gif )
496508 * <sup >2</sup >Local cost function with
497509 normalization: ![ local_cost_normalized.gif] ( doc/clustering/local_cost_normalized.gif )
510+ * Run on:
511+ * The graph on which the motif search should be run
512+ 1. Branch graph (default): faster, (sightly) less accurate
513+ 2. Model graph: much slower, (sightly) more accurate
514+ * Load motif from a file:
515+ * Only available when choosing Find similar motifs based on imported motif
516+ * The file must be a graph ml file containing a single tree with exactly one root node
517+ * Such a file can be exported from any Mastodon project using after selecting a tracklet and
518+ ` File > Export > Export selected spots to GraphML (one file) `
519+ * Scaling of the search motif:
520+ * Only available when choosing Find similar motifs based on imported motif
521+ * The imported motif can be scaled in time to account for faster or slower cell cycles in the current project
522+ compared to the project from which the motif had been exported.
498523
499524### Example
500525
0 commit comments