Entering edit mode
5.6 years ago
evelyn
▴
230
Hello,
I am doing:
ddsTxi <- DESeqDataSetFromTximport(txi, colData = samples, design = ~ condition)
But I get this error:
Error in DESeqDataSetFromMatrix(countData = counts, colData = colData, :
ncol(countData) == nrow(colData) is not TRUE
I checked if the row names for samples is same as column names for txi. Column names are longer with additional prefixes and suffixes. samples have row names as automatic counting. Even if I do not exclude that, it is still complaining the same. Thank you!
IIRC, you should have one column per sample in
txiand one row per sample insamples. Expression matrix is usually a gene (rows) by samples (column) matrix, and sample data is one row of metadata per sample.Please show us the output to:
If they are not the same, try correcting that first and then running the import again.
Thank you,