Package picard.analysis
Class QualityScoreDistribution
- java.lang.Object
-
- picard.cmdline.CommandLineProgram
-
- picard.analysis.SinglePassSamProgram
-
- picard.analysis.QualityScoreDistribution
-
@DocumentedFeature public class QualityScoreDistribution extends SinglePassSamProgram
Charts quality score distribution within a BAM file.
-
-
Field Summary
Fields Modifier and Type Field Description booleanALIGNED_READS_ONLYFileCHART_OUTPUTbooleanINCLUDE_NO_CALLSbooleanPF_READS_ONLY-
Fields inherited from class picard.analysis.SinglePassSamProgram
ASSUME_SORTED, INPUT, output, OUTPUT, STOP_AFTER
-
Fields inherited from class picard.cmdline.CommandLineProgram
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 Summary
Constructors Constructor Description QualityScoreDistribution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacceptRead(htsjdk.samtools.SAMRecord rec, htsjdk.samtools.reference.ReferenceSequence ref)Should be implemented by subclasses to accept SAMRecords one at a time.protected String[]customCommandLineValidation()Put any custom command-line validation in an override of this method.protected voidfinish()Should be implemented by subclasses to do one-time finalization work.protected voidsetup(htsjdk.samtools.SAMFileHeader header, File samFile)Should be implemented by subclasses to do one-time initialization work.-
Methods inherited from class picard.analysis.SinglePassSamProgram
doWork, getOutputArgumentCollection, makeItSo, setReferenceSequence, usesNoRefReads
-
Methods inherited from class picard.cmdline.CommandLineProgram
checkRInstallation, getCommandLine, getCommandLineParser, getCommandLineParserForArgs, getDefaultHeaders, getFaqLink, getMetricsFile, getPGRecord, getStandardUsagePreamble, getStandardUsagePreamble, getVersion, hasWebDocumentation, instanceMain, instanceMainWithExit, makeReferenceArgumentCollection, parseArgs, requiresReference, setDefaultHeaders, useLegacyParser
-
-
-
-
Field Detail
-
CHART_OUTPUT
@Argument(shortName="CHART", doc="A file (with .pdf extension) to write the chart to.") public File CHART_OUTPUT
-
ALIGNED_READS_ONLY
@Argument(doc="If set to true calculate mean quality over aligned reads only.") public boolean ALIGNED_READS_ONLY
-
PF_READS_ONLY
@Argument(shortName="PF", doc="If set to true calculate mean quality over PF reads only.") public boolean PF_READS_ONLY
-
INCLUDE_NO_CALLS
@Argument(doc="If set to true, include quality for no-call bases in the distribution.") public boolean INCLUDE_NO_CALLS
-
-
Method Detail
-
customCommandLineValidation
protected String[] customCommandLineValidation()
Description copied from class:CommandLineProgramPut any custom command-line validation in an override of this method. clp is initialized at this point and can be used to print usage and access argv. Any options set by command-line parser can be validated.- Overrides:
customCommandLineValidationin classCommandLineProgram- Returns:
- null if command line is valid. If command line is invalid, returns an array of error message to be written to the appropriate place.
-
setup
protected void setup(htsjdk.samtools.SAMFileHeader header, File samFile)Description copied from class:SinglePassSamProgramShould be implemented by subclasses to do one-time initialization work.- Specified by:
setupin classSinglePassSamProgram
-
acceptRead
protected void acceptRead(htsjdk.samtools.SAMRecord rec, htsjdk.samtools.reference.ReferenceSequence ref)Description copied from class:SinglePassSamProgramShould be implemented by subclasses to accept SAMRecords one at a time. If the read has a reference sequence and a reference sequence file was supplied to the program it will be passed as 'ref'. Otherwise 'ref' may be null.- Specified by:
acceptReadin classSinglePassSamProgram
-
finish
protected void finish()
Description copied from class:SinglePassSamProgramShould be implemented by subclasses to do one-time finalization work.- Specified by:
finishin classSinglePassSamProgram
-
-