public final class SeqVertex extends BaseVertex
sequence
Constructor and Description |
---|
SeqVertex(byte[] sequence)
Create a new SeqVertex with sequence and the next available id
|
SeqVertex(java.lang.String sequence)
Create a new SeqVertex having bases of sequence.getBytes()
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Two SeqVertex are equal only if their ids are equal
|
int |
getId()
Get the unique ID for this SeqVertex
|
int |
hashCode()
necessary to override here so that graph.containsVertex() works the same way as vertex.equals() as one might expect
|
java.lang.String |
toString() |
SeqVertex |
withoutPrefixAndSuffix(byte[] prefix,
byte[] suffix)
Return a new SeqVertex derived from this one but not including prefix or suffix bases
|
SeqVertex |
withoutSuffix(byte[] suffix)
Return a new SeqVertex derived from this one but not including the suffix bases
|
getAdditionalInfo, getAdditionalSequence, getSequence, getSequenceString, hasAmbiguousSequence, isEmpty, length, seqEquals, setAdditionalInfo
public SeqVertex(byte[] sequence)
sequence
- our base sequencepublic SeqVertex(java.lang.String sequence)
sequence
- the string representation of our basespublic int getId()
public java.lang.String toString()
toString
in class BaseVertex
public boolean equals(java.lang.Object o)
equals
in class BaseVertex
o
- public int hashCode()
BaseVertex
hashCode
in class BaseVertex
public SeqVertex withoutSuffix(byte[] suffix)
suffix
- the suffix bases to remove from this vertexpublic SeqVertex withoutPrefixAndSuffix(byte[] prefix, byte[] suffix)
prefix
- the previx bases to removesuffix
- the suffix bases to remove from this vertex