This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Seurat: Percentage distribution of cells in all clusters based on their treatment condition?

Is there are possibilty in Seurat to visualise the percentage distributions of cells treated under a particular condition per cluster? For example I wish to be able to produce a figure where I say: X% of cells treated with Y condition were located in cluster C and so forth?

I have tried:

number_perCluster<- table(object@meta.data$conditions, 
                          object@meta.data$clusterID)

Which gives me the number of cells per condition and per cluster which I am not able to show here because the structure of the data will be altered and confusing.

I will be very grateful on any hint on how I can proceed to make a comprehensive figure.

Thank you in advance.

r rna-seq seurat single cell

try

table(paste0(object@meta.data$conditions, object@meta.data$clusterID))

0 answers

No answers yet.

Log in to answer this question.