[BioC] set geneNames in exprSet object

James W. MacDonald jmacdon at med.umich.edu
Wed Feb 16 21:57:12 CET 2005


Marcelo Luiz de Laia wrote:
> Dear all,
> 
> I read a data set with the command:
> 
>  > Tol.eSet <- read.exprSet("Tolerante_b.txt") and the result is wonderful!
>  > Tol.eSet
> Expression Set (exprSet) with
>        2516 genes
>        18 samples
>                 phenoData object with 1 variables and 18 cases
>         varLabels
>                sample: arbitrary numbering
> 
> Now, I try to set the geneNames slot. I try these commands:
> 
>  > Tol.geneNames <- read.table("geneNames.txt",header = TRUE,colClasses 
> = "character")
>  > Tol.eSet$geneNames<-Tol.geneNames
>  > Tol.eSet$geneNames
> NULL
>  > geneNames(Tol.eSet)<-Tol.geneNames
> Error in "rownames<-"(x, value) : length of dimnames [1] not equal to 
> array extent
> 
> The column that contain geneNames is named Genes in txt archive.
> 
> Anyone could help me?

How about geneNames(Tol.eSet) <- Tol.geneNames[,"Genes"]

HTH,

Jim


> 
> thanks
> 
> Marcelo
> 
> 
>



More information about the Bioconductor mailing list