Skip to content

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 chr-pos-ref-alt. For example, 7-140753336-A-T. gnomAD-VCF uses 1-based inclusive coordinates.

required
input_assembly Literal[GRCH37, GRCH38] | None

Assembly used for vcf_query. If not provided, will try to first validate against GRCh38 and then GRCh37

None

Returns:

Type Description
GnomadVcfToProteinService

GnomadVcfToProteinService containing protein VRS Allele, if validation and translation was successful

Functions: