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

Add find common ancestors query #51

Open
dosumis opened this issue Mar 1, 2021 · 1 comment
Open

Add find common ancestors query #51

dosumis opened this issue Mar 1, 2021 · 1 comment

Comments

@dosumis
Copy link
Member

dosumis commented Mar 1, 2021

LCA would be better, but not sure possible

Match (n:Class { label: 'EB-PB 1 glomerulus-D/Vgall neuron'}),
 (m:Class{ label:'EBw.AMP.s-Dga-s.b neuron'})
MATCH path=(n)-[:SUBCLASSOF*0..3]->(MRCA)<-[:SUBCLASSOF*0..3]-(m) 
return collect(MRCA.label)

returning graph

WITH ['EBw.AMP.s-Dga-s.b neuron',
 'EB-PB 1 glomerulus-D/Vgall neuron',
 'EB-PB glomerulus 6-Vgall neuron',
 'EB-PB 1 glomerulus-D/Vgall neuron',
 'EB-PB 1 glomerulus-D/Vgall neuron']  as fu 
MATCH (n:Class), (m:Class)
WHERE n.label in fu and m.label in fu
MATCH path=(n)-[:SUBCLASSOF*0..3]->(MRCA)<-[:SUBCLASSOF*0..3]-(m) 
return distinct path
@dosumis
Copy link
Member Author

dosumis commented Mar 1, 2021

This is potentially very useful for NBLAST results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant