Hi,
I have a representative data like this. the first column is control and second is treated
df<- structure(list(col1A = c(1.64, 0.03, 0, 4.202, 2.981, 0.055,
0, 0.002, 0.005, 0, 0.002, 0.649, 2.55, 2.762, 6.402, 0.91, 0.037,
0, 5.757, 3.916, 0.022, 0, 0, 0.003, 0, 0.262, 0.136, 2.874,
3.466, 5.003), col2A = c(2.635, 0.019, 0, 5.638, 3.542, 0.793,
0.259, 0, 0.046, 0.004, 0.017, 0.971, 3.81, 3.104, 5.849, 1.027,
0.021, 0, 4.697, 2.832, 0.038, 0.032, 0.001, 0.003, 0, 0, 0.317,
2.743, 3.187, 6.455)), row.names = c("A", "AA", "AAA", "Aab",
"buy", "yuyn", "gff", "fgd", "kil", "lilk", "hhk", "lolo", "fdd",
"vgfh", "nghg", "gdtd", "ayad", "terer", "quwte", "nshdg", "ahaf",
"eqew", "tars", "nshdt", "andydv", "oalkd", "jayqgd", "nahdgd",
"nagdd", "hdydy"), class = "data.frame")
group<-factor(c("C","T"))
design<-model.matrix(~group)
data<-DGEList(counts=df,group=group)
data<-estimateGLMCommonDisp(d,design,method="deviance",robust="TRUE",subset=NULL)
data$common.dispersion=0.4
res <- exactTest(data)
I am wondering if this is correct? can I reply somehow on the p value and FDR? let me know where I am making mistake or if there is other package that can be better ?
Can I clarify a few things?
@Gordon Smyth these are normalized expression not count. so it means if people do not use raw count, it won't be trusted? I have read many papers they published in science with FMPK which is normalized count by length of gene analyzed by edger !! (I personally do not like FMPK but just as example.
-more than a 1000 genes - the code I give runs for me, which error do you get ? the only function which does not run is
estimateGLMCommonDisp
. because of lack of replicate I guessI appreciate your input , THANKS
I don't know what you mean by "normalized expression", but you must give counts to edgeR so your current analysis has no meaning. Inputing FPKM to edgeR would also be nonsense, as has been said many times before on this website.
I've never seen a Science paper inputing FPKM to edgeR. I can't say it's never happened, but perhaps you have mis-interpreted what was done.
@Gordon Smyth Look at this manuscript somewhat got me thinking https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3287564/