Multifactor analysis
1
0
Entering edit mode
Manmohit • 0
@66dd6104
Last seen 3.0 years ago
United States

HI every one I am new to RNA seq analyisis using R. I Am usig DESeq 2 for my analysis. I have four different Samples with three replicates each and I want to compare all of them with control plk. I tried using contrast but i can only compare two factors using contrast.

condition <- factor(c("bio","bio", "bio","Glu","Glu", "Glu","NO","NO","NO","plk","plk","plk"))

dds <- DESeqDataSetFromMatrix (countData = counts, colData = colData, design = ~condition) res <- results(dds, contrast = c("condition","Glu","bio"))

DESeq2 • 763 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 2 days ago
United States

You can use a numeric contrast, see ?results. You would give numbers to the values in resultsNames(dds). E.g. to compare 1/3 of each you would put 1/3 in the place of the groups you want to average and -1 in the place of the control group, e.g. c(-1,1/3,1/3,1/3).

ADD COMMENT

Login before adding your answer.

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