Skip to content

How to subset two distinct clouds of cells based on nFeatures and nCounts #4175

Answered by timoast
CampbellClark1 asked this question in Q&A
Discussion options

You must be logged in to vote

You can subset the cells based on any criteria you want to set, for example:

library(Seurat)

cells.keep <- which(pbmc_small$nCount_RNA/4 > pbmc_small$nFeature_RNA)
sub_object <- pbmc_small[, cells.keep]

However, I'm not sure if making a separate UMAP for each subset here and comparing them is really the best way to go. I'd suggest processing the data together as one object, and then try to assess whether those cells with higher counts relative to the number of features detected separate into a distinct group.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CampbellClark1
Comment options

Answer selected by timoast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants