|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.jpredictor.clustering.Clustering
public abstract class Clustering
Wrapper class for a clustering of many motifs. The clustering steps to perform are:
| Field Summary | |
|---|---|
(package private) java.util.Vector |
clusters
The vector containing motif lists, where each list represents a cluster. |
(package private) ICommunicator |
comm
A local instance of the communicator the class was constructed with. |
(package private) MotifList |
consensus
The list of consensus motifs for the clusters stored in the Vector clusters. |
(package private) MultiMotifAlignment |
mma
The alignment of multi motifs used in this clustering. |
(package private) int |
n
Initial number of objects to cluster. |
(package private) static java.util.Hashtable |
nucleotideVector
Holds for every nucleotide letter (IUPAC code) a double array of probabilities for the different primary nucleotides. |
(package private) SingleMotifAlignment |
sma
The alignment of single motifs used in this clustering. |
| Constructor Summary | |
|---|---|
Clustering(ICommunicator comm,
SingleMotifAlignment sma,
MultiMotifAlignment mma)
Inits the clustering with a communicator and a two alignments. |
|
| Method Summary | |
|---|---|
(package private) MotifAlignment |
alignMotifs(Motif m1,
Motif m2)
Creates a new alignment and adds the two motifs. |
(package private) abstract void |
clusterStep()
The second step in the clustering loop. |
(package private) abstract void |
initClustering()
Inits the clustering. |
(package private) void |
outputResults()
Last step in clustering. |
void |
setMotifList(MotifList ml)
Gets a list of motifs to be clustered. |
void |
start(double threshold,
int clusternumber)
Starts the clustering process. |
(package private) abstract boolean |
stopTest(double threshold,
int clusternumber)
The first step in the clustering loop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static java.util.Hashtable nucleotideVector
ICommunicator comm
java.util.Vector clusters
consensus.
consensusMotifList consensus
clusters.
clustersSingleMotifAlignment sma
null
.
MultiMotifAlignment mma
null
.
int n
setMotifList(MotifList).
setMotifList(MotifList)| Constructor Detail |
|---|
public Clustering(ICommunicator comm,
SingleMotifAlignment sma,
MultiMotifAlignment mma)
throws java.lang.NullPointerException
setMotifList(MotifList).
comm - The communicator to get the motif list from.sma - The single motif alignment, may not be null.mma - The multi motif alignment, may be null.
java.lang.NullPointerException - If the given communicator is
null, or if sma is null.| Method Detail |
|---|
public void setMotifList(MotifList ml)
ml
is null or if no motifs are in the list, the clustering
is cleared.
ml - The list of motifs to be clustered.
public void start(double threshold,
int clusternumber)
threshold - The threshold for the stop test. The meaning of this
value differs for different strategies. Might be Double.NaN
, if no threshold is wished and the clustering is to proceed
until only one cluster is left.clusternumber - The number of clusters wished. Give zero or -1
to have a full clustering.initClustering(),
stopTest(double, int),
clusterStep(),
outputResults()abstract void initClustering()
start(double, int) to be called.
start(double, int)
abstract void clusterStep()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - If a clustering could not be performed
due to some reason.
abstract boolean stopTest(double threshold,
int clusternumber)
threshold - The threshold to end the clustering. Might be
Double.NaN to indicate, that the clustering should continue
fully.clusternumber - The number of clusters wished. Give zero or -1
to have a full clustering.
true if the clustering has to stop, false
otherwise.void outputResults()
MotifAlignment alignMotifs(Motif m1,
Motif m2)
compute().
m1 - The first motif, after which the alignment is choosen.m2 - The second motif in the alignment.
MotifAlignment ready to compute.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||