Seurat: Percentage distribution of cells in all clusters based on their treatment condition?
0
0
Entering edit mode
2.2 years 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.

R RNA-Seq Seurat single cell • 2.7k views
1
Entering edit mode

try

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