A question for clarification regarding counts input to DESeqDataSetFromMatrix
1
0
Entering edit mode
A ▴ 40
@a-14337
Last seen 5 months ago
United Kingdom

I have a very quick question for my own sanity to check this is ok.

The vignette for DESeq2 states that the 'function DESeqDataSetFromMatrix can be used if you already have a matrix of read counts prepared from another source.'

This perfectly clear and fine, however i would like to confirm that the input of a counts matrix as a dataframe is also a valid input.

Reading in the counts table as a data frame where columns are samples and rows are ensembl IDs works fine for me as an input to the countData argument in DESeqDataSetFromMatrix.. and the further PCA and DE analysis makes perfect sense between samples, but just making sure that a data frame input should indeed produce the same result as if the counts table were a class(matrix).

thanks!

deseq2 • 504 views
ADD COMMENT
1
Entering edit mode
@mikelove
Last seen 14 hours ago
United States

Yes, a data.frame of counts is converted to matrix internally.

ADD COMMENT

Login before adding your answer.

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