Package org.forester.sequence
Class BasicSequence
java.lang.Object
org.forester.sequence.BasicSequence
- All Implemented Interfaces:
MolecularSequence
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.forester.sequence.MolecularSequence
MolecularSequence.TYPE
-
Field Summary
Fields inherited from interface org.forester.sequence.MolecularSequence
AA_REGEXP, DNA_REGEXP, GAP, GAP_STR, RNA_REGEXP, TERMINATE, UNSPECIFIED_AA, UNSPECIFIED_NUC
-
Constructor Summary
ConstructorDescriptionBasicSequence
(String identifier, char[] mol_sequence, MolecularSequence.TYPE type) Only use if you know what you are doing!BasicSequence
(String identifier, String mol_sequence, MolecularSequence.TYPE type) Only use if you know what you are doing! -
Method Summary
Modifier and TypeMethodDescriptionstatic MolecularSequence
static MolecularSequence
createAaSequence
(String identifier, String mol_sequence) static MolecularSequence
createDnaSequence
(String identifier, String mol_sequence) static MolecularSequence
createRnaSequence
(String identifier, String mol_sequence) boolean
int
char[]
int
char
getResidueAt
(int position) getType()
int
hashCode()
boolean
isGapAt
(int position) void
setIdentifier
(String id) toString()
-
Constructor Details
-
BasicSequence
Only use if you know what you are doing! -
BasicSequence
Only use if you know what you are doing!
-
-
Method Details
-
setIdentifier
-
getIdentifier
- Specified by:
getIdentifier
in interfaceMolecularSequence
-
getLength
public int getLength()- Specified by:
getLength
in interfaceMolecularSequence
-
getMolecularSequence
public char[] getMolecularSequence()- Specified by:
getMolecularSequence
in interfaceMolecularSequence
-
getResidueAt
public char getResidueAt(int position) - Specified by:
getResidueAt
in interfaceMolecularSequence
-
getType
- Specified by:
getType
in interfaceMolecularSequence
-
getNumberOfGapResidues
public int getNumberOfGapResidues()- Specified by:
getNumberOfGapResidues
in interfaceMolecularSequence
-
equals
-
hashCode
public int hashCode() -
toString
-
copySequence
-
createAaSequence
-
createDnaSequence
-
createRnaSequence
-
getMolecularSequenceAsString
- Specified by:
getMolecularSequenceAsString
in interfaceMolecularSequence
-
isGapAt
public boolean isGapAt(int position) - Specified by:
isGapAt
in interfaceMolecularSequence
-