public class ChromatogramBuilderMethod extends Object implements MSDKMethod<List<Chromatogram>>
ChromatogramBuilderMethod class.
Constructor and Description |
---|
ChromatogramBuilderMethod(RawDataFile inputFile,
double noiseLevel,
double minimumTimeSpan,
double minimumHeight,
MzTolerance mzTolerance)
Constructor for ChromatogramBuilderMethod.
|
ChromatogramBuilderMethod(RawDataFile inputFile,
List<MsScan> inputScans,
Double noiseLevel,
Double minimumTimeSpan,
Double minimumHeight,
MzTolerance mzTolerance)
Constructor for ChromatogramBuilderMethod.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a running algorithm.
|
List<Chromatogram> |
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<Chromatogram> |
getResult()
Returns the result of this algorithm, or null.
|
public ChromatogramBuilderMethod(RawDataFile inputFile, double noiseLevel, double minimumTimeSpan, double minimumHeight, MzTolerance mzTolerance)
Constructor for ChromatogramBuilderMethod. This version uses the same MzTolerance for every scan that does not provide its own MzTolerance.
inputFile
- a RawDataFile
object.minimumTimeSpan
- a Double
object.minimumHeight
- a Double
object.mzTolerance
- an object that implements the MZTolerance interface.noiseLevel
- a Float
object.public ChromatogramBuilderMethod(@Nonnull RawDataFile inputFile, @Nonnull List<MsScan> inputScans, @Nonnull Double noiseLevel, @Nonnull Double minimumTimeSpan, @Nonnull Double minimumHeight, @Nonnull MzTolerance mzTolerance)
Constructor for ChromatogramBuilderMethod. This version uses the same MzTolerance for every scan that does not provide its own MzTolerance.
inputFile
- a RawDataFile
object.inputScans
- a List
object.minimumTimeSpan
- a Double
object.minimumHeight
- a Double
object.mzTolerance
- an object that implements the MZTolerance interface.noiseLevel
- a Float
object.@Nullable public List<Chromatogram> execute() throws MSDKException
execute
in interface MSDKMethod<List<Chromatogram>>
MSDKException
- On any error@Nullable public Float getFinishedPercentage()
getFinishedPercentage
in interface MSDKMethod<List<Chromatogram>>
@Nullable public List<Chromatogram> getResult()
getResult
in interface MSDKMethod<List<Chromatogram>>
public void cancel()
cancel
in interface MSDKMethod<List<Chromatogram>>
Copyright © 2019. All rights reserved.