public class SimilaritySearchTask extends javafx.concurrent.Task<Integer>
1. Calculation of the fingerprint of the query notation
2. Calculation of the fingerprints of the notations in database
3. Calculation of tanimoto of the query notation and every other notation
4. Checking for subset in database
5a. Returning the notations with a specified minimum similarity in descending order.
5b. Or returning the notations that the query notation is a subset of.
exceptionProperty, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty| Modifier and Type | Field and Description |
|---|---|
protected static List<org.helm.notation2.parser.notation.HELM2Notation> |
helmList |
protected static List<Integer> |
idList |
static double |
MAX_PROGRESS |
protected static MyProgressBar |
progressbar |
protected static List<Map<String,Object>> |
resultNotations |
protected static List<Double> |
tanimotoList |
| Constructor and Description |
|---|
SimilaritySearchTask(org.helm.notation2.parser.notation.HELM2Notation queryNotation,
double desiredTanimoto) |
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
call() |
void |
doQuery(org.helm.notation2.parser.notation.HELM2Notation queryNotation,
double desiredTanimoto)
Method calls the corresponding methods to build moleculeGraphs, find paths,
generate fingerprints, calculate tanimoto values, check for subset, store the
values in a database and select the desired notations with a specified
minimum similarity or subset notations.
|
protected void |
updateProgress(double workDone,
double max) |
addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancel, cancelled, exceptionProperty, failed, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, succeeded, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateTitle, updateValue, valueProperty, workDonePropertydone, get, get, isCancelled, isDone, run, runAndReset, set, setExceptionprotected static List<org.helm.notation2.parser.notation.HELM2Notation> helmList
protected static MyProgressBar progressbar
public static final double MAX_PROGRESS
public SimilaritySearchTask(org.helm.notation2.parser.notation.HELM2Notation queryNotation,
double desiredTanimoto)
public void doQuery(org.helm.notation2.parser.notation.HELM2Notation queryNotation,
double desiredTanimoto)
queryNotation - the query notationdesiredTanimoto - the desired minimum tanimotoprotected void updateProgress(double workDone,
double max)
updateProgress in class javafx.concurrent.Task<Integer>Copyright © 2018. All rights reserved.