public class CollectInsertSizeMetrics extends SinglePassSamProgram
| Modifier and Type | Field and Description |
|---|---|
double |
DEVIATIONS |
java.io.File |
Histogram_FILE |
java.lang.Integer |
Histogram_WIDTH |
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, setDefaultHeaders@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
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