public class FingerIdWebMethod extends Object implements MSDKMethod<List<IonAnnotation>>
Class FingerIdWebMethod
This class wraps the FingerId API provided by boecker-labs Uses the results of SiriusIdentificationMethod and returns exteneded IonAnnotations| Constructor and Description |
|---|
FingerIdWebMethod(de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment experiment,
SiriusIonAnnotation ionAnnotation)
Simplified FingerIdWebMethod constructor
|
FingerIdWebMethod(de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment experiment,
SiriusIonAnnotation ionAnnotation,
Integer candidatesAmount)
Constructor for a FingerIdWebMethod
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel a running algorithm.
|
List<IonAnnotation> |
execute()
Performs the algorithm.
|
Float |
getFinishedPercentage()
Returns a number in the interval 0 to 1.0, representing the portion of the task that has
completed, or null if the algorithm has not yet started.
|
List<IonAnnotation> |
getResult()
Returns the result of this algorithm, or null.
|
public FingerIdWebMethod(@Nonnull de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment experiment, @Nonnull SiriusIonAnnotation ionAnnotation, @Nonnull Integer candidatesAmount) throws MSDKException
Constructor for a FingerIdWebMethod
experiment - - Ms2Experiment that was used to get ionAnnotationionAnnotation - - SiriusIonAnnotation returned from SiriusIdentificationMethod with FTree
field specifiedcandidatesAmount - - amount of candidates to be returned from this methodMSDKException - if anypublic FingerIdWebMethod(@Nonnull de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment experiment, @Nonnull SiriusIonAnnotation ionAnnotation) throws MSDKException
Simplified FingerIdWebMethod constructor
In this case, FingerId will return unspecified amount of compounds (500-7000)experiment - - Ms2Experiment objectionAnnotation - - SiriusIonAnnotation with FTree specifiedMSDKException - if any@Nullable public Float getFinishedPercentage()
MSDKMethodgetFinishedPercentage in interface MSDKMethod<List<IonAnnotation>>@Nullable public List<IonAnnotation> execute() throws MSDKException
MSDKMethodexecute in interface MSDKMethod<List<IonAnnotation>>MSDKException - On any error@Nullable public List<IonAnnotation> getResult()
MSDKMethodgetResult in interface MSDKMethod<List<IonAnnotation>>public void cancel()
MSDKMethodcancel in interface MSDKMethod<List<IonAnnotation>>Copyright © 2019. All rights reserved.