public class DNAToRNATranslator extends AbstractCompoundTranslator<NucleotideCompound,NucleotideCompound>
Frame
in order to be in the correctly
specified translation frame and then translates T to U. The other
translation carried out is to convert an equivalent compound in DNA to RNA
i.e. for the base A in DNA fetching the equivalent A base in the RNA
CompoundSet
.Constructor and Description |
---|
DNAToRNATranslator(SequenceCreatorInterface<NucleotideCompound> rnaCreator,
CompoundSet<NucleotideCompound> dna,
CompoundSet<NucleotideCompound> rna,
boolean shortCutTranslation) |
Modifier and Type | Method and Description |
---|---|
Sequence<NucleotideCompound> |
createSequence(Sequence<NucleotideCompound> originalSequence) |
Sequence<NucleotideCompound> |
createSequence(Sequence<NucleotideCompound> originalSequence,
Frame frame) |
List<Sequence<NucleotideCompound>> |
createSequences(Sequence<NucleotideCompound> originalSequence)
Overloaded local version which delegates to an optional translator
when told to (specified during construction).
|
protected void |
postProcessCompoundLists(List<List<NucleotideCompound>> compoundLists) |
protected RNASequence |
wrapToRna(Sequence<NucleotideCompound> dna)
Takes in the given DNA Sequence and returns an instance of RNASequence
which is using
RnaSequenceView as a
ProxySequenceReader . |
addCompounds, addCompoundsToList, addCompoundToLists, addStrings, getCreator, getFromCompoundSet, getToCompoundSet, translate, translateMany, workingListToSequences
public DNAToRNATranslator(SequenceCreatorInterface<NucleotideCompound> rnaCreator, CompoundSet<NucleotideCompound> dna, CompoundSet<NucleotideCompound> rna, boolean shortCutTranslation)
public List<Sequence<NucleotideCompound>> createSequences(Sequence<NucleotideCompound> originalSequence)
createSequences
in interface CompoundTranslator<NucleotideCompound,NucleotideCompound>
createSequences
in class AbstractCompoundTranslator<NucleotideCompound,NucleotideCompound>
originalSequence
- The DNA sequence to translateprotected RNASequence wrapToRna(Sequence<NucleotideCompound> dna)
RnaSequenceView
as a
ProxySequenceReader
.public Sequence<NucleotideCompound> createSequence(Sequence<NucleotideCompound> originalSequence, Frame frame)
public Sequence<NucleotideCompound> createSequence(Sequence<NucleotideCompound> originalSequence)
createSequence
in interface CompoundTranslator<NucleotideCompound,NucleotideCompound>
createSequence
in class AbstractCompoundTranslator<NucleotideCompound,NucleotideCompound>
protected void postProcessCompoundLists(List<List<NucleotideCompound>> compoundLists)
postProcessCompoundLists
in class AbstractCompoundTranslator<NucleotideCompound,NucleotideCompound>
Copyright © 2000–2019 BioJava. All rights reserved.