Cnv.signaturemap

Cnv.signaturemap#

missionbio.mosaic.cnv.Cnv.signaturemap

Cnv.signaturemap(attribute: Union[str, ndarray], kind: str = 'median', nan_value: Optional[float] = None, splitby: Union[str, ndarray] = 'label', features: Optional[Sequence] = 'positions', x_groups: Optional[ndarray] = None, labels: Optional[Sequence] = None) Figure#

Extends signaturemap()

Specifically for the 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’]. x_groups is only used when features is a Sequence, otherwise it is ignored.

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.


< Class Cnv