Hey all, I recently ran DESeq2 analysis succesfully but I mad changes to my count table and wanting to rerun it in R. I encountered an error as before and followed all the steps I have written down in my documentation but still getting the error when I try to make dds. I could not figure out what I am doing wrong in either my count table or conditions table. both shown below. Error
Error in DESeqDataSetFromMatrix(countData = Amphcts, colData =
coldata, : ncol(countData) == nrow(colData) is not TRUE
Conditions.csv
Sample,Condition,Replicate
Untreated1,Untreated,1
Untreated2,Untreated,2
Untreated3,Untreated,3
Untreated4,Untreated,4
Treated1,Treated,1
Treated2,Treated,2
Treated3,Treated,3
Treated4,Treated,4
count.txt
Untreated1 Untreated2 Untreated3 Untreated4 Treated1 Treated2 Treated3 Treated4
Bf_V2_1:1:797 0 0 0 0 0 0 0 0
Bf_V2_1:72:637397 3227 3149 3150 3085 4068 4019 4122 4075
The error message tells you explicitly what's wrong, pointing you to what you should investigate:
The number of columns in the countdata
ncol(countData)
doesn't match the number of rows in the sample infonrow(colData)
. Don't panic when you get an error message, but read it carefully.