Deseq2 dataframematrix error
1
0
Entering edit mode
3.1 years ago
Mewz1k • 0

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

I have raw counts of rna seq data with approxx 68 samples, im getting error in deseq dataset can you guys help me

countsTable <-read.csv("counts.csv", header = T, stringsAsFactors = FALSE)
head(countsTable)
sample_info <-read.table("sample.txt", header = T, stringsAsFactors = FALSE)
#rownames(countsTable) <-countsTable[,27902]
#countsTable <-countsTable[,1]
class(sample_info)
sample_info$Type <- as.factor(as.character(sample_info$Type))
library(DESeq2)
rownames(countsTable) <-countsTable[,1]
countsTable <-countsTable[,-1]
(dds<-DESeqDataSetFromMatrix(countsTable[,c(1:128)],colData = sample_info,design = ~Type))

when i run dds<-Deseqdatasetfrommatrix i get this error

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

My str(countsTable) shows i have int values 0,1,2,3,4 for diff samples

how to run dds for this kindly help.

Deseq2 dataframmatrix • 2.1k views
ADD COMMENT
0
Entering edit mode

What does any(countsTable < 0) give you?

ADD REPLY
0
Entering edit mode

it gives me FALSE

ADD REPLY
0
Entering edit mode

Some details then please. How did you obtain the counts, and please provide a head(countsTable).

ADD REPLY
0
Entering edit mode

You could also try feeding in truncated versions of the count data until you identify the offending row.

ADD REPLY
0
Entering edit mode
3.0 years ago
Mewz1k • 0

Thank you guys it’s solved there was a minor mistake in sample_info that got me this error

Thank you all for your support

ADD COMMENT
0
Entering edit mode

Can you tell here, what was that mistake? I am getting same error?

ADD REPLY

Login before adding your answer.

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