Closed denvercal1234GitHub closed 1 year ago
cluster_id in the colData corresponds to the 100 SOM clusters, and you’re passing this to group_by; dropping/changing that should fix this.
Please check the function documentation and examples or see the package vignette before posting issues, a lot of work went into these and they provide a lot of information- thanks!
Hi @HelenaLC - Thanks for the response.
I did check the documentation, examples, and the vignette; but it is not clear how to apply CATALYST::plotAbundances
for plotting cells per a metaclustering after doing clustering. Specifically, shouldn't the k="meta16"
already take care of specifying which SOM code to use?
And, the function CATALYST::plotAbundances
requires me to set group_by
to some value in names(colData(F37_sce_backboneClustering))
, but I simply want to plot how many cells per a given metacluster, and setting group_by=NULL
threw an error.
Well, you need to group by something to compute cluster abundances, eg, sample or condition. If you just want the number/proportion of cells per metaclusters you should use base R table(cluster_ids(…)) or plotCounts()
Hi,
I wanted to plot the cell number per cluster for metaclustering k="meta16" (without any separation of conditions), but the
CATALYST::plotAbundances
always group all 100 FlowSOM codes.Would you mind giving me some pointers?
Thank you.