Open iamamutt opened 2 years ago
Thanks for putting this together @iamamutt
There are 5000+ sessions with Behavior-2022
tag to be published to the public ibl?
There are 5000+ sessions with Behavior-2022 tag to be published to the public ibl?
Yeah I noticed that too, over 5000 sessions which have datasets with the behavior tag at least. I'm trying to confirm with Mayo or Gaelle to see if this is right.
As for the filtering, this can be fairly straight forward. Proposed changes to the code block around https://github.com/vathes/ibl-navigator/blob/29cd8b9858b1ca86422978423c8369c2de2956da/backend/iblapi.py#L275
sessiontags = acquisition.Session.aggr(behavior.SessionTag.Tag, session_tags='GROUP_CONCAT(tag SEPARATOR "; ")')
q = ((acquisition.Session() * sess_proj * psych_curve * ephys_data * subj *
subject.SubjectLab() * subject.SubjectUser() * trainingStatus * sessiontags) & args & brain_restriction)
and the filtering can be something like ... & f'session_tags LIKE "%{selected_tag}%"'
As for the filtering, this can be fairly straight forward. Proposed changes to the code block around
sessiontags = acquisition.Session.aggr(behavior.SessionTag.Tag, session_tags='GROUP_CONCAT(tag SEPARATOR "; ")') q = ((acquisition.Session() * sess_proj * psych_curve * ephys_data * subj * subject.SubjectLab() * subject.SubjectUser() * trainingStatus * sessiontags) & args & brain_restriction)
and the filtering can be something like
... & f'session_tags LIKE "%{selected_tag}%"'
@jverswijver or @guzman-raphael Do you happen to know the database user that the public navigator is using?
We would like to be able to deploy a test version of the public navigator connecting to schemas with the test_
prefix, and implementing the new publication tag filters. Thinh has already copied over the data to those schemas.
https://github.com/vathes/ibl-navigator/blob/29cd8b9858b1ca86422978423c8369c2de2956da/backend/iblapi.py#L218
TODO:
[ ] Add new "Publication" drop down filter with the queries' "tag" attribute as the possible options. The tag will be used to restrict the table to only the sessions corresponding to the selected tag. @jverswijver @guzman-raphael
[ ] Copied over sessions to the public IBL database. Currently, tags can only be accessed from the
SessionTag
andTag
tables on the internal IBL database. @ttngu207 @iamamuttTag info
behavior.Tag()
tableRepeated-Site-2022
tagBehavior-2022
tag