Skip to content

biostrings TranslationTable does not have vertebrate_mitochondrial #813

@msierk

Description

@msierk

Describe the bug

AttributeError: type object 'TranslationTable' has no attribute 'vertebrate_mitochondrial'

To Reproduce
Steps to reproduce the behavior:
Run the example code from the documentation.

import hgvs
import hgvs.parser
hp = hgvs.parser.Parser()
var_c1 = hp.parse_hgvs_variant('NM_001042492.3:c.6428-11_6448del32')
var_c1, var_c1.posedit.pos.start

import hgvs.dataproviders.uta
hdp = hgvs.dataproviders.uta.connect()

import hgvs.assemblymapper
vm = hgvs.assemblymapper.AssemblyMapper(
    hdp, assembly_name='GRCh38', alt_aln_method='splign')
var_g = vm.c_to_g(var_c1)
var_g

vm.relevant_transcripts(var_g)
#var_c2 = vm.g_to_c(var_g,'NM_001197320.1')

var_p1 = vm.c_to_p(var_c1)
#var_p2 = vm.c_to_p(var_c2)
var_p1

Expected behavior
I expected output similar to that shown in the documentation.

Additional context

> python
Python 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:35:20) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hgvs
>>> hgvs.__version__
'1.5.6'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions