|
JAligner | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jaligner.Sequence
A basic (nucleic or protein) sequence. It's a wrapper to
String
.
Field Summary | |
static int |
NUCLEIC
Sequence type nucleic. |
static int |
PROTEIN
Sequence type protein. |
Constructor Summary | |
Sequence()
Constructor |
|
Sequence(java.lang.String sequence)
Constructor |
|
Sequence(java.lang.String sequence,
java.lang.String id,
java.lang.String description,
int type)
Constructor |
Method Summary | |
char |
acidAt(int index)
Returns the acid at specific location in the sequence |
java.lang.String |
getDescription()
Returns the sequence description |
java.lang.String |
getId()
Returns the sequence id |
java.lang.String |
getSequence()
Returns the sequence string |
int |
getType()
Returns the sequence type (nucleic or protein) |
int |
length()
Returns the length of the sequence |
void |
setDescription(java.lang.String description)
Sets the sequence description |
void |
setId(java.lang.String id)
Sets the sequence id |
void |
setSequence(java.lang.String sequence)
Sets the sequence string |
void |
setType(int type)
Sets the sequence type (nucleic or protein) |
java.lang.String |
subsequence(int index,
int length)
Returns a subsequence |
char[] |
toArray()
Returns the sequence as an array of characters. |
java.lang.String |
toString()
Returns the sequence id and the sequence string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NUCLEIC
public static final int PROTEIN
Constructor Detail |
public Sequence()
public Sequence(java.lang.String sequence)
sequence
- public Sequence(java.lang.String sequence, java.lang.String id, java.lang.String description, int type)
sequence
- id
- description
- type
- Method Detail |
public java.lang.String getSequence()
public void setSequence(java.lang.String sequence)
sequence
- The sequence to setpublic java.lang.String getId()
public void setId(java.lang.String id)
id
- The id to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to setpublic int getType()
public void setType(int type)
type
- The type to setpublic int length()
public java.lang.String subsequence(int index, int length)
index
- start indexlength
- length of subsequence
public char acidAt(int index)
index
-
public char[] toArray()
public java.lang.String toString()
|
JAligner | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Ahmed Moustafa (ahmed@users.sf.net) | |
The source code of JAligner is licensed under The GNU General Public License (GPL) |