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

Thank you in advance.

R RNA-Seq Seurat single cell • 5.7k views
ADD COMMENT
1
Entering edit mode

try

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

Login before adding your answer.

Traffic: 2472 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