Change sample order in plotHeatmap?
0
0
Entering edit mode
3.8 years ago

Hello,

I'm running deeptools v3.5.0 and Python v3.7.4 in linux machine

I'm wondering if there is a built-in way to modify sample order in the heatmap produced by plotHeatmap, or if that could be done during the computeMatrix step? I can see few optional low-tech solutions, like changing the names of bigWig files or changing the order in photoshop or even changing the ordering of the columns in matrix with some command line text editing tools, but I was thinking that the safest (and the way best serving my lazyness) would be if this could be defined while giving the commands.

To be clear I'm asking for the order of samples, not regions. The documentation on that part was very good! But apart from giving optional labels with --samplesLable, I can't figure out how to change the sample order. Any suggestions?

Best, -Konsta

deepTools plotHeatmap computeMatrix • 1.3k views
ADD COMMENT
1
Entering edit mode

Have you tried to feed the .bigwigs manually to computeMatrix in the order you want them to appear?

ADD REPLY
0
Entering edit mode

Nope. That solved it. Thanks!

ADD REPLY
0
Entering edit mode

You are welcome! Happy to help!

ADD REPLY
0
Entering edit mode

Is there any other way to automatize it ? In my case, I've lots of samples with multiple parameters that are changing (E.g., species, histone modifications, sequencing parameter, etc)... a for loop is not even an option...

ADD REPLY

Login before adding your answer.

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