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

Ribbons for neuron classes in terminfo query summaries #29

Open
admclachlan opened this issue Jun 15, 2023 · 5 comments
Open

Ribbons for neuron classes in terminfo query summaries #29

admclachlan opened this issue Jun 15, 2023 · 5 comments

Comments

@admclachlan
Copy link

Example ribbon from FlyBase - https://flybase.org/reports/FBgn0050446

Idea is ribbon of squares with heat map colours and text for each square.

For now:
Badges are currently mostly neurotransmitters, but can use as an example.

  • example query: neurons connected to "PAM01 455159380"
  • just do inputs for now - will calculate using json labels.

Later goals if possible:

  • issue with using badges is they're biased towards NTs, which probably isn't the most important for most people.
  • Could use the list of superclasses/classes from FlyWire for FAFB. Other templates would need their own list.
  • Could also make contextual? If all neurons returned are in the same superclass, which seems likely, it may be better to then return the classes.
  • Superclasses - 9
  • Classes - ~25
@admclachlan
Copy link
Author

VFB to provide sample data to MetaCell

@Robbie1977
Copy link

Robbie1977 commented Jul 3, 2023

MATCH (a:has_neuron_connectivity {short_form:'VFB_jrchk32l'})<-[r:synapsed_to]-(b:has_neuron_connectivity) UNWIND(labels(b)) as l WITH * WHERE l contains "ergic" OPTIONAL MATCH (c:Class:Neuron) WHERE c.short_form starts with "FBbt_" AND toLower(c.label)=toLower(l+" neuron") RETURN distinct l as Neurotransmitter, c.short_form as link, sum(r.weight[0]) as weight ORDER BY weight Desc
http://pdb.virtualflybrain.org/browser/

@Robbie1977
Copy link

Robbie1977 commented Jul 3, 2023

Row Neurotransmitter Link weight
1 "GABAergic" "FBbt_00007228" 56
2 "Cholinergic" "FBbt_00007173" 30
3 "Dopaminergic" "FBbt_00005131" 23
4 "Serotonergic" "FBbt_00005133" 19
5 "Octopaminergic" "FBbt_00007364" 2
6 "Glutamatergic" "FBbt_00100291" 1

@enicolasgomez
Copy link
Collaborator

@Robbie1977 Hi Robbie, got a couple of questions about this item that popped out whly analyzing.

  1. Will you be providing us an API withing vfb_query that given a short_form (e.g. VFB_jrchk32l) it will return JSON data with the above table.

  2. For that same example, what we expect to render is only 1 ribbon, with 6 labels in which GABAergic would have the strongest color and Glutamatergic the lightest, correct?

  3. Link would reload VFB using that short_term initially?

@Robbie1977
Copy link

1: Yes so the query results schema would need to be extended to support ribbon-type results with all data and any query-level customisations needed. As the ribbons are in place of the preview table of results it would be at that level so it would be pre-computed rather than a call. The full query would return all the results in detail as per usual (no ribbons).

2: Correct

3: we need to support links for short_forms (ids) and links for queries as conceivably this could be a sub-query just showing the results with that neurotransmitter etc.

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

3 participants