gnomAD VCF to protein¶
gnomad_vcf_to_protein_variation
¶
Module for translating gnomAD-VCF to protein VRS Allele representation
Classes¶
GnomadVcfToProteinError
¶
Bases: Exception
Custom exception for gnomAD VCF To Protein specific errors
GnomadVcfToProteinVariation
¶
GnomadVcfToProteinVariation(seqrepo_access: SeqRepoAccess, tokenizer: Tokenize, classifier: Classify, validator: Validate, translator: Translate, mane_transcript: ManeTranscript, gene_normalizer: QueryHandler)
Class for translating gnomAD-VCF representation to VRS Allele protein representation
Initialize the GnomadVcfToProteinVariation class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seqrepo_access
|
SeqRepoAccess
|
Access to SeqRepo |
required |
tokenizer
|
Tokenize
|
Tokenizer class for tokenizing |
required |
classifier
|
Classify
|
Classifier class for classifying tokens |
required |
validator
|
Validate
|
Validator class for validating valid inputs |
required |
translator
|
Translate
|
Translating valid inputs |
required |
mane_transcript
|
ManeTranscript
|
Access MANE Transcript information |
required |
gene_normalizer
|
QueryHandler
|
Client for normalizing gene concepts |
required |
Methods:¶
gnomad_vcf_to_protein
async
¶
gnomad_vcf_to_protein(vcf_query: str, input_assembly: Literal[GRCH37, GRCH38] | None = None) -> GnomadVcfToProteinService
Given genomic gnomAD-VCF expression, return associated protein consequence
Genomic variant -> cDNA variant -> protein variant
If input_assembly is GRCh37, will attempt to liftover to GRCh38
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vcf_query
|
str
|
gnomAD-VCF expression of the form |
required |
input_assembly
|
Literal[GRCH37, GRCH38] | None
|
Assembly used for |
None
|
Returns:
| Type | Description |
|---|---|
GnomadVcfToProteinService
|
GnomadVcfToProteinService containing protein VRS Allele, if validation and translation was successful |