Hello!
I am running edgeR on my rna-seq data. I got my read counts from salmon quantification. I am able to read in my file but i am getting stuff on the DGEList function. I have been running the command
y<-DGEList(counts=raw.data, group=Group)
but i keep getting this error
"Error in .isAllZero(counts) :
count matrix must be integer or double-precision".
Here is my script up until then
library(edgeR)
raw.data<-read.csv("newMuscle.csv", header=TRUE, sep="\t", row.names=NULL, quote="", skipNul=TRUE, comment.char="", encoding="latin1")
names<- c("1499","1500","1502","1515","1984","2066","2110","9089","9094","9101","9223","1499","1500","1502","1515","1984","2066","2110","9089","9094","9101","9223")
type<- factor(c("BF", "BF", "BF", "BF", "BF", "BF", "BF", "BF", "BF", "BF", "BF","LD", "LD", "LD", "LD", "LD", "LD", "LD", "LD", "LD", "LD", "LD"))
treat<- factor(c("control","zilmax","control","control","zilmax","control","control","zilmax","zilmax","zilmax","zilmax","control","zilmax","control","control","zilmax","control","control","zilmax","zilmax","zilmax","zilmax"))
targets<-data.frame(names,type,treat)
Group<-factor(paste(targets$type,targets$treat,sep="."))
cbind(targets,Group=Group
I have googled the error but nothing i have tried has worked.
Thanks for the help!
I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
I think you need the tximport package.