How to compared two groups out of twelve in DESeq2
1
0
Entering edit mode
@27433c91
Last seen 12 months ago
United States

I have a data set in which we are comparing RNA seq data collected from twelve different mouse strains. I have figured out how to run the DESeq2 analysis, but I want to compare two of the strains together with a PCA graph and maybe a heat map too. I am using vsd and ntd for the PCA but it just has too much information on the other strains. How would I compare just AJ vs B6?


plotPCA(vsd, intergroup=c("strain")
#this is the commard I am using is there a way to show only some of the data in the whole set?

Thanks in advance!

DESeq2 • 570 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

Your DESeqTransform object acts just like a data.frame when using the [ function, so you can just subset to the samples you want. As an example, using example data:

> library(DESeq2)
> example(results)
> vsd <- varianceStabilizingTransformation(dds)
> plotPCA(vsd)
## now just two of the genotypes
> plotPCA(vsd[,colData(vsd)$genotype %in% c("I", "III")])
ADD COMMENT

Login before adding your answer.

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