Variant
Superclass for classes that create GA4GH VariantInterpretationObjects. Subclass HgvsVariant is used for small variants encoded using HGVS notation, e.g., NM_00123.5:c.543G>T. Subclass StructuralVariant is used for structural variants that are likely to completely disrupt a gene.
Source code in pyphetools/creation/variant.py
set_genotype(gt)
Assign an allele status to this variant
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gt
|
The genotype (allele status) of this variant |
required |
Source code in pyphetools/creation/variant.py
set_hemizygous()
set_heterozygous()
set_homozygous()
to_ga4gh_variant_interpretation(acmg=None)
abstractmethod
Embed the variant object into a GA4GH Genomic Interpretation object (abstract method)
The argument acmg must be one of the strings 'benign', 'likely_benign', 'uncertain_significance', 'likely_pathogenic', or 'pathogenic' (underscores are optional). If it is not provided or not one of these strings, the level will be set to not available
Parameters:
Name | Type | Description | Default |
---|---|---|---|
acmg
|
str
|
ACMG pathogenicity level |
None
|