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 |
float |
MINIMUM_PCT |
ASSUME_SORTED, INPUT, OUTPUT, STOP_AFTERCOMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, TMP_DIR, 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.
|
static void |
main(java.lang.String[] argv)
Required main method implementation.
|
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 overriden and set to false if the section of unmapped reads at the end of the file isn't needed.
|
doWork, makeItSogetCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeadersprotected static final java.lang.String Histogram_R_SCRIPT
@Option(shortName="H", doc="File to write insert size Histogram chart to.") public java.io.File Histogram_FILE
@Option(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
@Option(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
@Option(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
@Option(shortName="LEVEL", doc="The level(s) at which to accumulate metrics. ") public java.util.Set<MetricAccumulationLevel> METRIC_ACCUMULATION_LEVEL
public static void main(java.lang.String[] argv)
protected java.lang.String[] customCommandLineValidation()
customCommandLineValidation in class CommandLineProgramprotected boolean usesNoRefReads()
SinglePassSamProgramusesNoRefReads in class SinglePassSamProgramprotected void setup(htsjdk.samtools.SAMFileHeader header,
java.io.File samFile)
SinglePassSamProgramsetup in class SinglePassSamProgramprotected void acceptRead(htsjdk.samtools.SAMRecord record,
htsjdk.samtools.reference.ReferenceSequence ref)
SinglePassSamProgramacceptRead in class SinglePassSamProgramprotected void finish()
SinglePassSamProgramfinish in class SinglePassSamProgram