topTable question in limma
1
0
Entering edit mode
pingzhao Hu ▴ 210
@pingzhao-hu-685
Last seen 9.7 years ago
Hi, I am using limma. Here is a error I met SubM is a 19k by 6 matrix > design [1] 1 1 1 -1 -1 -1 > PMAfit<-lmFit(subM,design,ndups=2,spacing=1,correlation=mycor$cor,weig hts=NULL) > PMAfit<-ebayes(PMAfit) > topT<-toptable(PMAfit,number=200,sort.by="P",genelist=genelist,adjust= "fdr") Error in array(x, c(length(x), 1), if (!is.null(names(x))) list(names(x), : attempt to set an attribute on NULL Thanks
limma limma • 758 views
ADD COMMENT
0
Entering edit mode
Matthew Ritchie ▴ 1000
@matthew-ritchie-650
Last seen 18 days ago
Australia
Try using eBayes() instead of ebayes() and topTable() instead of toptable(), ie PMAfit<-lmFit(subM,design,ndups=2,spacing=1,correlation=mycor$cor,weig hts=NULL) PMAfit<-eBayes(PMAfit) topT<-topTable(PMAfit,number=200,sort.by="P",genelist=genelist,adjust= "fdr") Also be sure that your genelist is the right size (half as many rows as the original gal file, since you have averaged over the duplicate spots in the linear model fit). The function uniquegenelist() will do this for you. Best wishes, Matt Ritchie > Hi, > I am using limma. Here is a error I met > > SubM is a 19k by 6 matrix > > design > [1] 1 1 1 -1 -1 -1 > > > PMAfit<-lmFit(subM,design,ndups=2,spacing=1,correlation=mycor$cor,we ights=NULL) > > PMAfit<-ebayes(PMAfit) > > > topT<-toptable(PMAfit,number=200,sort.by="P",genelist=genelist,adjus t="fdr") > Error in array(x, c(length(x), 1), if (!is.null(names(x))) > list(names(x), : > attempt to set an attribute on NULL > > Thanks
ADD COMMENT

Login before adding your answer.

Traffic: 383 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