Missing design when using Scran to create a DESeqDataSet
1
0
Entering edit mode
berry14 • 0
@berry14-14096
Last seen 6.6 years ago

The Scran vignette indicates the SCESet object can be convert to an object for DESeq2 analysis. http://bioconductor.org/packages/devel/bioc/vignettes/scran/inst/doc/scran.html

Once it converted, it's already an DESeqDataSet, yet without a design.  it's not obvious to me how to add a design to this DESeqDataSet.

Any suggestion is welcome. Thanks.

deseq2 Scran • 1.0k views
ADD COMMENT
0
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 14 hours ago
The city by the bay

It seems like ?design would be a good place to start.

ADD COMMENT
0
Entering edit mode

In DESeq2, the design is added when setting up the object using various methods, such as

DESeqDataSetFromTximport, DESeqDataSetFromHTSeqCount, DESeqDataSetFromMatrix, or DESeqDataSet

When Scran convert SCESet to DESeqDataSet, the count matrix is converted directly to DESeqDataSet. I was not able to find an option to add design?

ADD REPLY
1
Entering edit mode

You can just add it afterwards with design(dds) <- formula(...), assuming your factors are in colData. I don't want to add more arguments to convertTo than the bare minimum, otherwise the interface becomes unwieldy (a handful of package-specific arguments for each output class adds up to a lot of arguments in the final function). It is easier for everyone if package-specific operations are performed outside of convertTo on the returned object.

ADD REPLY
0
Entering edit mode

Yes, you are right. That works. Thanks!

And I agree the bare minimum is a cleaner solution.

ADD REPLY

Login before adding your answer.

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