RSubread DESeq2
1
0
Entering edit mode
Beyza • 0
@ce53a127
Last seen 14 months ago
Germany

Hi everyone,

I am new in bioinformatics and when I try to use DESeq2 for my counts and further downstream analysis, I am faced with this problem.

dds <- DESeqDataSetFromMatrix(countData = count_matrix, colData = NULL, tidy = TRUE) Error in rownames<-(tmp, value = colnames(countData)) : attempt to set 'rownames' on an object with no dimensions

When I check the type of my count_matrix it is all integer (lapply(count_matrix, class). I don't know whats wrong. I would appreciate if someone helps. Thank you.

RNASeqData DifferentialExpression DESeq2 • 788 views
ADD COMMENT
0
Entering edit mode
sandmann.t ▴ 70
@sandmannt-11014
Last seen 14 months ago
United States

I think you need to provide a DataFrame or a data.frame with at least one column as the colData argument. From the DESeqDataSetFromMatrix help page:

countData <- matrix(1:100,ncol=4)
condition <- factor(c("A","A","B","B"))
dds <- DESeqDataSetFromMatrix(countData, DataFrame(condition), ~ condition)

Also, can you clarify what your count_matrix actually looks like? (Perhaps you can show the output of the class(count_matrix) and head(count_matrix) commands?) Does it have column names (and does the first column correspond to your feature identifiers, given that you set tidy=TRUE)?

ADD COMMENT
0
Entering edit mode

thanks a lot, by help of you I solved the problem.

ADD REPLY

Login before adding your answer.

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