Skip to content

how to remove specific clusters from UMAP #1973

Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by YayanFeng55
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants