public class SiriusIdentificationMethod extends Object implements MSDKMethod<List<IonAnnotation>>
SiriusIdentificationMethod class.
This class wraps the Sirius module and transforms its results into MSDK data structures Transformation of IdentificationResult (Sirius) into IonAnnatation (MSDK)Constructor and Description |
---|
SiriusIdentificationMethod(List<MsSpectrum> ms1,
List<MsSpectrum> ms2,
Double parentMass,
IonType ion,
Integer numberOfCandidates,
de.unijena.bioinf.ChemistryBase.chem.FormulaConstraints constraints,
Double deviation)
Constructor for SiriusIdentificationMethod class.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a running algorithm.
|
List<IonAnnotation> |
execute()
Performs the algorithm.
|
de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment |
getExperiment() |
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.
|
IonType |
getIonization() |
List<MsSpectrum> |
getMs2Spectra() |
List<MsSpectrum> |
getMsSpectra() |
int |
getNumberOfCandidates() |
double |
getParentMass() |
List<IonAnnotation> |
getResult()
Returns the result of this algorithm, or null.
|
protected List<de.unijena.bioinf.sirius.IdentificationResult> |
siriusProcessSpectra()
Method for processing spectra by Sirius module
|
public SiriusIdentificationMethod(@Nullable List<MsSpectrum> ms1, @Nullable List<MsSpectrum> ms2, @Nonnull Double parentMass, @Nonnull IonType ion, @Nullable Integer numberOfCandidates, @Nullable de.unijena.bioinf.ChemistryBase.chem.FormulaConstraints constraints, @Nullable Double deviation)
Constructor for SiriusIdentificationMethod class.
ms1
- - can be null! MsSpectrum level 1ms2
- - MsSpectrum level 2parentMass
- - Most intensive usually or specifiedion
- - IonizationnumberOfCandidates
- - amount of IdentificationResults to be returned from Siriusconstraints
- - FormulaConstraints provided by the end user. Can be created using ConstraintsGeneratordeviation
- - float value of possible mass deviation in ppmpublic double getParentMass()
public IonType getIonization()
public List<MsSpectrum> getMsSpectra()
public List<MsSpectrum> getMs2Spectra()
public int getNumberOfCandidates()
protected List<de.unijena.bioinf.sirius.IdentificationResult> siriusProcessSpectra() throws MSDKException
Method for processing spectra by Sirius module
Transformation of MSDK data structures into Sirius structures and processing by Sirius Method is left to be protected for test coverageMSDKException
@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>>
public de.unijena.bioinf.ChemistryBase.ms.Ms2Experiment getExperiment()
Copyright © 2019. All rights reserved.