Question: Plotting CNV matrix as heatmap using python
gravatar for roy.granit
9 months ago by
roy.granit810 wrote:

I have a marix with chromosome location and copy number data which looks like this

 chr    start   cell_1  cell_2  cell_3
1   9997206 1.42    -0.25   -0.84
1   9997306 -0.47   -0.32   -0.34
1   9997406 -0.51   0.19    -2.06
1   9997506 0.23    -0.2    0.27
1   9997606 -0.41   -0.27   -2.02

I wish to plot this data as a heatmap using python.. I've tried to do this with 'seaborn' but that did not go very well.. I'd love to get some advice since I was not able to find good answers.

I guess I could do this in R or matlab, but since my upstream script is written in python I though to try my luck with python.


heatmap cnv python • 414 views
ADD COMMENTlink modified 6 months ago by Renesh1.8k • written 9 months ago by roy.granit810

Take a look at matplotlib directly, or plot_ly has some nice heatmap functionality.

ADD REPLYlink written 9 months ago by Joe16k

Ended using which runs from R but has great functionality

ADD REPLYlink written 8 months ago by roy.granit810
gravatar for Renesh
6 months ago by
United States
Renesh1.8k wrote:

ADD COMMENTlink written 6 months ago by Renesh1.8k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 820 users visited in the last hour