edgeR: calcNormFactors
1
0
Entering edit mode
Naomi Altman ★ 6.0k
@naomi-altman-380
Last seen 3.6 years ago
United States
It looks like calcNormFactors wants a matrix, not a DGEList. Did I do something wrong? d=DGEList(counts=TotalReads, group=treatments,genes=rownames(TotalReads)) Calculating library sizes from column totals. dNorm=calcNormFactors(d) Error in calcNormFactors(d) : 'dataMatrix' needs to be a matrix Naomi
• 1.9k views
ADD COMMENT
0
Entering edit mode
João Moura ▴ 160
@joao-moura-4505
Last seen 10.2 years ago
Hi Naomi, just use as.matrix(TotalReads) instead ;) Cheers On Fri, Mar 11, 2011 at 8:38 PM, Naomi Altman <naomi@stat.psu.edu> wrote: > It looks like calcNormFactors wants a matrix, not a DGEList. Did I do > something wrong? > > d=DGEList(counts=TotalReads, group=treatments,genes=rownames(TotalReads)) > > Calculating library sizes from column totals. > > dNorm=calcNormFactors(d) > > Error in calcNormFactors(d) : 'dataMatrix' needs to be a matrix > > Naomi > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > -- João Moura [[alternative HTML version deleted]]
ADD COMMENT
0
Entering edit mode
Hi Naomi, I think this error is associated with old version of edgeR. Try upgrading to the latest version of edgeR. That's how I was able to get rid of it. Neel On Mar 11, 2011, at 3:24 PM, Jo?o Moura wrote: > Hi Naomi, > > just use as.matrix(TotalReads) instead ;) > > Cheers > > On Fri, Mar 11, 2011 at 8:38 PM, Naomi Altman <naomi at="" stat.psu.edu=""> wrote: > >> It looks like calcNormFactors wants a matrix, not a DGEList. Did I do >> something wrong? >> >> d=DGEList(counts=TotalReads, group=treatments,genes=rownames(TotalReads)) >> >> Calculating library sizes from column totals. >> >> dNorm=calcNormFactors(d) >> >> Error in calcNormFactors(d) : 'dataMatrix' needs to be a matrix >> >> Naomi >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor at r-project.org >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> Search the archives: >> http://news.gmane.org/gmane.science.biology.informatics.conductor >> > > > > -- > Jo?o Moura > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor Neel Aluru Postdoctoral Scholar Biology Department Woods Hole Oceanographic Institution Woods Hole, MA 02543 USA 508-289-3607
ADD REPLY
0
Entering edit mode
Thanks. I think you are right. Thanks to Neel and Jo?o, --Naomi At 03:33 PM 3/11/2011, Neel Aluru wrote: >Hi Naomi, > >I think this error is associated with old >version of edgeR. Try upgrading to the latest >version of edgeR. That's how I was able to get rid of it. > >Neel > >On Mar 11, 2011, at 3:24 PM, Jo?o Moura wrote: > > > Hi Naomi, > > > > just use as.matrix(TotalReads) instead ;) > > > > Cheers > > > > On Fri, Mar 11, 2011 at 8:38 PM, Naomi Altman <naomi at="" stat.psu.edu=""> wrote: > > > >> It looks like calcNormFactors wants a matrix, not a DGEList. Did I do > >> something wrong? > >> > >> d=DGEList(counts=TotalReads, group=treatments,genes=rownames(TotalReads)) > >> > >> Calculating library sizes from column totals. > >> > >> dNorm=calcNormFactors(d) > >> > >> Error in calcNormFactors(d) : 'dataMatrix' needs to be a matrix > >> > >> Naomi > >> > >> _______________________________________________ > >> Bioconductor mailing list > >> Bioconductor at r-project.org > >> https://stat.ethz.ch/mailman/listinfo/bioconductor > >> Search the archives: > >> http://news.gmane.org/gmane.science.biology.informatics.conductor > >> > > > > > > > > -- > > Jo?o Moura > > > > [[alternative HTML version deleted]] > > > > _______________________________________________ > > Bioconductor mailing list > > Bioconductor at r-project.org > > https://stat.ethz.ch/mailman/listinfo/bioconductor > > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > >Neel Aluru >Postdoctoral Scholar >Biology Department >Woods Hole Oceanographic Institution >Woods Hole, MA 02543 >USA >508-289-3607 > >_______________________________________________ >Bioconductor mailing list >Bioconductor at r-project.org >https://stat.ethz.ch/mailman/listinfo/bioconductor >Search the archives: >http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD REPLY

Login before adding your answer.

Traffic: 470 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6