@DocumentedFeature public class CollectSequencingArtifactMetrics extends SinglePassSamProgram
Modifier and Type | Field and Description |
---|---|
int |
CONTEXT_SIZE |
java.util.Set<java.lang.String> |
CONTEXTS_TO_PRINT |
java.io.File |
DB_SNP |
java.lang.String |
FILE_EXTENSION |
boolean |
INCLUDE_DUPLICATES |
boolean |
INCLUDE_NON_PF_READS |
boolean |
INCLUDE_UNPAIRED |
java.io.File |
INTERVALS |
int |
MAXIMUM_INSERT_SIZE |
int |
MINIMUM_INSERT_SIZE |
int |
MINIMUM_MAPPING_QUALITY |
int |
MINIMUM_QUALITY_SCORE |
boolean |
TANDEM_READS |
boolean |
USE_OQ |
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 |
---|
CollectSequencingArtifactMetrics() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptRead(htsjdk.samtools.SAMRecord rec,
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 boolean |
requiresReference() |
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, setDefaultHeaders, useLegacyParser
@Argument(doc="An optional list of intervals to restrict analysis to.", optional=true) public java.io.File INTERVALS
@Argument(doc="VCF format dbSNP file, used to exclude regions around known polymorphisms from analysis.", optional=true) public java.io.File DB_SNP
@Argument(shortName="Q", doc="The minimum base quality score for a base to be included in analysis.") public int MINIMUM_QUALITY_SCORE
@Argument(shortName="MQ", doc="The minimum mapping quality score for a base to be included in analysis.") public int MINIMUM_MAPPING_QUALITY
@Argument(shortName="MIN_INS", doc="The minimum insert size for a read to be included in analysis.") public int MINIMUM_INSERT_SIZE
@Argument(shortName="MAX_INS", doc="The maximum insert size for a read to be included in analysis. Set to 0 to have no maximum.") public int MAXIMUM_INSERT_SIZE
@Argument(shortName="UNPAIRED", doc="Include unpaired reads. If set to true then all paired reads will be included as well - MINIMUM_INSERT_SIZE and MAXIMUM_INSERT_SIZE will be ignored.") public boolean INCLUDE_UNPAIRED
@Argument(shortName="DUPES", doc="Include duplicate reads. If set to true then all reads flagged as duplicates will be included as well.") public boolean INCLUDE_DUPLICATES
@Argument(shortName="NON_PF", doc="Whether or not to include non-PF reads.") public boolean INCLUDE_NON_PF_READS
@Argument(shortName="TANDEM", doc="Set to true if mate pairs are being sequenced from the same strand, i.e. they\'re expected to face the same direction.") public boolean TANDEM_READS
@Argument(doc="When available, use original quality scores for filtering.") public boolean USE_OQ
@Argument(doc="The number of context bases to include on each side of the assayed base.") public int CONTEXT_SIZE
@Argument(doc="If specified, only print results for these contexts in the detail metrics output. However, the summary metrics output will still take all contexts into consideration.", optional=true) public java.util.Set<java.lang.String> CONTEXTS_TO_PRINT
@Argument(shortName="EXT", doc="Append the given file extension to all metric file names (ex. OUTPUT.pre_adapter_summary_metrics.EXT). None if null", optional=true) public java.lang.String FILE_EXTENSION
protected boolean requiresReference()
requiresReference
in class CommandLineProgram
protected java.lang.String[] customCommandLineValidation()
CommandLineProgram
customCommandLineValidation
in class CommandLineProgram
protected void setup(htsjdk.samtools.SAMFileHeader header, java.io.File samFile)
SinglePassSamProgram
setup
in class SinglePassSamProgram
protected void acceptRead(htsjdk.samtools.SAMRecord rec, htsjdk.samtools.reference.ReferenceSequence ref)
SinglePassSamProgram
acceptRead
in class SinglePassSamProgram
protected void finish()
SinglePassSamProgram
finish
in class SinglePassSamProgram
protected boolean usesNoRefReads()
SinglePassSamProgram
usesNoRefReads
in class SinglePassSamProgram