limma object column subsetting
1
0
Entering edit mode
Matt McCall ▴ 50
@matt-mccall-926
Last seen 10.2 years ago
In the old limma, one could subset a MAlist or RGlist (let's say RGnorm is a MAlist) by entering: RGnorm[,1:3] for the first three columns for example In the version, I'm using now (v1.8.1) this no longer works. > RGnorm[,1] Error in object$targets[j, , drop = FALSE] : incorrect number of dimensions Can someone help me with this. I'm running R v2.0.0 _ platform powerpc-apple-darwin6.8 arch powerpc os darwin6.8 system powerpc, darwin6.8 status major 2 minor 0.0 year 2004 month 10 day 04 language R Matt McCall
limma limma • 924 views
ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 57 minutes ago
WEHI, Melbourne, Australia
> Date: Tue, 14 Dec 2004 13:42:48 -0500 > From: Matt McCall <mmccall@mail.nih.gov> > Subject: [BioC] limma object column subsetting > To: bioconductor@stat.math.ethz.ch > > In the old limma, one could subset a MAlist or RGlist (let's say RGnorm > is a MAlist) by entering: > RGnorm[,1:3] for the first three columns for example > In the version, I'm using now (v1.8.1) this no longer works. It does still work as far as I can see. > > RGnorm[,1] > Error in object$targets[j, , drop = FALSE] : > incorrect number of dimensions > > Can someone help me with this. I'm running R v2.0.0 You don't make it clear what classs of object your RGnorm is. I am assuming it is an RGList or an MAlist. The problem seems to be that the 'targets' component of your object is a simple vector rather than a data frame as it is expected to be. How did you create the RGnorm and, in particular, how did you set the targets component? The only limma function which creats an RGList or MAList with the targets component set automatically is read.maimages(), and in that the case the 'targets' should be subsettable correctly. However you created RGnorm, you should be able to fix the above problem by RGnorm$targets <- as.data.frame(RGnorm$targets) or by RGnorm$targets <- NULL Gordon > _ > platform powerpc-apple-darwin6.8 > arch powerpc > os darwin6.8 > system powerpc, darwin6.8 > status > major 2 > minor 0.0 > year 2004 > month 10 > day 04 > language R > > Matt McCall
ADD COMMENT

Login before adding your answer.

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