Skip to content

Commit

Permalink
CODON_TABLE -> RNA_CODON_TO_1AA
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Jan 11, 2024
1 parent 27c7f79 commit aea9013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variation/gnomad_vcf_to_protein_variation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _trim_prefix_or_suffix(
return aa_ref, aa_alt, aa_start_pos


CODON_TABLE = {
RNA_CODON_TO_1AA = {
"AUA": "I",
"AUC": "I",
"AUU": "I",
Expand Down Expand Up @@ -237,7 +237,7 @@ def _dna_to_aa(dna_seq: str, strand: Strand) -> str:
# RNA -> Protein
aa = ""
for i in range(int(len(rna_seq) / 3)):
aa += CODON_TABLE[rna_seq[3 * i : (3 * i) + 3]]
aa += RNA_CODON_TO_1AA[rna_seq[3 * i : (3 * i) + 3]]
return aa

async def gnomad_vcf_to_protein(self, q: str) -> NormalizeService:
Expand Down

0 comments on commit aea9013

Please sign in to comment.