Entering edit mode
Claire Wilson
▴
280
@claire-wilson-273
Last seen 10.2 years ago
> 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}}