public class ADAP3DFeatureDetectionMethod extends Object implements MSDKMethod<List<Feature>>
This class is used to run the whole ADAP3D algorithm and get peaks.
Constructor and Description |
---|
ADAP3DFeatureDetectionMethod(RawDataFile rawFile)
Constructor
|
ADAP3DFeatureDetectionMethod(RawDataFile rawFile,
ADAP3DFeatureDetectionParameters params)
Constructor
|
ADAP3DFeatureDetectionMethod(RawDataFile rawFile,
Predicate<MsScan> msScanPredicate)
Constructor
|
ADAP3DFeatureDetectionMethod(RawDataFile rawFile,
Predicate<MsScan> msScanPredicate,
ADAP3DFeatureDetectionParameters parameters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a running algorithm.
|
List<Feature> |
execute()
This method performs 3 steps:
Step 1. |
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<Feature> |
getResult()
Returns the result of this algorithm, or null.
|
public ADAP3DFeatureDetectionMethod(@Nonnull RawDataFile rawFile)
Constructor
rawFile
- RawDataFile
object.public ADAP3DFeatureDetectionMethod(@Nonnull RawDataFile rawFile, @Nullable Predicate<MsScan> msScanPredicate)
Constructor
rawFile
- RawDataFile
object.msScanPredicate
- a Predicate
object. Only MsScan which pass
this predicate will be processed.public ADAP3DFeatureDetectionMethod(@Nonnull RawDataFile rawFile, @Nonnull ADAP3DFeatureDetectionParameters params)
Constructor
rawFile
- RawDataFile
object.public ADAP3DFeatureDetectionMethod(@Nonnull RawDataFile rawFile, @Nullable Predicate<MsScan> msScanPredicate, @Nonnull ADAP3DFeatureDetectionParameters parameters)
Constructor
rawFile
- RawDataFile
object.msScanPredicate
- a Predicate
object. Only MsScan which pass
this predicate will be processed.public List<Feature> execute()
This method performs 3 steps:
Step 1. Run ADAP3DPeakDetectionAlgorithm.execute with the default parameters and detect 20
highest peaks.
Step 2. Estimate new parameters for ADAP3DPeakDetectionAlgorithm from those 20 peaks.
Step 3. Run ADAP3DPeakDetectionAlgorithm.execute with the new parameters and detect all other
peaks.
execute
in interface MSDKMethod<List<Feature>>
Feature
public Float getFinishedPercentage()
getFinishedPercentage
in interface MSDKMethod<List<Feature>>
public List<Feature> getResult()
getResult
in interface MSDKMethod<List<Feature>>
public void cancel()
cancel
in interface MSDKMethod<List<Feature>>
Copyright © 2019. All rights reserved.