CollectAlignmentSummaryMetrics, CollectBaseDistributionByCycle, CollectGcBiasMetrics, CollectInsertSizeMetrics, CollectQualityYieldMetrics, CollectRnaSeqMetrics, CollectSequencingArtifactMetrics, MeanQualityByCycle, QualityScoreDistributionpublic abstract class SinglePassSamProgram extends CommandLineProgram
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
ASSUME_SORTED |
|
File |
INPUT |
|
File |
OUTPUT |
|
long |
STOP_AFTER |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, TMP_DIR, VALIDATION_STRINGENCY, VERBOSITY| Constructor | Description |
|---|---|
SinglePassSamProgram() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
acceptRead(htsjdk.samtools.SAMRecord rec,
htsjdk.samtools.reference.ReferenceSequence ref) |
Should be implemented by subclasses to accept SAMRecords one at a time.
|
protected int |
doWork() |
Final implementation of doWork() that checks and loads the input and optionally reference
sequence files and the runs the sublcass through the setup() acceptRead() and finish() steps.
|
protected abstract void |
finish() |
Should be implemented by subclasses to do one-time finalization work.
|
static void |
makeItSo(File input,
File referenceSequence,
boolean assumeSorted,
long stopAfter,
Collection<SinglePassSamProgram> programs) |
|
protected abstract void |
setup(htsjdk.samtools.SAMFileHeader header,
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.
|
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders@Option(doc="If true (default), then the sort order in the header file will be ignored.", shortName="AS") public boolean ASSUME_SORTED
protected final int doWork()
doWork in class CommandLineProgrampublic static void makeItSo(File input, File referenceSequence, boolean assumeSorted, long stopAfter, Collection<SinglePassSamProgram> programs)
protected boolean usesNoRefReads()
protected abstract void setup(htsjdk.samtools.SAMFileHeader header,
File samFile)
protected abstract void acceptRead(htsjdk.samtools.SAMRecord rec,
htsjdk.samtools.reference.ReferenceSequence ref)
protected abstract void finish()