icbi-lab / infercnvpy

Infer copy number variation (CNV) from scRNA-seq data. Plays nicely with Scanpy.

Home Page:https://infercnvpy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heatmap chrom lenght - col width

abyssum opened this issue · comments

Full description:
The column width in the infercnv heatmap does not correspond to the length of the chromosome. It rather corresponds to the number of genes in the chromosome. This is consistent with the original infercnv implementation, but arguably a suboptimal visualization. In copykat, the visualization is correct.

Possible solution:
Remap bins representing n genes to their actual genomic position. Iterate over the genome in bins of a certain size (for instance 1kb). For each genomic bin, compute the average of all gene-bins falling in that region.