fungenomics / braindex

A web portal for exploring scRNAseq data in the developing brain, including our in-house atlas of the E10-P6 forebrain and brainstem
http://cc-shiny-01.functionalgenomics.ca/braindex/clusters/
GNU General Public License v3.0
0 stars 1 forks source link

Add new column label bars to heatmap #50

Closed bhavyaac closed 2 years ago

bhavyaac commented 3 years ago

(Based on discussions from issue #21 that has been closed.)

Currently, the heat map includes a coloured bar above the main plot to categorize cluster columns into general cell types. It would also be useful to have bars giving information on the brain region (forebrain vs. pons) as well as time point of the cluster. I can include toggles to turn each bar on/off, so that the user can focus on the information that they are interested in.

bhavyaac commented 3 years ago

Just added this feature:

Screen Shot 2021-09-07 at 3 27 32 PM

There are checkboxes in the sidebar to select which annotation(s) to display.

Known issues that I still must fix:

bhavyaac commented 3 years ago

Update: I've fixed the heatmap dimensions to show full legend and also implemented validate() telling the user to enter at least one column annotation.

There is something seriously wrong with the grepl() command on the Sample column (output of bubble_prep()) that I have been using, given that I just got the following incorrectly-annotated heatmap during testing: image Not all of these samples are P6, and all of them are clearly either Forebrain or Pons. I need to fix that grep command, not sure how to debug it easily though! Edit: alternatively, it might be an issue with the contents/presence of the Sample column, so I can switch to doing a grep on the cluster name itself