|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.controller.Integrator
public class Integrator
This class is intended to merge and to integrate biopax models not necessarily from the same resource - if models allow such a thing. This class has very similar functionality to the controller.Merger but it differs in means of merging/integrating methodology. Integrator iterates all the conversions in from the target and source model(s), and assigns scores indicating their similarity. After the scoring process is completed, it then starts integrating conversions having the highest score until it reaches the threshold value. After this conversion based integration is accomplished, all the models are merged into the target. Please note that this class is in its beta state.
| Constructor Summary | |
|---|---|
Integrator(EditorMap editorMap,
Model target,
Model... sources)
|
|
| Method Summary | |
|---|---|
java.lang.Double |
getThreshold()
Returns the threshold value (the smallest score for integrating two conversions) |
java.util.List<ConversionScore> |
integrate()
Integrates target and source(s) and returns a sorted (desc) list of conversion scores. |
java.util.List<ConversionScore> |
integrate(java.util.List<ConversionScore> alternativeScores)
Does the integration using user-provided scores list. |
void |
setNormalizeModels(boolean normalizeModels)
Fixes some of the known Open Controlled Vocabullary issues in the models. |
void |
setOnlyMapping(boolean mapping)
Enables/disables integration. |
void |
setScoresOver(double scoresOver)
A score between two conversions is in the interval (0, 1]. |
void |
setSelfRemove(boolean selfRemove)
Enables removal of elements from the target if they are contained both in source and target, and have a match with another conversion. |
void |
setThreshold(java.lang.Double threshold)
Sets the threshold value (the smallest score for integrating two conversions) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Integrator(EditorMap editorMap,
Model target,
Model... sources)
editorMap - map to be used in order to initialize mergertarget - target model into which integration will be donesources - targets that are going to be integrated into targetMerger| Method Detail |
|---|
public void setThreshold(java.lang.Double threshold)
threshold - valuesetScoresOver(double)public java.lang.Double getThreshold()
public void setOnlyMapping(boolean mapping)
mapping - true for skipping integrationintegrate()public void setSelfRemove(boolean selfRemove)
selfRemove - true for enabling removal, false otherwisepublic void setNormalizeModels(boolean normalizeModels)
normalizeModels - true for normalization of OCVspublic void setScoresOver(double scoresOver)
scoresOver - a double scorepublic java.util.List<ConversionScore> integrate()
setNormalizeModels(boolean),
setOnlyMapping(boolean),
setScoresOver(double),
setSelfRemove(boolean),
setThreshold(Double)public java.util.List<ConversionScore> integrate(java.util.List<ConversionScore> alternativeScores)
alternativeScores - alternative scores, can be null
integrate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||