Cnv.heatmap#

Cnv.heatmap(attribute: Union[str, numpy.ndarray], splitby: Union[str, numpy.ndarray] = 'label', features: Optional[Sequence] = None, bars_order: Optional[Sequence] = None, convolve: float = 0, title: str = '')#

Extends _Assay.heatmap()

Specifically for CNV ‘features’ can also be one of {‘genes’, ‘positions’} or a list of chromosomes e.g. [‘1’, ‘7’, ‘X’] or a list of gene names eg. [‘BRAF’, ‘TP53’]

Notes

If features == “genes”, the order of the amplicons is the position sorted order of the genes. The gene that comes first positionally, comes first. Some amplicons might not be position sorted because the gene was “Unknown” or there were genes in between genes resulting in all the amplicons for the gene that occurs first to be sorted before the amplicons of the other gene.