Number of cells in each clusters
1
0
Entering edit mode
20 months ago
singcell • 0

I wanted to determine if the number of particular cell type in a cluster is changing with the treatment conditions. I have used stimulated vs. control PBMC datasets vignette for this analysis comparing two conditions.

Question: I used the code below to get the counts in each cluster and treatment condition. I wanted to know if number of cells from the code below is normalized to the total number of cells sequenced for each samples.

table(Idents(immune.combined), immune.combined$stim)

Thank you.

numbers Seurat cell • 1.0k views
ADD COMMENT
1
Entering edit mode
20 months ago

No, that is just going to return counts of the idents (presumably clusters?) split by condition.

OSCA has a nice chapter on differential abundance testing, which is what it sounds like you're trying to do.

ADD COMMENT
0
Entering edit mode

Thank you for your reply. Looks like with OOSCA I need to redo all analysis. Is there any way to get this info from Seurat or from any tool based on Seurat?

ADD REPLY
0
Entering edit mode

You can convert Seurat objects to the Bioconductor SingleCellExperiment class with the as.singlecellexperiment() function. I'd recommend giving that a try.

ADD REPLY

Login before adding your answer.

Traffic: 1401 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6