Skip to content

Check for valid amino acid sequences in the input #6

@guzmanfj

Description

@guzmanfj

I got this error when there was an X in a protein sequence

  File "/Users/guzmanfj/Documents/py/CoolerCodonOpt/scripts/codonopt.py", line 482, in opt_backtranslate
    codons = codons_probabilities[aa][0]
KeyError: 'X'

Input sequence:

>118
MFVEVPPENAIXTYYATSVLIIQIQDFYTPLNPANMLTLQQVIREPRDIRLTPRLDVQAQ
PKVWPS

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions