Question: Seurat: Percentage distribution of cells in all clusters based on their treatment condition?
0
gravatar for charlesgwellem
23 months ago by
charlesgwellem0 wrote:

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.

single cell seurat rna-seq R • 2.1k views
ADD COMMENTlink modified 23 months ago by Santosh Anand5.2k • written 23 months ago by charlesgwellem0
1

try

table(paste0(object@meta.data$conditions, object@meta.data$clusterID))
ADD REPLYlink written 23 months ago by Santosh Anand5.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1961 users visited in the last hour
_