Class TranscriptionEngine
java.lang.Object
org.biojava.nbio.core.sequence.transcription.TranscriptionEngine
Used as a way of encapsulating the data structures required to parse DNA to a
Protein sequence.
In order to build one look at @ TranscriptionEngine.Builder} which provides
intelligent defaults & allows you to build an engine which is nearly the same
as the default one but with a few changes. All of the engine is customisable.
By default the code will attempt to:
- Trim Stops
- Convert initiating codons to M
- Allow for the fuzzy translation of Codons i.e. if it contains an N that
produces a
Sequence
<{@link{AminoAcidCompound}> with an X at that position
- Author:
- ayates
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class is the way to create aTranslationEngine
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TranscriptionEngine
Default instance to use when Transcribing from DNA -> RNA -> Protein.getTable()
multipleFrameTranslation
(Sequence<NucleotideCompound> dna, Frame... frames) A way of translating DNA in a number of framesQuick method to let you go from a CDS to a Peptide quickly.
-
Method Details
-
getDefault
Default instance to use when Transcribing from DNA -> RNA -> Protein. If you require anything that is not a default setting then look at @ TranscriptionEngine.Builder} for customisation options. -
translate
Quick method to let you go from a CDS to a Peptide quickly. It assumes you are translating only in the first frame- Parameters:
dna
- The CDS to translate- Returns:
- The Protein Sequence
-
multipleFrameTranslation
public Map<Frame,Sequence<AminoAcidCompound>> multipleFrameTranslation(Sequence<NucleotideCompound> dna, Frame... frames) A way of translating DNA in a number of frames- Parameters:
dna
- The CDS to translateframes
- The Frames to translate in- Returns:
- All generated protein sequences in the given frames. Can have null entries
-
getTable
-
getRnaAminoAcidTranslator
-
getDnaRnaTranslator
-
getProteinSequenceCreator
-
getRnaSequenceCreator
-
getDnaCompounds
-
getRnaCompounds
-
getAminoAcidCompounds
-