|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.sequence.SequenceFactory
SequenceFactory provides a simple way into the Sequence API. It
offers factory methods to create sequences from Strings and
Characters. This, combined with the methods in the utility class
Sequences
is probably all that most users will need.
Created: Tue Nov 14 18:06:37 2000
Field Summary | |
protected static AminoAcid[] |
aa
|
Constructor Summary | |
SequenceFactory()
|
Method Summary | |
static Sequence |
getDNASequence(char[] dnaSequence)
Create a Sequence representing a DNA sequence. |
static Sequence |
getDNASequence(String dnaSequence)
Create a Sequence representing a DNA sequence. |
static Sequence |
getProteinSequence(char[] proteinSequence)
Create a Sequence representing a protein sequence. |
static Sequence |
getProteinSequence(String proteinSequence)
Create a Sequence representing a protein sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static AminoAcid[] aa
Constructor Detail |
public SequenceFactory()
Method Detail |
public static Sequence getProteinSequence(char[] proteinSequence) throws InvalidSequenceTypeException
proteinSequence
- a character array representing the residues in the sequence - see AminoAcid for more details
InvalidSequenceTypeException
- if the input sequence contains an invalid character.public static Sequence getProteinSequence(String proteinSequence) throws InvalidSequenceTypeException
proteinSequence
- represents the residues in the sequence - see AminoAcid for more details
InvalidSequenceTypeException
- if the input sequence contains an invalid character.public static Sequence getDNASequence(char[] dnaSequence) throws InvalidSequenceTypeException
dnaSequence
- represents the residues in the sequence - see Nucleotide for more details
InvalidSequenceTypeException
- if the input sequence contains an invalid character.public static Sequence getDNASequence(String dnaSequence) throws InvalidSequenceTypeException
dnaSequence
- represents the residues in the sequence - see Nucleotide for more details
InvalidSequenceTypeException
- if the input sequence contains an invalid character.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |