public class CoverageAnalysis extends Object
| Constructor and Description |
|---|
CoverageAnalysis() |
| Modifier and Type | Method and Description |
|---|---|
int |
depthAtPercentile(double percentile)
Return the depth observed for p percentile sites when sites are ordered by depth.
|
int |
depthCapturedAtPercentile(double percentile)
Return the depth observed for p percentile captured sites when sites are ordered by depth.
|
void |
estimateStatistics() |
double |
getAnnotationAverageDepth()
Returns the average depth estimated exclusively over annotations.
|
double |
getAverageDepth()
Returns the average depth, over annotations or non annotation sites.
|
long |
getCountAllBases() |
long |
getCountDepth() |
long |
getCountDepthAnnot() |
long[] |
getCumulativeBasesCaptured() |
long[] |
getCumulativeSitesCaptured() |
long[] |
getCumulativeSitesNotCaptured() |
long[] |
getCumulativeSitesTotal() |
it.unimi.dsi.fastutil.longs.LongArrayList |
getDepthTallyBasesInAnnotation() |
it.unimi.dsi.fastutil.longs.LongArrayList |
getDepthTallyBasesOutsideAnnotation() |
it.unimi.dsi.fastutil.longs.LongArrayList |
getDepthTallySitesInAnnotation() |
double |
getEnrichmentEfficiency()
Return enrichment efficiency (ee).
|
double |
getNotAnnotationAverageDepth()
Returns the average depth estimated exclusively over nases outside of annotations.
|
long |
getNumBasesWithDepthAtLeast(int d)
Return the total number of bases observed at sites with depth equal or larger to d
|
int |
getNumberOfDepths()
The number of distinct base depths observed.
|
double |
getNumSitesCapturedWithDepthAtLeast(int d)
Return the total number of captured sites with depth equal or larger to d
|
double |
getNumSitesNotCapturedWithDepthAtLeast(int d)
Return the total number of non captured sites with depth equal or larger to d
|
double |
getNumSitesWithDepthAtLeast(int d)
Return the total number of sites with depth equal or larger to d
|
long |
getSumDepth() |
long |
getSumDepthAnnot() |
double |
percentSitesCaptured(int d)
Returns the percentage of captured sites whose depth d is larger or equal to d
|
void |
process(CountsReaderI annotationReader,
CountsReaderI reader) |
public CoverageAnalysis()
throws IOException
IOExceptionpublic it.unimi.dsi.fastutil.longs.LongArrayList getDepthTallyBasesInAnnotation()
public it.unimi.dsi.fastutil.longs.LongArrayList getDepthTallyBasesOutsideAnnotation()
public long getSumDepthAnnot()
public long getCountDepthAnnot()
public long getCountAllBases()
public void process(CountsReaderI annotationReader, CountsReaderI reader) throws IOException
IOExceptionpublic void estimateStatistics()
public double getEnrichmentEfficiency()
public long getSumDepth()
public long getCountDepth()
public int getNumberOfDepths()
public double getAverageDepth()
public double getAnnotationAverageDepth()
public double getNotAnnotationAverageDepth()
public long getNumBasesWithDepthAtLeast(int d)
d - depth thresholdpublic double getNumSitesWithDepthAtLeast(int d)
d - depth thresholdpublic double getNumSitesCapturedWithDepthAtLeast(int d)
d - depth thresholdpublic double getNumSitesNotCapturedWithDepthAtLeast(int d)
d - depth thresholdpublic int depthAtPercentile(double percentile)
percentile - public int depthCapturedAtPercentile(double percentile)
percentile - a number between 0 and 1.public it.unimi.dsi.fastutil.longs.LongArrayList getDepthTallySitesInAnnotation()
public long[] getCumulativeBasesCaptured()
public long[] getCumulativeSitesCaptured()
public long[] getCumulativeSitesTotal()
public long[] getCumulativeSitesNotCaptured()
public double percentSitesCaptured(int d)
d - Copyright © 2018 Campagne Laboratory. All rights reserved.