|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.models.mixture.motif.positionprior.PositionPrior
public abstract class PositionPrior
This is the main class for any position prior that can be used in a motif discovery.
| Field Summary | |
|---|---|
protected int |
motifLength
The length of the motif. |
| Constructor Summary | |
|---|---|
protected |
PositionPrior()
This empty constructor creates an instance with motif length -1. |
protected |
PositionPrior(StringBuffer rep)
The standard constructor for the interface Storable. |
| Method Summary | |
|---|---|
PositionPrior |
clone()
|
protected abstract void |
extractAdditionalInformation(StringBuffer xml)
This method extracts additional information from a StringBuffer. |
protected abstract StringBuffer |
getAdditionalInformation()
This method returns a StringBuffer containing additional
information for the XML representation. |
abstract String |
getInstanceName()
Returns the instance name. |
abstract int |
getLength()
Returns the length that is supported by this prior. |
abstract double |
getLogPriorForPositions(int seqLength,
int... starts)
The logarithmic value of the prior for specified start positions of the part motifs. |
void |
setMotifLength(int motifLength)
Sets the length of the current motif. |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int motifLength
| Constructor Detail |
|---|
protected PositionPrior()
protected PositionPrior(StringBuffer rep)
throws NonParsableException
Storable.
Creates a new PositionPrior out of a StringBuffer.
rep - the StringBuffer containing the model
NonParsableException - if the StringBuffer can not be parsed| Method Detail |
|---|
public PositionPrior clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
public abstract double getLogPriorForPositions(int seqLength,
int... starts)
throws IllegalArgumentException
seqLength - the length of the sequencestarts - the start positions of the part motifs
IllegalArgumentException - if something went wrong, e.g. the motif length is not set.public abstract int getLength()
public abstract String getInstanceName()
public void setMotifLength(int motifLength)
throws IllegalArgumentException
motifLength - the motif length
IllegalArgumentException - if the length is not positive or to bigpublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
toXML in interface Storableprotected abstract StringBuffer getAdditionalInformation()
StringBuffer containing additional
information for the XML representation.
StringBuffer containing additional information for the
XML representation
protected abstract void extractAdditionalInformation(StringBuffer xml)
throws NonParsableException
StringBuffer.
xml - the StringBuffer containing the additional information
of the XML representation
NonParsableException - if the StringBuffer is not parsable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||