genome_entropy.translate.translator
Translation of nucleotide sequences to amino acids.
Functions
|
Translate an ORF to a protein sequence. |
|
Translate multiple ORFs to protein sequences. |
Classes
|
Represents a translated protein from an ORF. |
- class genome_entropy.translate.translator.ProteinRecord(orf, aa_sequence, aa_length)[source]
Represents a translated protein from an ORF.
- orf
The OrfRecord that was translated
- genome_entropy.translate.translator.translate_orf(orf, table_id=11)[source]
Translate an ORF to a protein sequence.
Uses the pygenetic-code library for translation with NCBI genetic codes. Ambiguous codons (containing N or other IUPAC codes) are translated to ‘X’.
- Parameters:
- Returns:
ProteinRecord with translated sequence
- Raises:
TranslationError – If translation fails
- Return type: