public class MergeSamFiles extends CommandLineProgram
Modifier and Type | Field and Description |
---|---|
boolean |
ASSUME_SORTED |
java.util.List<java.lang.String> |
COMMENT |
java.util.List<java.io.File> |
INPUT |
java.io.File |
INTERVALS |
boolean |
MERGE_SEQUENCE_DICTIONARIES |
java.io.File |
OUTPUT |
htsjdk.samtools.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 java.lang.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(java.lang.String[] argv)
Required main method implementation.
|
getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders
@Option(shortName="I", doc="SAM or BAM input file", minElements=1) public java.util.List<java.io.File> INPUT
@Option(shortName="O", doc="SAM or BAM file to write merged result to") public java.io.File OUTPUT
@Option(shortName="SO", doc="Sort order of output file", optional=true) public htsjdk.samtools.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 java.util.List<java.lang.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 java.io.File INTERVALS
public static void main(java.lang.String[] argv)
protected int doWork()
doWork
in class CommandLineProgram
protected java.lang.String[] customCommandLineValidation()
CommandLineProgram
customCommandLineValidation
in class CommandLineProgram