alleleTools.format.gene_report module

class alleleTools.format.gene_report.Gene(name: str, calls: dict, allele_parser: AlleleParser, coverage: List[dict] = [])[source]

Bases: object

This object holds the genes parsed from genotyping reports

asdict() dict[source]

Convert this object into a dictionary

mean_coverage() float | None[source]

Get the mean coverage of exons from the gene

class alleleTools.format.gene_report.Report(report: dict, allele_parser: AlleleParser)[source]

Bases: object

aslist() List[dict][source]

Convert the report into a list of dictionaries

alleleTools.format.gene_report.read_json(path: str) dict[source]

Reads a json file and returns a dict

alleleTools.format.gene_report.remove_HLA_prefix(coverage: dict) dict[source]

Remove HLA- prefix from coverage