Closed dosumis closed 3 years ago
What is X:
MATCH p=(n:Entity)-[:INSTANCEOF|:SUBCLASSOF*..]->(x)
WHERE 'Anatomy' IN labels(x) AND
n.short_form = 'FBbt_00003686'
RETURN p, n.short_form as root
Where is X:
MATCH p=(Entity)-[:INSTANCEOF:part_of|has_synaptic_terminal_in|has_presynaptic_terminal_in|
has_postsynaptic_terminal_in|overlaps*..]->(x)
WHERE n.short_form = 'FBbt_00003686' return p, n.short_form as root
TBD: How to set the upper limits of terms to display in graph. We need to stop these spiralling off into abstract land.
Options:
@Robbie1977 to update queries (see below) and add to Geppetto config.
List of labels to use for restriction for now: Cell, Synaptic_neuropil, Ganglion, Neuron_projection_bundle
Example query with this type of restriction on:
MATCH p=(n:Entity)-[:SUBCLASSOF*..]->(x)
WHERE (('Cell' IN labels(x)) or ('synaptic neuropil' IN labels(x)))
AND n.short_form = 'FBbt_00003686' return p, n.short_form as root
Test - and expand list as needed later (probably need Sensory_organ, Tagma, segment, Neuromere)
Use APOC for list to list restriction.
Any progress? Is above description sufficient?
Current queries here:
https://github.com/VirtualFlyBrain/geppetto-vfb/issues/542
Basic queries are in place on this ticket, but still need to discuss how upper end is anchored - by type? By template?