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

Deal with excessive table width: horizontal scroll, freeze column(s), move search box #40

Open bhavyaac opened 3 years ago

bhavyaac commented 3 years ago

The following screenshot shows how the table looks with several genes. Currently, the search bar is far off to the right (not visible in the screenshot).

Screen Shot 2021-07-12 at 1 08 24 PM

I would like to:

  1. Implement horizontal scrolling within the table - using a div with overflow-x: scroll
  2. Freeze the Cluster column (leftmost column) - using a tutorial for freezing column(s) in reacTable
  3. Move the search bar to the left side or (if this is not possible) implement another way of filtering/searching the table that will be visible regardless of the number of genes

It's a bit hard to test these locally with only 6 genes, but I can make the max width of the table smaller on purpose to force the scroll to occur!

bhavyaac commented 3 years ago

This is unrelated to the changes I proposed in the issue, but it's about enhancements to the table, so I placed it here as well. I was reading some of the reacTable documentation and I was able to colour the gene column values based on their values (see screenshot below). @sjessa Do you think this would be a useful feature? And if so, would you prefer a different palette? (This one is just lighter and darker shades of orange.)

Screen Shot 2021-07-12 at 2 40 28 PM
sjessa commented 3 years ago

@bhavyaac Cool, I think this is useful. I like the orange, if you're looking for other options, a good place to check is the RColorBrewer package. Their "YlOrRd" palette might work nicely here, but I like this one too.