AbstractOpticalDuplicateFinderCommandLineProgram, AccumulateVariantCallingMetrics, AddCommentsToBam, AddOrReplaceReadGroups, BaitDesigner, BamIndexStats, BamToBfq, BedToIntervalList, BuildBamIndex, CalculateReadGroupChecksum, CheckFingerprint, CheckIlluminaDirectory, CheckTerminatorBlock, CleanSam, ClusterCrosscheckMetrics, CollectHiSeqXPfFailMetrics, CollectIlluminaBasecallingMetrics, CollectIlluminaLaneMetrics, CollectIndependentReplicateMetrics, CollectJumpingLibraryMetrics, CollectMultipleMetrics, CollectOxoGMetrics, CollectRrbsMetrics, CollectTargetedMetrics, CollectVariantCallingMetrics, CollectWgsMetrics, CompareMetrics, CompareSAMs, ConvertSequencingArtifactToOxoG, CreateSequenceDictionary, CrosscheckFingerprints, DownsampleSam, ExtractIlluminaBarcodes, ExtractSequences, FastqToSam, FifoBuffer, FilterSamReads, FilterVcf, FindMendelianViolations, FixMateInformation, FixVcfHeader, GatherBamFiles, GatherVcfs, GenotypeConcordance, IdentifyContaminant, IlluminaBasecallsToFastq, IlluminaBasecallsToSam, IntervalListToBed, IntervalListTools, LiftOverIntervalList, LiftoverVcf, MakeSitesOnlyVcf, MarkIlluminaAdapters, MergeBamAlignment, MergeSamFiles, MergeVcfs, NonNFastaSize, NormalizeFasta, PositionBasedDownsampleSam, RenameSampleInVcf, ReorderSam, ReplaceSamHeader, RevertOriginalBaseQualitiesAndAddMateCigar, RevertSam, SamFormatConverter, SamToFastq, ScatterIntervalsByNs, SetNmMdAndUqTags, SinglePassSamProgram, SortSam, SortVcf, SplitSamByLibrary, SplitSamByNumberOfReads, SplitVcfs, UpdateVcfSequenceDictionary, ValidateSamFile, VcfFormatConverter, VcfToIntervalList, ViewSampublic abstract class CommandLineProgram extends Object
| Modifier and Type | Field | Description |
|---|---|---|
int |
COMPRESSION_LEVEL |
|
Boolean |
CREATE_INDEX |
|
boolean |
CREATE_MD5_FILE |
|
String |
GA4GH_CLIENT_SECRETS |
|
Integer |
MAX_RECORDS_IN_RAM |
|
Boolean |
QUIET |
|
protected File |
REFERENCE_SEQUENCE |
|
ReferenceArgumentCollection |
referenceSequence |
|
Object |
specialArgumentsCollection |
|
List<File> |
TMP_DIR |
|
Boolean |
USE_JDK_DEFLATER |
|
Boolean |
USE_JDK_INFLATER |
|
htsjdk.samtools.ValidationStringency |
VALIDATION_STRINGENCY |
|
htsjdk.samtools.util.Log.LogLevel |
VERBOSITY |
| Constructor | Description |
|---|---|
CommandLineProgram() |
| Modifier and Type | Method | Description |
|---|---|---|
protected String[] |
customCommandLineValidation() |
Put any custom command-line validation in an override of this method.
|
protected abstract int |
doWork() |
Do the work after command line has been parsed.
|
String |
getCommandLine() |
|
org.broadinstitute.barclay.argparser.CommandLineParser |
getCommandLineParser() |
|
List<htsjdk.samtools.metrics.Header> |
getDefaultHeaders() |
|
static String |
getFaqLink() |
|
protected <A extends htsjdk.samtools.metrics.MetricBase,B extends Comparable<?>> |
getMetricsFile() |
Gets a MetricsFile with default headers already written into it.
|
String |
getStandardUsagePreamble() |
|
static String |
getStandardUsagePreamble(Class<?> mainClass) |
A typical command line program will call this to get the beginning of the usage message,
and then typically append a description of the program, like this:
public String USAGE = getStandardUsagePreamble(getClass()) + "Frobnicate the freebozle."
|
String |
getVersion() |
|
static boolean |
hasWebDocumentation(Class<?> clazz) |
Determine if a class has web documentation based on its package name
|
int |
instanceMain(String[] argv) |
|
void |
instanceMainWithExit(String[] argv) |
|
protected ReferenceArgumentCollection |
makeReferenceArgumentCollection() |
|
protected boolean |
parseArgs(String[] argv) |
|
protected boolean |
requiresReference() |
|
void |
setDefaultHeaders(List<htsjdk.samtools.metrics.Header> headers) |
|
static boolean |
useLegacyParser(Class<?> clazz) |
Return true if the Picard command line parser should be used in place of the Barclay command line parser,
otherwise, false.
|
@Argument(doc="One or more directories with space available to be used by this program for temporary storage of working files",
common=true,
optional=true)
public List<File> TMP_DIR
@Argument(doc="Control verbosity of logging.",
common=true)
public htsjdk.samtools.util.Log.LogLevel VERBOSITY
@Argument(doc="Whether to suppress job-summary info on System.err.",
common=true)
public Boolean QUIET
@Argument(doc="Validation stringency for all SAM files read by this program. Setting stringency to SILENT can improve performance when processing a BAM file in which variable-length data (read, qualities, tags) do not otherwise need to be decoded.",
common=true)
public htsjdk.samtools.ValidationStringency VALIDATION_STRINGENCY
@Argument(doc="Compression level for all compressed files created (e.g. BAM and VCF).",
common=true)
public int COMPRESSION_LEVEL
@Argument(doc="When writing files that need to be sorted, this will specify the number of records stored in RAM before spilling to disk. Increasing this number reduces the number of file handles needed to sort the file, and increases the amount of RAM needed.",
optional=true,
common=true)
public Integer MAX_RECORDS_IN_RAM
@Argument(doc="Whether to create a BAM index when writing a coordinate-sorted BAM file.",
common=true)
public Boolean CREATE_INDEX
@Argument(doc="Whether to create an MD5 digest for any BAM or FASTQ files created. ",
common=true)
public boolean CREATE_MD5_FILE
@ArgumentCollection public ReferenceArgumentCollection referenceSequence
protected File REFERENCE_SEQUENCE
@Argument(doc="Google Genomics API client_secrets.json file path.",
common=true)
public String GA4GH_CLIENT_SECRETS
@ArgumentCollection(doc="Special Arguments that have meaning to the argument parsing system. It is unlikely these will ever need to be accessed by the command line program") public Object specialArgumentsCollection
@Argument(shortName="use_jdk_deflater",
doc="Use the JDK Deflater instead of the Intel Deflater for writing compressed output",
common=true)
public Boolean USE_JDK_DEFLATER
@Argument(shortName="use_jdk_inflater",
doc="Use the JDK Inflater instead of the Intel Inflater for reading compressed input",
common=true)
public Boolean USE_JDK_INFLATER
protected abstract int doWork()
protected boolean requiresReference()
protected ReferenceArgumentCollection makeReferenceArgumentCollection()
public void instanceMainWithExit(String[] argv)
public int instanceMain(String[] argv)
protected String[] customCommandLineValidation()
protected boolean parseArgs(String[] argv)
protected <A extends htsjdk.samtools.metrics.MetricBase,B extends Comparable<?>> htsjdk.samtools.metrics.MetricsFile<A,B> getMetricsFile()
public String getStandardUsagePreamble()
public org.broadinstitute.barclay.argparser.CommandLineParser getCommandLineParser()
public static boolean useLegacyParser(Class<?> clazz)
public String getVersion()
public String getCommandLine()
public void setDefaultHeaders(List<htsjdk.samtools.metrics.Header> headers)
public List<htsjdk.samtools.metrics.Header> getDefaultHeaders()
public static String getStandardUsagePreamble(Class<?> mainClass)
public static boolean hasWebDocumentation(Class<?> clazz)
clazz - public static String getFaqLink()