public final class MinimumCoverageStrategy extends Object
Constructor and Description |
---|
MinimumCoverageStrategy(int minimumCoverage)
Create a new minimum coverage strategy with the specified minimum coverage.
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.biojava.bio.seq.Sequence reference,
int start,
int end)
Add coverage for the specified reference sequence for the region defined by
[start, end] inclusive. |
boolean |
evaluate(org.biojava.bio.seq.Sequence reference)
Return true if the specified reference sequence has enough coverage.
|
protected boolean |
evaluate(org.biojava.bio.seq.Sequence reference,
org.biojava.bio.symbol.SymbolList coverage)
Return true if the specified reference sequence has enough coverage given
the specified coverage scores.
|
public MinimumCoverageStrategy(int minimumCoverage)
minimumCoverage
- minimum coverage, must be at least 0protected boolean evaluate(org.biojava.bio.seq.Sequence reference, org.biojava.bio.symbol.SymbolList coverage)
reference
- reference sequence to evaluatecoverage
- coverage scorespublic final boolean evaluate(org.biojava.bio.seq.Sequence reference)
CoverageStrategy
evaluate
in interface CoverageStrategy
reference
- reference sequence to evaluatepublic final void add(org.biojava.bio.seq.Sequence reference, int start, int end)
CoverageStrategy
[start, end]
inclusive.add
in interface CoverageStrategy
reference
- reference sequencestart
- region start, 1-based coordinateend
- region end, 1-based coordinateCopyright © 2014–2015. All rights reserved.