|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.imports.SeqUtils
Provides methods of common interest to this package, related to sequence operations. Converts lines of text with three-residue codes to one letter code.
| Field Summary | |
static java.lang.String[] |
conversions
An array of String that described the conversion applied by this class. |
| Constructor Summary | |
SeqUtils()
|
|
| Method Summary | |
static void |
appendSeq3Residues(BiologicalSequence seq,
java.lang.String line,
java.lang.String separator)
Appends the a set of residues to the sequence residues. |
static char |
convertRes3(java.lang.String res3)
Converts a three letter code residue string to a one letter code character. |
static java.lang.String |
convertToSeq1(java.lang.String seq3,
java.lang.String separator)
Converts a string of residues (3 characters codes) to string of one-letter code residues. |
static void |
main(java.lang.String[] args)
Tests this class behaviour and provides an example of its use. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String[] conversions
| Constructor Detail |
public SeqUtils()
| Method Detail |
public static void appendSeq3Residues(BiologicalSequence seq,
java.lang.String line,
java.lang.String separator)
throws UnsupportedResidueType
seq - The sequence to which the residues are to be appendedline - The line of text that encodes the residues to append.separator - The residue delimiter, usually a single character
string (" ", "-", etc.)
UnsupportedResidueType - Thrown when the token delimited
by the limits of the string and/or the separator(s) is not
recognized as a residue code.convertToSeq1(java.lang.String, java.lang.String)
public static java.lang.String convertToSeq1(java.lang.String seq3,
java.lang.String separator)
throws UnsupportedResidueType
separator - The residue delimiter, usually a single character
string (" ", "-", etc.)
UnsupportedResidueType - Thrown when the token delimited
by the limits of the string and/or the separator(s) is not
recognized as a residue code.
public static final char convertRes3(java.lang.String res3)
throws UnsupportedResidueType
UnsupportedResidueType - Thrown when res3 is not contained in
the conversions array.conversionspublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||