public static class TargetMetricsCollector.Coverage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
readCount |
Constructor and Description |
---|
Coverage(htsjdk.samtools.util.Interval i,
int padding)
Constructs a new coverage object for the provided mapping with the desired padding either side.
|
Modifier and Type | Method and Description |
---|---|
void |
addBase(int offset)
Adds a single point of depth at the desired offset into the coverage array.
|
int[] |
getDepths()
Gets the coverage depths as an array of ints.
|
int |
getTotal() |
boolean |
hasCoverage()
Returns true if any base in the range has coverage of > 0
|
void |
incrementReadCount()
Increments the # of reads mapping to this target.
|
java.lang.String |
toString() |
public Coverage(htsjdk.samtools.util.Interval i, int padding)
public void addBase(int offset)
public void incrementReadCount()
public boolean hasCoverage()
public int[] getDepths()
public int getTotal()
public java.lang.String toString()
toString
in class java.lang.Object