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 IonAnnotationsConstructor 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()
MSDKMethod
getFinishedPercentage
in interface MSDKMethod<List<IonAnnotation>>
@Nullable public List<IonAnnotation> execute() throws MSDKException
MSDKMethod
execute
in interface MSDKMethod<List<IonAnnotation>>
MSDKException
- On any error@Nullable public List<IonAnnotation> getResult()
MSDKMethod
getResult
in interface MSDKMethod<List<IonAnnotation>>
public void cancel()
MSDKMethod
cancel
in interface MSDKMethod<List<IonAnnotation>>
Copyright © 2019. All rights reserved.