Entering edit mode
I am trying to use a bulk RNA seq count matrix data to get DEGs using DESeq. The problem is mentioned below.
dds <- DESeqDataSetFromMatrix(countData=mycounts,colData=metadata,design=~dex, tidy=TRUE)
Error in `[.default`(countData, , 1) : incorrect number of dimensions
The Gene column must must be removed and relocated to
rownames()
ofmycounts
. Theid
column ofmetadata
should also be the rownames of that object.A data.frame with a character column (Gene) cannot be rounded. That's why I said remove the Gene column after assigning to rownames. Once done also remove the tidy argument.