Hello,
I am trying to generate a dds out of a count matrix file. I haven successfully imported the count matrix for "countData" as well as the metadata for "colData" but when I run "DESeqDataFromMatrix" I receive the error
Error in SummarizedExperiment(assays = SimpleList(counts = countData), : the rownames and colnames of the supplied assay(s) must be NULL or identical to those of the SummarizedExperiment object (or derivative) to construct
Below are the code lines I am running to get to this point, any help would be appreciated to generate a dds so I can run DESeq2.
raw_counts <- read.csv("raw_counts.csv", header = TRUE, row.names = 1)
countdata <- as.matrix(raw_counts)
coldata <- read.csv("metadata.csv", header = T, row.names = 1)
dds <- DESeqDataSetFromMatrix(countData = countdata,
colData = coldata,
design = ~ sample)
Thank you.
deseq2