Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
DESeq2 Analysis of Time Series data and model comparison Beebola Bioinformatics 7 07-13-2015 05:26 PM
DESeq2 model design + contrasts gamb Bioinformatics 39 06-25-2015 03:06 PM
DESeq2 : design for estimating effects of treatment at various time points chris_s Bioinformatics 6 01-05-2015 03:39 PM
how dose the log2FoldChange is calculated by DESeq2 aoe0618 RNA Sequencing 2 10-24-2014 06:07 AM
Paired design versus unpaired design in DESeq2 KristenC RNA Sequencing 1 05-29-2014 12:05 PM

Thread Tools
Old 08-11-2015, 09:03 AM   #1
Postdoc Cancer Bioinformatics
Location: Olso, Norway

Join Date: Dec 2014
Posts: 17
Arrow DESeq2 model design: dose and time effect

i have three samples each with 3 biological replicates i.e. one control and other at dose 12ug/ml and 25ug/ml at 24hr

> library('DESeq2')

> directory<-"./data"

> sampleFiles <- grep("Htseq",list.files(directory),value=TRUE)

> sampleCondition<-c("treated","treated","treated","treated","treated","treated","untreated","untreated","untreated")

> sampleGroup <-c ("A","A","A","B","B","B","C","C","C")

> sampleTable<-data.frame(sampleName=sampleFiles, fileName=sampleFiles, condition=sampleCondition, group=sampleGroup)

> sampleTable

sampleName fileName condition group
1 24h_12ug_1.count 24h_12ug_1.count treated A
2 24h_12ug_2.count 24h_12ug_2.count treated A
3 24h_12ug_3.count 24h_12ug_3.count treated A
4 24h_25ug_1.count 24h_25ug_1.count treated B
5 24h_25ug_2.count 24h_25ug_2.count treated B
6 24h_25ug_3.count 24h_25ug_3.count treated B
7 24h_ctrl_1.count 24h_ctrl_1.count untreated C
8 24h_ctrl_2.count 24h_ctrl_2.count untreated C
9 24h_ctrl_3.count 24h_ctrl_3.count untreated C

what should be good design if i want to see the differential expressed genes between treated vs untreated as well between different groups ?

ddsHTSeq<-DESeqDataSetFromHTSeqCount(sampleTable=sampleTable, directory=directory, design=~group)
ddsHTSeq<-DESeqDataSetFromHTSeqCount(sampleTable=sampleTable, directory=directory, design=~condition)

what will be the difference between the two designs?

I tried the following design but it gave me error

ddsHTSeq<-DESeqDataSetFromHTSeqCount(sampleTable=sampleTable, directory=directory, design=~group + condition + condition:group)

Error in DESeqDataSet(se, design = design, ignoreRank) :
the model matrix is not full rank, so the model cannot be fit as specified.
one or more variables or interaction terms in the design formula
are linear combinations of the others and must be removed

how will the design will change if i add three samples each with 3 biological replicates i.e. one control and other at dose 12ug/ml and 25ug/ml at 6hr

Last edited by imsharmanitin; 08-11-2015 at 09:05 AM.
imsharmanitin is offline   Reply With Quote
Old 08-12-2015, 07:45 AM   #2
Michael Love
Senior Member
Location: Boston

Join Date: Jul 2013
Posts: 333

Refer to for answer.

Last edited by GenoMax; 08-12-2015 at 08:01 AM. Reason: Clarified that question has been answered
Michael Love is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 06:47 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO