public class MergeSamFiles extends CommandLineProgram
Modifier and Type | Field and Description |
---|---|
boolean |
ASSUME_SORTED |
List<String> |
COMMENT |
List<File> |
INPUT |
File |
INTERVALS |
boolean |
MERGE_SEQUENCE_DICTIONARIES |
File |
OUTPUT |
SAMFileHeader.SortOrder |
SORT_ORDER |
boolean |
USE_THREADING |
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 |
---|
MergeSamFiles() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
customCommandLineValidation()
Put any custom command-line validation in an override of this method.
|
protected int |
doWork()
Combines multiple SAM/BAM files into one.
|
static void |
main(String[] argv)
Required main method implementation.
|
getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders
@Option(shortName="SO", doc="Sort order of output file", optional=true) public SAMFileHeader.SortOrder SORT_ORDER
@Option(doc="If true, assume that the input files are in the same sort order as the requested output sort order, even if their headers say otherwise.", shortName="AS") public boolean ASSUME_SORTED
@Option(shortName="MSD", doc="Merge the sequence dictionaries", optional=true) public boolean MERGE_SEQUENCE_DICTIONARIES
@Option(doc="Option to create a background thread to encode, compress and write to disk the output file. The threaded version uses about 20% more CPU and decreases runtime by ~20% when writing out a compressed BAM file.") public boolean USE_THREADING
@Option(doc="Comment(s) to include in the merged output file\'s header.", optional=true, shortName="CO") public List<String> COMMENT
@Option(shortName="RGN", doc="An interval list file that contains the locations of the positions to merge. Assume bam are sorted and indexed. The resulting file will contain alignments that may overlap with genomic regions outside the requested region. Unmapped reads are discarded.", optional=true) public File INTERVALS
public static void main(String[] argv)
protected int doWork()
doWork
in class CommandLineProgram
protected String[] customCommandLineValidation()
CommandLineProgram
customCommandLineValidation
in class CommandLineProgram