-
Notifications
You must be signed in to change notification settings - Fork 0
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 queries for dataset by content #71
Labels
Comments
Query for dataset by content (using labels on individuals) MATCH (ds:DataSet) where (ds)<-[:has_source]-(:Individual:Neuron) return distinct ds Query dataset by technique: MATCH (ds:DataSet) where (ds)<-[:has_source]-(:Individual)
<-[:depicts]-(:Individual)-[:is_specified_output_of]->(:Class { label: 'confocal microscopy'})
RETURN distinct ds |
Dataset return could usefully include label badges - although these need to be reduced to some minimal set. MATCH (ds:DataSet)
WHERE ds.short_form = 'Xu2020Neurons'
WITH ds MATCH (ds)<-[:has_source]-(i:Individual)
RETURN ds.short_form, ds.label,
REDUCE(s = [], tags IN COLLECT(distinct labels(i)) | s + tags)
(can be made into non-redundant set with APOC - trickier to do without APOC). |
With APOC MATCH (ds:DataSet)
WHERE ds.short_form = 'CarreiraRosario2018'
WITH ds MATCH (ds)<-[:has_source]-(i:Individual)
RETURN ds.short_form, ds.label,
apoc.coll.toSet(REDUCE(s = [], tags IN COLLECT(distinct labels(i)) | s + tags)) as ulabs
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: