set geneNames in exprSet object
2
0
Entering edit mode
@marcelo-luiz-de-laia-377
Last seen 10.2 years ago
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? thanks Marcelo -- No virus found in this outgoing message. Checked by AVG Anti-Virus.
• 816 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 16 hours ago
United States
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 > > >
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
On Feb 16, 2005, at 12:18 PM, Marcelo Luiz de Laia wrote: > 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 It looks to me like your call to read.table did not have the effect you desired. I'm not sure we can be of more help without more info. After the call to read.table, what is in Tol.geneNames? What are the first three lines of geneNames.txt? + seth
ADD COMMENT

Login before adding your answer.

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