Null model in SVA for patient paired test comparing tumor vs normal
1
0
Entering edit mode
gumilton • 0
@gumilton-10759
Last seen 6.2 years ago

Hi All,

I have TCGA RNAseq data comprising normal and tumor pairs for 100 patients. I am trying to identify DE genes between tumor and normal in a paired test manner. I am applying SVA to remove potential unknown batch effect. I would highly appreciate some help on these following questions!

1) The design matrix is ~ patient + Tumor to perform paired test. So should I include patient variable in the null model? or null model should be just an intercept?

2) How many SVs should I use in DE analysis? I am now using only the first two.

3) Should I explicitly tell svaseq to give me 2 SVs or I leave n.sv empty so that svaseq will estimate it by itself?

My current code is as below. Many thanks!

design <- model.matrix(~ patientFactor + tumorFactor)
mod0 <- model.matrix(~ 1, svaInfo)
svseq <- svaseq(as.matrix(norm_EDA[use,]), design, mod0)
SV1 <- svseq$sv[,1] SV2 <- svseq$sv[,2]

dds_sva <- DESeq2::DESeqDataSetFromMatrix(countData =round(dat,0),
colData = cbind(info,SV1,SV2),
design = ~ SV1 + SV2 + patient + status)

dds_sva <- DESeq(dds_sva)

sva paired samples rnaseq • 1.4k views
1
Entering edit mode
Jeff Leek ▴ 640
@jeff-leek-5015
Last seen 17 months ago
United States

Hello

1. You would include patient in the null model since you are comparing the null of just a patient effect to the alternative of a patient effect plus a tumor effect (basically the null model has all the variables you want to adjust for except the variable you care about. the alternative model is all of those variables plus the thing you care about).

2. Several people elect to use just 2. You can also use the num.sv function to select the number of SVs

3. If you don't give n.sv to svaseq it will select the number for you.

You might also read up on paired designs with edgeR/DESeq here:

Section 3.5 of the edgeR user guide for how to set up the design matrix: http://www.bioconductor.org/packages/release/bioc/vignettes/edgeR/inst/doc/edgeRUsersGuide.pdf

* Section 1.6 of the DEseq2 guide:

http://www.bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.pdf