etal / cnvkit

Copy number variant detection from targeted DNA sequencing
http://cnvkit.readthedocs.org
Other
520 stars 163 forks source link

How is generated the heatmap? #732

Closed msubirana closed 1 year ago

msubirana commented 2 years ago

Hi!

I want to generate a heatmap with de CNV generated by cnvkit and cluster them using hierarchical clustering (Ward.D2 algorithm). My question is about how do you define the bins or the segments in the x axis (genome) for plotting the heatmap in your package. I mean. how I can end up with a dataframe with position and log2 of the cnv if every sample have different positions of the cnvs?

tetedange13 commented 2 years ago

Hi @msubirana ,

I do not think the internal matrix can be easily exported for now => A few points about the heatmap command:

Hope this helped a bit ! Have a nice day. Felix.

dudududu12138 commented 11 months ago

Hi!

I want to generate a heatmap with de CNV generated by cnvkit and cluster them using hierarchical clustering (Ward.D2 algorithm). My question is about how do you define the bins or the segments in the x axis (genome) for plotting the heatmap in your package. I mean. how I can end up with a dataframe with position and log2 of the cnv if every sample have different positions of the cnvs?

Hello,I have the same question as you. Do you know how to do it later? Thank you very much!