Package picard.analysis
Class CollectWgsMetricsWithNonZeroCoverage
java.lang.Object
picard.cmdline.CommandLineProgram
picard.analysis.CollectWgsMetrics
picard.analysis.CollectWgsMetricsWithNonZeroCoverage
@DocumentedFeature
@ExperimentalFeature
public class CollectWgsMetricsWithNonZeroCoverage
extends CollectWgsMetrics
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMetrics for evaluating the performance of whole genome sequencing experiments.protected classNested classes/interfaces inherited from class picard.analysis.CollectWgsMetrics
CollectWgsMetrics.CollectWgsMetricsIntervalArgumentCollection, CollectWgsMetrics.WgsMetricsCollector -
Field Summary
FieldsFields inherited from class picard.analysis.CollectWgsMetrics
ALLELE_FRACTION, COUNT_UNPAIRED, COVERAGE_CAP, INCLUDE_BQ_HISTOGRAM, INPUT, intervalArgumentCollection, INTERVALS, LOCUS_ACCUMULATION_CAP, MINIMUM_BASE_QUALITY, MINIMUM_MAPPING_QUALITY, OUTPUT, READ_LENGTH, SAMPLE_SIZE, STOP_AFTER, THEORETICAL_SENSITIVITY_OUTPUT, USE_FAST_ALGORITHMFields inherited from class picard.cmdline.CommandLineProgram
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, MAX_ALLOWABLE_ONE_LINE_SUMMARY_LENGTH, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, referenceSequence, specialArgumentsCollection, SYNTAX_TRANSITION_URL, TMP_DIR, USE_JDK_DEFLATER, USE_JDK_INFLATER, VALIDATION_STRINGENCY, VERBOSITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Put any custom command-line validation in an override of this method.protected intdoWork()Do the work after command line has been parsed.protected WgsMetricsgenerateWgsMetrics(htsjdk.samtools.util.IntervalList intervals, htsjdk.samtools.util.Histogram<Integer> highQualityDepthHistogram, htsjdk.samtools.util.Histogram<Integer> unfilteredDepthHistogram, double pctExcludedByAdapter, double pctExcludedByMapq, double pctExcludedByDupes, double pctExcludedByPairing, double pctExcludedByBaseq, double pctExcludedByOverlap, double pctExcludedByCapping, double pctTotal, int coverageCap, htsjdk.samtools.util.Histogram<Integer> unfilteredBaseQHistogram, int sampleSize) protected CollectWgsMetrics.WgsMetricsCollectorgetCollector(int coverageCap, htsjdk.samtools.util.IntervalList intervals) CreatesAbstractWgsMetricsCollectorimplementation according toCollectWgsMetrics.USE_FAST_ALGORITHMvalue.protected htsjdk.samtools.SamReaderGets the SamReader from which records will be examined.Methods inherited from class picard.analysis.CollectWgsMetrics
getBasesExcludedBy, getIntervalsToExamine, getLocusIterator, getSamFileHeader, makeIntervalArgumentCollection, requiresReferenceMethods inherited from class picard.cmdline.CommandLineProgram
checkRInstallation, getCommandLine, getCommandLineParser, getCommandLineParserForArgs, getDefaultHeaders, getFaqLink, getMetricsFile, getPGRecord, getStandardUsagePreamble, getStandardUsagePreamble, getVersion, hasWebDocumentation, instanceMain, instanceMainWithExit, makeReferenceArgumentCollection, parseArgs, setDefaultHeaders, useLegacyParser
-
Field Details
-
CHART_OUTPUT
@Argument(shortName="CHART", doc="A file (with .pdf extension) to write the chart to.") public File CHART_OUTPUT
-
-
Constructor Details
-
CollectWgsMetricsWithNonZeroCoverage
public CollectWgsMetricsWithNonZeroCoverage()
-
-
Method Details
-
customCommandLineValidation
Description copied from class:CommandLineProgramPut any custom command-line validation in an override of this method. clp is initialized at this point and can be used to print usage and access argv. Any options set by command-line parser can be validated.- Overrides:
customCommandLineValidationin classCommandLineProgram- Returns:
- null if command line is valid. If command line is invalid, returns an array of error message to be written to the appropriate place.
-
getSamReader
protected htsjdk.samtools.SamReader getSamReader()Description copied from class:CollectWgsMetricsGets the SamReader from which records will be examined. This will also set the header so that it is available in- Overrides:
getSamReaderin classCollectWgsMetrics
-
doWork
protected int doWork()Description copied from class:CommandLineProgramDo the work after command line has been parsed. RuntimeException may be thrown by this method, and are reported appropriately.- Overrides:
doWorkin classCollectWgsMetrics- Returns:
- program exit status.
-
generateWgsMetrics
protected WgsMetrics generateWgsMetrics(htsjdk.samtools.util.IntervalList intervals, htsjdk.samtools.util.Histogram<Integer> highQualityDepthHistogram, htsjdk.samtools.util.Histogram<Integer> unfilteredDepthHistogram, double pctExcludedByAdapter, double pctExcludedByMapq, double pctExcludedByDupes, double pctExcludedByPairing, double pctExcludedByBaseq, double pctExcludedByOverlap, double pctExcludedByCapping, double pctTotal, int coverageCap, htsjdk.samtools.util.Histogram<Integer> unfilteredBaseQHistogram, int sampleSize) - Overrides:
generateWgsMetricsin classCollectWgsMetrics
-
getCollector
protected CollectWgsMetrics.WgsMetricsCollector getCollector(int coverageCap, htsjdk.samtools.util.IntervalList intervals) Description copied from class:CollectWgsMetricsCreatesAbstractWgsMetricsCollectorimplementation according toCollectWgsMetrics.USE_FAST_ALGORITHMvalue.- Overrides:
getCollectorin classCollectWgsMetrics- Parameters:
coverageCap- the maximum depth/coverage to consider.intervals- the intervals over which metrics are collected.- Returns:
- if
CollectWgsMetrics.USE_FAST_ALGORITHMis enabled, returnsFastWgsMetricsCollectorimplementation, otherwise default algorithm is used andCollectWgsMetrics.WgsMetricsCollectoris returned.
-