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

Write Neo4J queries & schema for VFB content report. #56

Open
dosumis opened this issue Jan 14, 2020 · 1 comment
Open

Write Neo4J queries & schema for VFB content report. #56

dosumis opened this issue Jan 14, 2020 · 1 comment

Comments

@dosumis
Copy link
Member

dosumis commented Jan 14, 2020

Draft report content & queries

Number of neuron types + number of refs

MATCH (c:Class:Neuron) where c.short_form =~ 'FBbt.+'  
WITH c OPTIONAL MATCH (c)-[]->(p:pub) 
RETURN count(distinct c), count (distinct p)

Number of nervous system regions + number of refs

MATCH (c:Class) WHERE c.short_form =~ 'FBbt.+' 
AND ANY(x IN['Synaptic_neuropil', 'Neuron_projection_bundle', 'Ganglion', 'Neuromere']
                  WHERE x in labels(c)) 
WITH c OPTIONAL MATCH (c)-[]->(p:pub) 
RETURN count(distinct c), count (distinct p)

Number of images & datasets (in production)

MATCH (i:Individual)-[]->(n:DataSet) WHERE n.production 
 RETURN count distinct(i) count distinct(n)

Number of split types and images:

MATCH (i:Split)-[:INSTANCEOF]->(c:Class) 
RETURN count (distinct i), count (distinct c)

...or more elaborate, with dataset pub check & annotation count:

MATCH (ds:DataSet)<-[]-(i:Split)-[:INSTANCEOF]->(c:Class) 
WHERE ds.production
WITH i, c OPTIONAL MATCH (anoni:Individual)-[r]->(c) 
WHERE exists(r.pub) 
RETURN count (distinct i), count (distinct c), count (distinct r)
@dosumis
Copy link
Member Author

dosumis commented Jan 21, 2020

All of these queries should go into a script that generates a report node every time pdb is built.

How to put version information on node?

  1. Datestamp release
  2. Would be good to get ontology and FlyBase IDs in .... (investigate getting ontology version iri in through KB update. Easy if in JSON).

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