@DocumentedFeature public class CollectInsertSizeMetrics extends SinglePassSamProgram
Modifier and Type | Field and Description |
---|---|
double |
DEVIATIONS |
java.io.File |
Histogram_FILE |
protected static java.lang.String |
Histogram_R_SCRIPT |
java.lang.Integer |
HISTOGRAM_WIDTH |
boolean |
INCLUDE_DUPLICATES |
java.util.Set<MetricAccumulationLevel> |
METRIC_ACCUMULATION_LEVEL |
java.lang.Integer |
MIN_HISTOGRAM_WIDTH |
float |
MINIMUM_PCT |
ASSUME_SORTED, INPUT, OUTPUT, STOP_AFTER
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_ALLOWABLE_ONE_LINE_SUMMARY_LENGTH, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, referenceSequence, specialArgumentsCollection, TMP_DIR, USE_JDK_DEFLATER, USE_JDK_INFLATER, VALIDATION_STRINGENCY, VERBOSITY
Constructor and Description |
---|
CollectInsertSizeMetrics() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptRead(htsjdk.samtools.SAMRecord record,
htsjdk.samtools.reference.ReferenceSequence ref)
Should be implemented by subclasses to accept SAMRecords one at a time.
|
protected java.lang.String[] |
customCommandLineValidation()
Put any custom command-line validation in an override of this method.
|
protected void |
finish()
Should be implemented by subclasses to do one-time finalization work.
|
protected void |
setup(htsjdk.samtools.SAMFileHeader header,
java.io.File samFile)
Should be implemented by subclasses to do one-time initialization work.
|
protected boolean |
usesNoRefReads()
Can be overridden and set to false if the section of unmapped reads at the end of the file isn't needed.
|
doWork, makeItSo, setReferenceSequence
getCommandLine, getCommandLineParser, getCommandLineParser, getDefaultHeaders, getFaqLink, getMetricsFile, getStandardUsagePreamble, getStandardUsagePreamble, getVersion, hasWebDocumentation, instanceMain, instanceMainWithExit, makeReferenceArgumentCollection, parseArgs, requiresReference, setDefaultHeaders, useLegacyParser
protected static final java.lang.String Histogram_R_SCRIPT
@Argument(shortName="H", doc="File to write insert size Histogram chart to.") public java.io.File Histogram_FILE
@Argument(doc="Generate mean, sd and plots by trimming the data down to MEDIAN + DEVIATIONS*MEDIAN_ABSOLUTE_DEVIATION. This is done because insert size data typically includes enough anomalous values from chimeras and other artifacts to make the mean and sd grossly misleading regarding the real distribution.") public double DEVIATIONS
@Argument(shortName="W", doc="Explicitly sets the Histogram width, overriding automatic truncation of Histogram tail. Also, when calculating mean and standard deviation, only bins <= Histogram_WIDTH will be included.", optional=true) public java.lang.Integer HISTOGRAM_WIDTH
@Argument(shortName="MW", doc="Minimum width of histogram plots. In the case when the histogram would otherwise betruncated to a shorter range of sizes, the MIN_HISTOGRAM_WIDTH will enforce a minimum range.", optional=true) public java.lang.Integer MIN_HISTOGRAM_WIDTH
@Argument(shortName="M", doc="When generating the Histogram, discard any data categories (out of FR, TANDEM, RF) that have fewer than this percentage of overall reads. (Range: 0 to 1).") public float MINIMUM_PCT
@Argument(shortName="LEVEL", doc="The level(s) at which to accumulate metrics. ") public java.util.Set<MetricAccumulationLevel> METRIC_ACCUMULATION_LEVEL
@Argument(doc="If true, also include reads marked as duplicates in the insert size histogram.") public boolean INCLUDE_DUPLICATES
protected java.lang.String[] customCommandLineValidation()
customCommandLineValidation
in class CommandLineProgram
protected boolean usesNoRefReads()
SinglePassSamProgram
usesNoRefReads
in class SinglePassSamProgram
protected void setup(htsjdk.samtools.SAMFileHeader header, java.io.File samFile)
SinglePassSamProgram
setup
in class SinglePassSamProgram
protected void acceptRead(htsjdk.samtools.SAMRecord record, htsjdk.samtools.reference.ReferenceSequence ref)
SinglePassSamProgram
acceptRead
in class SinglePassSamProgram
protected void finish()
SinglePassSamProgram
finish
in class SinglePassSamProgram