DESeqDataSetFromMatrix giving an error
2
0
Entering edit mode
5.3 years ago
natheshka • 0

Hi,

I am trying to follow the example in MLSeq documentation. But I keep on getting errors. The latest one I am getting is

Error in DESeqDataSet(se, design = design, ignoreRank): counts matrix should be numeric, currently it has mode: logical

My code is

data.trainS4 = DESeqDataSetFromMatrix(countData = data.train, colData = classtr,
design = formula(~condition))

I am really new to R and learning it as I am following these examples. Any help would be really great.

Thanks..

R • 3.7k views
ADD COMMENT
0
Entering edit mode

Well, what does data.train look like? Can you make a subset file of the first few lines and get that to import?

ADD REPLY
1
Entering edit mode

The output of head(data.train)would do.

ADD REPLY
0
Entering edit mode
5.3 years ago
c.chakraborty ▴ 180

Check if your matrix is raw read counts. If it is normalized to the library, i.e counts would look like - 38.713, 410.006, then DESeqDataSetFromMatrix gives an error. DESeq2 is designed for raw read counts.

ADD COMMENT
0
Entering edit mode
5.2 years ago
Quetzal • 0

DESeq2 just works on numeric data . If you don't have a matrix with numeric data DESeq2 gives an error .In that case you should use limma not DESeq2.

ADD COMMENT

Login before adding your answer.

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