the count matrix have decimal values
1
0
Entering edit mode
Ibrahim • 0
@636c70c8
Last seen 8 weeks ago
Egypt

help

I've been given an RNA count matrix and metadata files and asked to do differential expression analysis and when I inspected the data found that the count matrix contained decimal values and DESeq2 can't process it, so how to solve this knowing that I don't have any further information about the data how it's processed.,

the data is not normalized nor log transformed

DESeq2 DifferentialExpression • 747 views
ADD COMMENT
2
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

You could do what DESeq2 does with e.g., decimal counts from tximport, which is to change the mode to "integer".

## assuming your decimal counts are in a matrix called 'counts'
mode(counts) <- "integer"
dds <- DESeqDataSetFromMatrix(counts, <other args go here>)
0
Entering edit mode

sorry, I'm novice in DE analysis, but wouldn't this change the data? Or the fractions doesn't really matter?

ADD REPLY
1
Entering edit mode

Yes, it will convert all the decimal values to integer, by shifting either up or down. This doesn't really matter though, as you are only shifting each value by less than 1.

ADD REPLY

Login before adding your answer.

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