@Immutable
public class FastaSequence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
Sequence id
|
private java.lang.String |
sequence
Returns the string representation of sequence
|
Constructor and Description |
---|
FastaSequence() |
FastaSequence(java.lang.String id,
java.lang.String sequence)
Upon construction the any whitespace characters are removed from the
sequence
|
Modifier and Type | Method and Description |
---|---|
static int |
countMatchesInSequence(java.lang.String theString,
java.lang.String theRegExp) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFormatedSequence(int width)
Format sequence per width letter in one string.
|
java.lang.String |
getFormattedFasta() |
java.lang.String |
getId()
Gets the value of id
|
int |
getLength() |
java.lang.String |
getOnelineFasta() |
java.lang.String |
getSequence()
Gets the value of sequence
|
int |
hashCode() |
java.lang.String |
toString()
Same as oneLineFasta
|
private java.lang.String id
private java.lang.String sequence
FastaSequence()
public FastaSequence(java.lang.String id, java.lang.String sequence)
id
- sequence
- public java.lang.String getId()
public java.lang.String getSequence()
public static int countMatchesInSequence(java.lang.String theString, java.lang.String theRegExp)
public java.lang.String getFormattedFasta()
public java.lang.String getOnelineFasta()
public java.lang.String getFormatedSequence(int width)
public int getLength()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object