DeSEQ 2 Error: some values in assay are negative
1
0
Entering edit mode
@6d47e22d
Last seen 16 months ago
Pakistan

Hi! Am a complete beginner to using DESeq2. I have read the vignette and am encountering an error when I am trying to create a DESeqDataSet from the count data. I am getting an error that some of the values in the assay are negative. However, I have scanned the data set and there are no negative integers. Also i removed the genes with zero values from my data set and started again but still getting the same error. Would be grateful if some one can help me here.

Code should be placed in three backticks as shown below

``dds <-DESeqDataSetFromMatrix(countData=countData,colData=colData, design= genotype+BDQ_treatment)enter code here

Error in DESeqDataSet(se, design = design, ignoreRank) : some values in assay are negative

sessionInfo( )

```

Countmatrix negativeassay DESeq2 • 3.3k views
ADD COMMENT
0
Entering edit mode

In order to back up your assertion that there are no negative values, you should provide evidence. For example

any(countData < 0)
dds <- DESeqDataSetFromMatrix(countData=countData,colData=colData, design= genotype+BDQ_treatment)

The first test is what is giving the error, and I would be quite surprised if it returns FALSE on a direct test and then TRUE once placed within a SummarizedExperiment.

ADD REPLY
1
Entering edit mode
@mikelove
Last seen 2 hours ago
United States

You don't need to remove 0's.

What do you get with

any(countData < 0)

(fixed, typo first time around)

ADD COMMENT
0
Entering edit mode

Thank you for your help.

We checked our columns and rows from the count data and col file and we were missing one sample. Also there was a "-" instead of a _ in one of the IDs in the col data.

We ve been able to create our DESeqDataMatrix after correcting for these errors.

ADD REPLY

Login before adding your answer.

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