public class DownsampleSam extends CommandLineProgram
Modifier and Type | Field and Description |
---|---|
double |
ACCURACY |
java.io.File |
INPUT |
java.io.File |
OUTPUT |
double |
PROBABILITY |
java.lang.Integer |
RANDOM_SEED |
htsjdk.samtools.DownsamplingIteratorFactory.Strategy |
STRATEGY |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, TMP_DIR, VALIDATION_STRINGENCY, VERBOSITY
Constructor and Description |
---|
DownsampleSam() |
Modifier and Type | Method and Description |
---|---|
protected int |
doWork()
Do the work after command line has been parsed.
|
static void |
main(java.lang.String[] args) |
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders
@Option(shortName="I", doc="The input SAM or BAM file to downsample.") public java.io.File INPUT
@Option(shortName="O", doc="The output, downsampled, SAM or BAM file to write.") public java.io.File OUTPUT
@Option(shortName="S", doc="The downsampling strategy to use. See usage for discussion.") public htsjdk.samtools.DownsamplingIteratorFactory.Strategy STRATEGY
@Option(shortName="R", doc="Random seed to use if deterministic behavior is desired. Setting to null will cause multiple invocations to produce different results.") public java.lang.Integer RANDOM_SEED
@Option(shortName="P", doc="The probability of keeping any individual read, between 0 and 1.") public double PROBABILITY
@Option(shortName="A", doc="The accuracy that the downsampler should try to achieve if the selected strategy supports it. Note that accuracy is never guaranteed, but some strategies will attempt to provide accuracy within the requested bounds.Higher accuracy will generally require more memory.") public double ACCURACY
public static void main(java.lang.String[] args)
protected int doWork()
CommandLineProgram
doWork
in class CommandLineProgram