Class DepthOfCoverageStats
java.lang.Object
org.broadinstitute.hellbender.tools.walkers.coverage.DepthOfCoverageStats
A class for storing summarized coverage statistics for DepthOfCoverage.
-
Constructor Summary
ConstructorsConstructorDescriptionDepthOfCoverageStats
(int[] leftEndpoints, boolean includeDeletions, boolean dontComputeLocusTable) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getCoverageProportions
(String sample) Return a list of the cumulative depth counts as a perportion of total number of lociint[]
long[][]
getMeans()
long
Returns a count of the number of loci summarized in this objectlong
long
double
void
merge
(DepthOfCoverageStats newStats) void
int
value2bin
(int value)
-
Constructor Details
-
DepthOfCoverageStats
public DepthOfCoverageStats(int[] leftEndpoints, boolean includeDeletions, boolean dontComputeLocusTable) - Parameters:
leftEndpoints
- Array of the left endpoints for desired coverage bins to track. SeeincludeDeletions
- whether to count deletions at a site as coverage in the totaldontComputeLocusTable
- if true then skip calculations for per-locus output tables
-
-
Method Details
-
update
-
merge
-
getHistograms
-
getLocusCounts
public long[][] getLocusCounts() -
getEndpoints
public int[] getEndpoints() -
getMeans
-
getTotals
-
getTotalLoci
public long getTotalLoci() -
getAllSamples
- Returns:
- An unordered set of all the samples covered by this stats object
-
getTotalMeanCoverage
public double getTotalMeanCoverage() -
getTotalCoverage
public long getTotalCoverage() -
getCoverageProportions
Return a list of the cumulative depth counts as a perportion of total number of loci- Parameters:
sample
-- Returns:
-
value2bin
public int value2bin(int value) -
getNumberOfLociCovered
public long getNumberOfLociCovered()Returns a count of the number of loci summarized in this object
-