how to remove specific clusters from UMAP #1973
-
Dear all, Who knows how to remove specific clusters from UMAP? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Solved by myself. Hope below code will help you guys with similar issue: idxSample <- BiocGenerics::which(projMulti2$Clusters_Combined %ni% c("C2","C3","C12")) Thanks |
Beta Was this translation helpful? Give feedback.
-
hello, Thanks for your advice, I wonder that do i need to rerun 'addIterativeLSI', 'addCluster', and 'addUMAP' after i remove the unwanted cell cluster? |
Beta Was this translation helpful? Give feedback.
Solved by myself. Hope below code will help you guys with similar issue:
idxSample <- BiocGenerics::which(projMulti2$Clusters_Combined %ni% c("C2","C3","C12"))
cellsSample <- projMulti2$Clusters_Combined[idxSample]
projMulti3 <- projMulti2[projMulti2@cellColData$Clusters_Combined %in% cellsSample]
Thanks
Yayan