Closed denvercal1234GitHub closed 1 year ago
Yes, that's true. However, you could simply keep a backup of the original cluster_id
, e.g., ..., and switch back to these if they are of interest still for any reason. Though, in that case, it'd make more sense to use the original (complete) dataset for which they were computed.
sub <- filterSCE(sce, ...)
sub$cluster_id0 <- sub$cluster_id
sub <- cluster(sub, ...)
Yes, of course. Dimension reductions and other computations rely on the data they are run on. So if you subset, that needs to be recomputed (nothing happens automatically when running filterSCE(sce, ...)
).
Likely because the subsetted dataset does not contain cells from all 100 clusters, but only the ones displayed. Isn't that to be expected when you subsetted the data?
Thank you so much @HelenaLC for your response. For Q3, I did reran CATALYST::cluster
, with default arguments, on my subsetted sce
, so I expect to have 100 FlowSOM codes, right? Or that is not necessarily true?
Aha, yes, if you reran cluster()
with defaults, there should indeed be 100 clusters. And as far as the output of table()
goes above, that is the case! So I think it is more of an issue with how you are calling plotNRS
- NRS are computed independently of cluster identifiers. So coloring samples by cluster makes no sense, and I guess it is just coloring samples according to the cluster label of the first cells in a given sample, which is pretty random.
Hi there,
Thank you again for the package.
Q1. If I filter the
sce
object, then simply runCATALYST::cluster
on the subsettedsce
, it will automatically overrides the existingcluster_id
from my original clustering?Q2. I still see UMAP coordinates from the original clustering of the un-subsetted object in my subsetted
sce
. So, does that mean everything I did to the originalsce
will be preserved until I ran new code, e.g.,runDR()
, to the subsetted object?Q3. Why I only see the legend for some of the cluster code groups and not 100 for my
CATALYST::plotNRS()
plot, while I still see 100 SOM codes in my subsetted object? I ultimately want to make sure the existing labels from original clustering don't get mixed up with the new clustering...Thank you for your help!