public class PeakAggregator extends Object implements Iterator<Peak>, Iterable<Peak>
| Constructor and Description |
|---|
PeakAggregator(CountsReaderI reader)
Will detect peaks in the counts information provided by reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if another peak is detected above the detection threshold.
|
Iterator<Peak> |
iterator() |
Peak |
next()
Return the next detected peak.
|
void |
remove()
Not supported.
|
void |
setPeakDetectionThreshold(int peakDetectionThreshold)
Set the threshold for peak detection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic PeakAggregator(CountsReaderI reader)
reader - The counts reader to exttract peaks frompublic boolean hasNext()
public Peak next()
public void setPeakDetectionThreshold(int peakDetectionThreshold)
peakDetectionThreshold - The value of count that triggers the detection of a peak.Copyright © 2018 Campagne Laboratory. All rights reserved.