public interface MotifDiscoverer extends Cloneable, Storable
Modifier and Type | Interface and Description |
---|---|
static class |
MotifDiscoverer.KindOfProfile
This
enum can be used to determine which kind of profile
should be returned. |
Modifier and Type | Method and Description |
---|---|
MotifDiscoverer |
clone()
This method returns a deep clone of the instance.
|
int |
getGlobalIndexOfMotifInComponent(int component,
int motif)
Returns the global index of the
motif used in
component . |
int |
getIndexOfMaximalComponentFor(Sequence sequence)
Returns the index of the component with the maximal score for the
sequence
sequence . |
int |
getMotifLength(int motif)
This method returns the length of the motif with index
motif
. |
int |
getNumberOfComponents()
Returns the number of components in this
MotifDiscoverer . |
int |
getNumberOfMotifs()
Returns the number of motifs for this
MotifDiscoverer . |
int |
getNumberOfMotifsInComponent(int component)
Returns the number of motifs that are used in the component
component of this MotifDiscoverer . |
double[] |
getProfileOfScoresFor(int component,
int motif,
Sequence sequence,
int startpos,
MotifDiscoverer.KindOfProfile kind)
Returns the profile of the scores for component
component
and motif motif at all possible start positions of the motif
in the sequence sequence beginning at startpos . |
double[] |
getStrandProbabilitiesFor(int component,
int motif,
Sequence sequence,
int startpos)
This method returns the probabilities of the strand orientations for a given subsequence if it is
considered as site of the motif model in a specific component.
|
MotifDiscoverer clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the instance could not be clonedCloneable
int getMotifLength(int motif)
motif
.motif
- the index of the motifmotif
int getNumberOfComponents()
MotifDiscoverer
.int getNumberOfMotifs()
MotifDiscoverer
.int getNumberOfMotifsInComponent(int component)
component
of this MotifDiscoverer
.component
- the component of the MotifDiscoverer
int getIndexOfMaximalComponentFor(Sequence sequence) throws Exception
sequence
.sequence
- the given sequenceException
- if the index could not be computed for any reasonsint getGlobalIndexOfMotifInComponent(int component, int motif)
motif
used in
component
. The index returned must be at least 0 and less
than getNumberOfMotifs()
.component
- the component indexmotif
- the motif index in the componentmotif
in component
double[] getProfileOfScoresFor(int component, int motif, Sequence sequence, int startpos, MotifDiscoverer.KindOfProfile kind) throws Exception
component
and motif motif
at all possible start positions of the motif
in the sequence sequence
beginning at startpos
.
This array should be of length sequence.length() - startpos - motifs[motif].getLength() + 1
.
component
- the component indexmotif
- the index of the motif in the componentsequence
- the given sequencestartpos
- the start position in the sequencekind
- indicates the kind of profileException
- if the score could not be computed for any reasonsdouble[] getStrandProbabilitiesFor(int component, int motif, Sequence sequence, int startpos) throws Exception
component
- the component indexmotif
- the index of the motif in the componentsequence
- the given sequencestartpos
- the start position in the sequenceException
- if the strand could not be computed for any reasons