New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to merge clusters and what steps needed after merging in SCTransform workflow? #4128
Comments
Hi, Not member of the dev team but hopefully can be helpful.
Hope that helps! |
Thank you very much, Sam! |
Hi @samuel-marsh - If I subset out certain cells from the Seurat object after running the whole pipeline, should I now rerun SCTransform() to normalize and scale in order to calculate/visualize the expression levels of certain genes of the selected cells in this new object? Thank you again for your response! |
Hi @denvercal1234GitHub, SCTransform need not be run twice - the data has already been normalized. |
Hi @denvercal1234GitHub if you are just wanting to visualize gene expression then no. But if you want to analyze that subset further you should run whole pipeline basically again as the variable genes, pca, snn, louvain, UMAP, etc are all based on whole set of cells instead of just the subset of interest. |
Hi there,
In the tutorial, it states "# note that if you wish to perform additional rounds of clustering after subsetting we recommend re-running FindVariableFeatures() and ScaleData()." #1883 seems to suggest to run everything again on a subsetted cells from a cluster.
But here I don't subset cells. I just merge cells from clusters or split the cluster:
So if I processed my data using SCTransform, and get my clusters as usual. Then, if I merge some clusters, or split a cluster into smaller clusters, I do not need to run SCTransform() with percent.mt regressed (as I did with my original Seurat object), then ScaleData() to regress cell cycle genes, then RunPCA, RunUMAP, FindCluster() all over again on my Seurat object, right? But if I do, do I set the Assay argument to RNA?
Assigning cell type identity to clusters #3239 and Combine clusters #3202 suggest that giving 2 clusters the same name will merge them, but wouldn't that mean I will need to re-run the FindAllMarkers() again now with the re-named clusters? Because after running RenameIdents(), it only changes the active.ident but the seurat_clusters in meta.data remain the same, and I believe FindAllMarkers() take the active.ident and not seurat_clusters.
Would anyone mind confirming that when I run RenameIdent(), it really merges the 2 clusters and not simply change the name of the clusters?
Thank you for your help!
The text was updated successfully, but these errors were encountered: