[BioC] error following cluster example

Claire Wilson ClaireWilson at PICR.man.ac.uk
Tue Nov 9 13:29:19 CET 2004


 
> Dear Users,
> 
> I am following the example on Lab 5: Cluster analysis (June 
> 2003) with 
> my own data.
> 
> I have filtered my expression set as shown on the example and I get 
> the following
> 
> > sub <- genefilter(X,ffun)
> > sum(sub)
> [1] 1124
> 
> I save this subset of genes and then log transform it. But 
> when I type 
> the next command I get the following error:
> > X <- X[sub,]
> > X <- log2(X)
> > RawDataSub <- Raw.Data[,sub]
> Error in Raw.Data[, sub] : (subscript) logical subscript too long

it looks like you are tyring to select columns not rows,
RawDataSub <- Raw.Data[,sub] #subsets on columns
try:
RawDataSub <- Raw.Data[sub,] #subset on rows

hth

claire
 
--------------------------------------------------------

 
This email is confidential and intended solely for the use o...{{dropped}}



More information about the Bioconductor mailing list