RowInd (row index permutation vector )
1
0
Entering edit mode
@priscila-grynberg-3196
Last seen 10.2 years ago
Dear BioCs, I'd like to know how can I obtain the list of genes in the same order as heatmap clustered them. I used heatmap() function. And I can't read the row names. I read about RowInd and order.dendrogram(), but with no success at all. Thanks. -- Priscila Grynberg, B.Sc., M.Sc. Doutoranda em Bioinformática (Bioinformatics D.Sc student) Laboratório de Genética Bioquímica Universidade Federal de Minas Gerais Tel: +55 31 3409-2628 CV: http://lattes.cnpq.br/8808643075395963 [[alternative HTML version deleted]]
• 989 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 5 hours ago
United States
a <- heatmap(as.matrix(mtcars)) > rev(row.names(mtcars)[a$rowInd]) [1] "Toyota Corona" "Porsche 914-2" "Datsun 710" [4] "Volvo 142E" "Merc 230" "Lotus Europa" [7] "Merc 280" "Merc 280C" "Mazda RX4 Wag" [10] "Mazda RX4" "Merc 240D" "Ferrari Dino" [13] "Fiat 128" "Fiat X1-9" "Toyota Corolla" [16] "Honda Civic" "Merc 450SL" "Merc 450SE" [19] "Merc 450SLC" "Dodge Challenger" "AMC Javelin" [22] "Hornet 4 Drive" "Valiant" "Duster 360" [25] "Camaro Z28" "Ford Pantera L" "Pontiac Firebird" [28] "Hornet Sportabout" "Cadillac Fleetwood" "Lincoln Continental" [31] "Chrysler Imperial" "Maserati Bora" Best, Jim Priscila Grynberg wrote: > Dear BioCs, > I'd like to know how can I obtain the list of genes in the same order as > heatmap clustered them. I used heatmap() function. And I can't read the row > names. > > I read about RowInd and order.dendrogram(), but with no success at all. > > Thanks. > > > > -------------------------------------------------------------------- ---- > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor -- James W. MacDonald, M.S. Biostatistician Douglas Lab University of Michigan Department of Human Genetics 5912 Buhl 1241 E. Catherine St. Ann Arbor MI 48109-5618 734-615-7826
ADD COMMENT
0
Entering edit mode
Dear Jim, That was beautiful. Thanks! Priscila On Fri, Sep 4, 2009 at 3:18 PM, James W. MacDonald <jmacdon@med.umich.edu>wrote: > a <- heatmap(as.matrix(mtcars)) > > rev(row.names(mtcars)[a$rowInd]) > [1] "Toyota Corona" "Porsche 914-2" "Datsun 710" > [4] "Volvo 142E" "Merc 230" "Lotus Europa" > [7] "Merc 280" "Merc 280C" "Mazda RX4 Wag" > [10] "Mazda RX4" "Merc 240D" "Ferrari Dino" > [13] "Fiat 128" "Fiat X1-9" "Toyota Corolla" > [16] "Honda Civic" "Merc 450SL" "Merc 450SE" > [19] "Merc 450SLC" "Dodge Challenger" "AMC Javelin" > [22] "Hornet 4 Drive" "Valiant" "Duster 360" > [25] "Camaro Z28" "Ford Pantera L" "Pontiac Firebird" > [28] "Hornet Sportabout" "Cadillac Fleetwood" "Lincoln Continental" > [31] "Chrysler Imperial" "Maserati Bora" > > Best, > > Jim > > > > Priscila Grynberg wrote: > >> Dear BioCs, >> I'd like to know how can I obtain the list of genes in the same order as >> heatmap clustered them. I used heatmap() function. And I can't read the >> row >> names. >> >> I read about RowInd and order.dendrogram(), but with no success at all. >> >> Thanks. >> >> >> >> ------------------------------------------------------------------- ----- >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor@stat.math.ethz.ch >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> Search the archives: >> http://news.gmane.org/gmane.science.biology.informatics.conductor >> > > -- > James W. MacDonald, M.S. > Biostatistician > Douglas Lab > University of Michigan > Department of Human Genetics > 5912 Buhl > 1241 E. Catherine St. > Ann Arbor MI 48109-5618 > 734-615-7826 > -- Priscila Grynberg, B.Sc., M.Sc. Doutoranda em Bioinformática (Bioinformatics D.Sc student) Laboratório de Genética Bioquímica Universidade Federal de Minas Gerais Tel: +55 31 3409-2628 CV: http://lattes.cnpq.br/8808643075395963 [[alternative HTML version deleted]]
ADD REPLY

Login before adding your answer.

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