@groovy.transform.CompileStatic @groovy.util.logging.Log class CoverageDownsampler extends RegulatingActor<SampleReadCount>
Accepts SampleReadCount objects as messages and calculates a moving window of their values, emitting the window mean instead of the original values.
In addition to calculating the moving window, this class can also subsample the results so that only every 1 out of N values is emitted. The size of the moving window and the subsampling factor can be controlled independently.
Type | Name and description |
---|---|
int |
downsampleBy |
graxxia.RollingStats |
stats |
int |
subsampleBy |
Constructor and description |
---|
CoverageDownsampler
(RegulatingActor<SampleReadCount> downstream, int windowSize, int subsampleBy) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
process(SampleReadCount counts) |
Groovy Documentation