translates a DNA or RNA sequence bioseq to a peptide sequence.
uses the genetic translation table gtt.
treats start codons in bioseq according to the specification startspec.
- The genetic translation table gtt can be specified as follows:
Automatic the standard code (default) "name" standard name of a "GeneticTranslationTable" entity Entity["GeneticTranslationTable",…] "GeneticTranslationTable" entity n NCBI genetic code number "AAAA…" length-64 NCBI codon translation string <|"cod1""tran1","cod2""tran2",…|> explicit codon translation table
- The start codon specification startspec specifies what translation should be used for the first codon in bioseq. If no startspec is given, the first codon will be treated as a start codon only if bioseq can be identified as corresponding to a complete protein.
- The following forms for startspec can be used to specific how to treat the first codon in bioseq:
Automatic treat as start codon only for complete proteins False never treat as start codon True always treat as start code
- The following additional forms for startspec can be used to define start codon behavior, overriding the specification implied by the genetic translation table gtt:
n use NCBI genetic code number start codon specification "AAAA…" use length-64 NCBI start codon translation string <|"cod1""tran1","cod2""tran2",…|> explicit specify start codon translations
Examplesopen allclose all
Translate using a "GeneticTranslationTable" entity:
Use an Association to specify the translation table:
The translations to selenocysteine (U) and pyrrolysine (O) only happen in particular chemical contexts that are distinct from the translation system for a particular organism. One way to incorporate them is to change the codon translation association:
Possible Issues (2)
Using BioSequenceInstances first will avoid ambiguous results:
Wolfram Research (2020), BioSequenceTranslate, Wolfram Language function, https://reference.wolfram.com/language/ref/BioSequenceTranslate.html.
Wolfram Language. 2020. "BioSequenceTranslate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BioSequenceTranslate.html.
Wolfram Language. (2020). BioSequenceTranslate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BioSequenceTranslate.html