public final class Translator extends Object
Modifier and Type | Method and Description |
---|---|
static Translator |
getTranslator()
Factory method to get reference to Translator.
|
String |
toLong(char c) |
String |
toLong(String shortAASeq) |
String |
translateDNA(String dnaseq)
Translates a DNA sequence.
|
String |
translateDNA3(String dnaseq) |
public static Translator getTranslator()
Translator
singletonpublic String translateDNA(String dnaseq)
Currently, there is no need to translate more than a single codon. However, some portions of the code are trying to translate DNA that is not a multiple of 3 nt long (from indel code). Therefore, we will translate as much as possible here. This may need refactoring in the future. (TODO).
dnaseq
- A DNA sequence that is to be translatedpublic String toLong(String shortAASeq)
shortAASeq
- amino acid sequence with one-character representation of amino acidspublic String toLong(char c)
c
- short amino acid representation to conver to long representationCopyright © 2016. All rights reserved.