@DocumentedFeature public class SplitSamByNumberOfReads extends CommandLineProgram
| Modifier and Type | Field | Description |
|---|---|---|
File |
INPUT |
|
String |
OUT_PREFIX |
|
File |
OUTPUT |
|
int |
SPLIT_TO_N_FILES |
|
int |
SPLIT_TO_N_READS |
|
long |
TOTAL_READS_IN_INPUT |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, referenceSequence, specialArgumentsCollection, TMP_DIR, USE_JDK_DEFLATER, USE_JDK_INFLATER, VALIDATION_STRINGENCY, VERBOSITY| Constructor | Description |
|---|---|
SplitSamByNumberOfReads() |
| Modifier and Type | Method | Description |
|---|---|---|
protected String[] |
customCommandLineValidation() |
Put any custom command-line validation in an override of this method.
|
protected int |
doWork() |
Do the work after command line has been parsed.
|
getCommandLine, getCommandLineParser, getDefaultHeaders, getFaqLink, getMetricsFile, getStandardUsagePreamble, getStandardUsagePreamble, getVersion, hasWebDocumentation, instanceMain, instanceMainWithExit, makeReferenceArgumentCollection, parseArgs, requiresReference, setDefaultHeaders, useLegacyParser@Argument(doc="Input SAM/BAM file to split",
shortName="I")
public File INPUT
@Argument(shortName="N_READS",
doc="Split to have approximately N reads per output file. The actual number of reads per output file will vary by no more than the number of output files * (the maximum number of reads with the same queryname - 1).",
mutex="SPLIT_TO_N_FILES")
public int SPLIT_TO_N_READS
@Argument(shortName="N_FILES",
doc="Split to N files.",
mutex="SPLIT_TO_N_READS")
public int SPLIT_TO_N_FILES
@Argument(shortName="TOTAL_READS",
doc="Total number of reads in the input file. If this is not provided, the input will be read twice, the first time to get a count of the total reads.",
optional=true)
public long TOTAL_READS_IN_INPUT
@Argument(shortName="O",
doc="Directory in which to output the split BAM files.")
public File OUTPUT
@Argument(shortName="OUT_PREFIX",
doc="Output files will be named <OUT_PREFIX>_N.bam, where N enumerates the output file.")
public String OUT_PREFIX
protected int doWork()
CommandLineProgramdoWork in class CommandLineProgramprotected String[] customCommandLineValidation()
CommandLineProgramcustomCommandLineValidation in class CommandLineProgram