Seurat FeaturePlot across stims
0
0
Entering edit mode
4.5 years ago
V ▴ 410

Hello,

I have a very basic questions. I have a 'Seurat' file that I've analysed and is a merge of 8 different conditions. When plotting expression of a gene :

FeaturePlot(XSeurat.combined, features = 'Runx2', split.by = 'stim)

It shows me the expression of Runx2 across all conditions. Is there a way to modify the above so I can see only 1 or 2 conditions that I want?

Thank you.

seurat Seurat rstudio • 2.2k views
ADD COMMENT
1
Entering edit mode

Prior to FeaturePlot you can subset seurat object to include the required conditions.

ADD REPLY
0
Entering edit mode

Thanks, did it using the below, leaving the code below as reference if anyone else runs into something similar. Would still be good to know if there is a way of doing it using a plotting function rather than having to subset things.

e14only <- subset(seurat.combined, subset = stim == c('X (e14)', 'Y (e14)'))
ADD REPLY

Login before adding your answer.

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