list of significant genes (siggenes)
2
0
Entering edit mode
@assa-yeroslaviz-1453
Last seen 9.6 years ago
Hi, i need some helpediting my resluts. I have a data frame( matrix ), whereas on the first column are the names of my items. Then I have a second object. This is the output of the line: > list.siggenes(data.out, delta) "item_1! "item_2" "item_3" "item_4" ... 1. Is this object is a vector or just a list? 2. How can i change this object to a matrix? my second problem is in comparing both of the data. I want to compare the data frame with the list from 'list.siggenes' and to cut out all the line, which don't appear in both objects. can anyone please help me? THX Assa -- Assa Yeroslaviz L?tzenerstr. 15 51373 Leverkusen
• 777 views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 9.6 years ago
On 28 Oct 2005, Assa.Yeroslaviz at uni-duesseldorf.de wrote: > Hi, > > i need some helpediting my resluts. > > I have a data frame( matrix ), data.frame is not the same as a matrix in R. Have a look at the R Intro manual for an overview, or read the man pages for ?data.frame and ?matrix. > whereas on the first column are the > names of my items. Then I have a second object. This is the output > of the line: >> list.siggenes(data.out, delta) > "item_1! "item_2" "item_3" "item_4" ... > > 1. Is this object is a vector or just a list? Ask R: class(list.siggenes(data.out, delta)) > 2. How can i change this object to a matrix? Not enough info at this stage to help, I'm afraid. > my second problem is in comparing both of the data. I want to > compare the data frame with the list from 'list.siggenes' and to cut > out all the line, which don't appear in both objects. If you have a column (which would be a vector) that acts as the primary key, you can use the intersect() function to find all ids that appear in both. + seth
ADD COMMENT
0
Entering edit mode
@holger-schwender-344
Last seen 9.6 years ago
> --- Urspr?ngliche Nachricht --- > Von: Assa Yeroslaviz <assa.yeroslaviz at="" uni-duesseldorf.de=""> > An: "bioconductor at stat.math.ethz.ch" <bioconductor at="" stat.math.ethz.ch=""> > Betreff: [BioC] list of significant genes (siggenes) > Datum: Fri, 28 Oct 2005 16:39:08 +0200 > > Hi, > > i need some helpediting my resluts. > > I have a data frame( matrix ), whereas on the first column are the names > of my > items. Then I have a second object. This is the output of the line: > > list.siggenes(data.out, delta) > "item_1! "item_2" "item_3" "item_4" ... > > 1. Is this object is a vector or just a list? It's a vector containing the names of the significant genes. > 2. How can i change this object to a matrix? E.g., matrix(list.siggenes(data.out,delta)). But I don't think that this actually is what you really want to have. > > my second problem is in comparing both of the data. I want to compare the > data > frame with the list from 'list.siggenes' and to cut out all the line, > which > don't appear in both objects. If your data set is called data and (as you have said) the first column of data contains the gene names, then one way to do this is R> rownames(data)<-data[,1] R> data<-data[,-1] # this step is actually not needed R> sig.data<-data[list.siggenes(data.out,delta),] Best, Holger > > can anyone please help me? > > THX > > Assa > > > -- > Assa Yeroslaviz > L?tzenerstr. 15 > 51373 Leverkusen > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > -- Highspeed-Freiheit. Bei GMX superg?nstig, z.B. GMX DSL_Cityflat, --
ADD COMMENT

Login before adding your answer.

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