VariantValidator
Check and Encode HGVS string
The default mRNA transcript for the HGVS strings should be added in the constructor byt can be overridden in the encode_hgvs method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
genome_build
|
str
|
The genome assembly, one of "GRCh37", "GRCh38", "hg19", "hg38" |
required |
transcript
|
str
|
An mRNA transcript that is the reference for the HGVS string, opt |
None
|
Source code in pyphetools/creation/variant_validator.py
__init__(genome_build, transcript=None)
Constructor
Source code in pyphetools/creation/variant_validator.py
encode_hgvs(hgvs, custom_transcript=None)
Encode an HGVS string as a pyphetools Variant object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hgvs
|
str
|
Human Genome Variation Society (HGVS) representation of a variant, e.g., c.36613706dup |
required |
custom_transcript
|
str
|
a transcript (e.g., NM_001848.2), if different from the default transcript, optional |
None
|
Returns:
Type | Description |
---|---|
HgvsVariant
|
pyphetools Variant object |