A selection creator for Mastodon, as a Mastodon plugin.
Utility to create a selection model from parsing expressions, based on Curtis Rueden SciJava Parsington.
Expression are strings where a small language can be used to combine
conditions and filters on vertices and edges.
Check this for documentation and explanation fo the syntax: .
Examples:
Expression
Meaning
vertexFeature('Spot position', 'X') > 100.
Get all the vertices whose X position is strictly greater than 100. The specified feature value must be computed prior to parsing for this to return a useful selection.
tagSet('Reviewed by') == 'JY'
Return the vertices and edges tagged by JY in the tag-set Reviewed by. Of course, both specified tag-set and tag must exist.
vertexFeature('Spot N links') == 3 & vertexFeature('Spot frame') == 25
Get the vertices that are in the frame 25 AND have 3 edges.
vertexFeature('Spot N links') == 3 | vertexFeature('Spot frame') == 25
Get the vertices that have 3 edges plus the vertices in the frame 25.
Get the vertices that have 3 edges plus the vertices in the frame 25. Same as above, the + sign as the same meaning that |, but different priority so we have to add brackets to avoid errors.
请发表评论