Complexheatmap question on sorting columns
0
0
Entering edit mode
tmcelrath • 0
@tmcelrath-10118
Last seen 5.5 years ago

I am using complexheatmap. Rows are biomarker concentrations, columns are individuals. I would like to sort the columns by both binary individual characteristics ( for example: case v. control, male v. female) or continuous characteristics (for example: age). Can someone suggest code to allow this simple classification of data?    -TM 

complexheatmap • 1.3k views
ADD COMMENT
0
Entering edit mode

Your question isn't very clear, if you want to sort columns this is a basic R question not bioconductor. If you want to sort columns in a heatmap for some reason - normally you would have the columns clustered for you - check the vignette. I use aheatmap for creating heatmaps from genomic data and I find it very easy to use and it has clear documentation - you can easily fix column order in this package using a vector.

http://stackoverflow.com/questions/1296646/how-to-sort-a-dataframe-by-columns

ADD REPLY

Login before adding your answer.

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