|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object compbio.data.sequence.FastaSequence
@Immutable public class FastaSequence
A FASTA formatted sequence. Please note that this class does not make any assumptions as to what sequence it stores e.g. it could be nucleotide, protein or even gapped alignment sequence! The only guarantee it makes is that the sequence does not contain white space characters e.g. spaces, new lines etc
Constructor Summary | |
---|---|
FastaSequence(String id,
String sequence)
Upon construction the any whitespace characters are removed from the sequence |
Method Summary | |
---|---|
static int |
countMatchesInSequence(String theString,
String theRegExp)
|
boolean |
equals(Object obj)
|
String |
getFormatedSequence(int width)
Format sequence per width letter in one string. |
String |
getFormattedFasta()
|
String |
getId()
Gets the value of id |
int |
getLength()
|
String |
getOnelineFasta()
|
String |
getSequence()
Gets the value of sequence |
int |
hashCode()
|
String |
toString()
Same as oneLineFasta |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FastaSequence(String id, String sequence)
id
- sequence
- Method Detail |
---|
public String getId()
public String getSequence()
public static int countMatchesInSequence(String theString, String theRegExp)
public String getFormattedFasta()
public String getOnelineFasta()
public String getFormatedSequence(int width)
public int getLength()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |