How to fix column order with pheatmap?
1
0
Entering edit mode
5.5 years ago
Alicia • 0

Dear all, I want to generate a pheatmap with rlog values from DEseq, and I want to put the samples with higher expression value to the right side, and the samples with lower expression values to the left side. Therefore I can compare the results from different experiments. Do you have any suggestions how to make that happen?

pheatmap column order • 8.9k views
ADD COMMENT
0
Entering edit mode

Sort the columns based on expression and use cluster_cols=FALSE.

ADD REPLY
0
Entering edit mode

Hi, arup, thanks a lot.

ADD REPLY
0
Entering edit mode
5.5 years ago

as mentioned in this post, How to regroup columns in R using heatmap.2 or pheatmap ?, reorder the matrix as per your requirement and then as arup said below, do not cluster the cols. @ Alicia

ADD COMMENT
0
Entering edit mode

Thank you very much. I missed the post you mentioned when I searched it. The method is quite strightforward.

ADD REPLY
0
Entering edit mode

np. upvote the original post if it is helpful. Alicia

ADD REPLY

Login before adding your answer.

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