Biostar Beta. Not for public use.
Seurat: Percentage distribution of cells in all clusters based on their treatment condition?
0
Entering edit mode
14 months ago

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.

ADD COMMENTlink
0
Entering edit mode

try

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

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.3