Closed GWMcElfresh closed 1 month ago
I had the transpose ordering wrong, so this was scaling according to the count matrix, rather than the plot. I fixed that and added some verbosity to the figure legend since we can return several kinds of scaling:
scaling == 'column'
:
scaling == 'row'
:
scaling == 'none' & layer == 'data'
:
AverageSeurat
does some automatic transforms depending on which layer is requested (however, it always averages the counts slot, so we're good there). Since we probably want to support any layer, I think it's worth reporting.
Additionally, I supported the scale.data
layer more completely. There are details in the comments, but AverageSeurat()
won't include features in its scale.data
layer simply because they're in the features
argument: it looks for the features within the scale.data
layer itself. So, one option is to re-call Seurat::ScaleData()
, but I added a few checks to allow someone to encounter that issue semi-naturally and opt-in to that without immediately calling Seurat::ScaleData()
on their object in memory.
Hi all,
Greg solved a problem a while ago about the question "How do we cluster features in dot plots according to expression" for RIRA. This function is intended to be a post-
FindMarkers()
+ marker triage step where you have a small-ish set of marker genes that discriminate your populations.A full usage looks something like this:
and yields:
I'm not sold on the color scheme by way of ComplexHeatmap, so I baked in a
ggplotify()
step, allowing posthoc color scaling to your satisfaction.