public final class NucleotideTools extends Object
Modifier and Type | Method and Description |
---|---|
static AtomicSymbol |
a() |
static Symbol |
b() |
static AtomicSymbol |
c() |
static Symbol |
complement(Symbol sym)
Complement the symbol.
|
static SymbolList |
complement(SymbolList list)
Retrieve a complement view of list.
|
static ReversibleTranslationTable |
complementTable()
Get a translation table for complementing Nucleotide symbols.
|
static SymbolList |
createNucleotide(String nucleotide)
Return a new Nucleotide SymbolList for
nucleotide.
|
static Sequence |
createNucleotideSequence(String nucleotide,
String name)
Return a new Nucleotide Sequence for
nucleotide.
|
static Symbol |
d() |
static Symbol |
forIndex(int index)
Return the symbol for an index - compatible with
index . |
static Symbol |
forSymbol(char token)
Retrieve the symbol for a symbol.
|
static AtomicSymbol |
g() |
static FiniteAlphabet |
getNucleotide()
Return the Nucleotide alphabet.
|
static Symbol |
h() |
static int |
index(Symbol sym)
Return an integer index for a symbol - compatible with
forIndex . |
static Symbol |
k() |
static Symbol |
m() |
static Symbol |
n() |
static char |
nucleotideToken(Symbol sym)
Get a single-character token for a Nucleotide symbol
|
static Symbol |
r() |
static SymbolList |
reverseComplement(SymbolList list)
Retrieve a reverse-complement view of list.
|
static Symbol |
s() |
static AtomicSymbol |
t() |
static AtomicSymbol |
u() |
static Symbol |
v() |
static Symbol |
w() |
static Symbol |
y() |
public static AtomicSymbol a()
public static AtomicSymbol g()
public static AtomicSymbol c()
public static AtomicSymbol t()
public static AtomicSymbol u()
public static FiniteAlphabet getNucleotide()
public static SymbolList createNucleotide(String nucleotide) throws IllegalSymbolException
nucleotide
- a String to parse into NucleotideIllegalSymbolException
- if nucleotide contains
any non-Nucleotide characterspublic static Sequence createNucleotideSequence(String nucleotide, String name) throws IllegalSymbolException
nucleotide
- a String to parse into Nucleotidename
- a String to use as the nameIllegalSymbolException
- if nucleotide contains
any non-Nucleotide characterspublic static int index(Symbol sym) throws IllegalSymbolException
forIndex
.
The index for a symbol is stable accross virtual machines & invocations.
sym
- the Symbol to indexIllegalSymbolException
- if sym is not a member of the Nucleotide
alphabetpublic static Symbol forIndex(int index) throws IndexOutOfBoundsException
index
.
The index for a symbol is stable accross virtual machines & invocations.
index
- the index to look upIndexOutOfBoundsException
- if index is not between 0 and 3public static Symbol complement(Symbol sym) throws IllegalSymbolException
sym
- the symbol to complementIllegalSymbolException
- if sym is not a member of the Nucleotide alphabetpublic static Symbol forSymbol(char token) throws IllegalSymbolException
token
- the char to look upIllegalSymbolException
- if the char does not belong to {a, g, c, t, u}public static SymbolList complement(SymbolList list) throws IllegalAlphabetException
list
- the SymbolList to complementIllegalAlphabetException
- if list is not a complementable alphabetpublic static SymbolList reverseComplement(SymbolList list) throws IllegalAlphabetException
list
- the SymbolList to complementIllegalAlphabetException
- if list is not a complementable alphabetpublic static ReversibleTranslationTable complementTable()
public static char nucleotideToken(Symbol sym) throws IllegalSymbolException
IllegalSymbolException
- if sym
is not a member of the Nucleotide alphabetCopyright © 2014 BioJava. All rights reserved.