hey, I am doing an RNAseq analysis (using edgeR) I am loading my data for differential analysis, my data is of read counts. I am now just trying to make DEGList object but, it is showing "Error in colSums(counts): 'x' must be numeric. Please suggest what should I do. thank you!! command used:
rawCountTable <- read.table(file.choose(),header=TRUE)
sampleInfo <- read.table(file.choose(), header=TRUE)
library(edgeR)
dgeFull <- DGEList(rawCountTable, group=sampleInfo$condition)
Error in colSums(counts) : 'x' must be numeric
Hi Gordon, I had the same problem and I tried to fix it following your post here. However, edgeR still gave the error message. Here is the code I used
And after running
head(rawCountTable)
, this is what I gotI am struggling with R and edgeR, I'd really appreciate it if you could take a look at this and help me out. Thanks a lot!
I realized the numbers in my matrix were characters. It looks like I have fixed it by
Thanks!!