Off topic:DEseq2: Usage of interactions for multi-factor analysis
0
0
Entering edit mode
@lihongfei93-20036
Last seen 5.1 years ago

Hello, I am working on RNASEQ data with 4 treatments(Control, ABA, salt,sorbitol), 3 genotypes(col.0, lbd16-1, ds2.3) and three replicates. To test differently expressed genes of treated/untreated effect between lbd16 and col.0, I wrote my script like this:

dds <- DESeqDataSetFromMatrix(countdata, colData, design= ~ genotype + treatment + genotype:treatment)

dds$treatment <- relevel(dds$treatment , "Control")

dds$genotype <- relevel(dds$genotype , "Col.0")

keep <- rowSums(counts(dds)) >= 1 dds_F <- dds[keep,]

dds2 <- DESeq(dds_F)

dds2$group <- factor(paste0(dds2$genotype, dds2$treatment))

design(dds2) <- ~ group resultsNames(dds2)

It gives me an output :

[1] "Intercept" "genotypeds2.3vsCol.0" "genotypelbd16.1vsCol.0" [4] "treatmentABAvsControl" "treatmentNaClvsControl" "treatmentsorbitolvs_Control" [7] "genotypeds2.3.treatmentABA" "genotypelbd16.1.treatmentABA" "genotypeds2.3.treatmentNaCl" [10] "genotypelbd16.1.treatmentNaCl" "genotypeds2.3.treatmentsorbitol" "genotypelbd16.1.treatmentsorbitol".

My question is:

  1. Is it the right script to find DEGs among treaments and genotypes?

  2. will "res<-results(dds2, contrast=list( c("treatmentABAvsControl","genotypeds2.3.treatmentABA")))" give me the result that differently expressed genes of ABAvscontrol between ds2.3 and col.0. If not, what would be the right one?

  3. If I just want to see DEGs of ABAvscontrol of Col0, is this right?

results(dds, contrast=c("treatment","ABA","Control"))

4.If I just want to see DEGs of ABAvs_control of lbd16, is this right?

results(dds, name="genotypelbd16.1.treatmentABA")

deseq2 • 160 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 585 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