This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Seurat FeaturePlot across stims

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

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

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)'))

0 answers

No answers yet.

Log in to answer this question.