-bFOFN Read the list of input BAM or CRAM files from FOFN. These are concatenated prior to any files
specified on the command line. Multiple -bFOFN options may be specified to concatenate multiple
lists of BAM/CRAM files.
-hFILE Uses the SAM header from FILE. By default the header is taken from the first file to be
concatenated.
-oFILE Write the concatenated output to FILE. By default this is sent to stdout.
-q [CRAM only] Query the number of containers in the CRAM file. The output is the filename, the
number of containers, and the first and last container number as an inclusive range, with one
file per line.
Note this works in conjunction with the -rRANGE option, in which case the 3rd and 4th columns
become useful for identifying which containers span the requested range.
-rRANGE
[CRAM only] Filter the CRAM file to a specific RANGE. This can be the usual chromosome:start-end
syntax, or "*" for unmapped records at the end of alignments.
If the range is of the form "#:start-end" then the start and end coordinates are interpreted as
inclusive CRAM container numbers, starting at 0 and ending 1 less than the number of containers
reported by -q. For example -r"#:0-9" is the first 10 CRAM containers of data.
All range types filter data in as fast a manner as possible, using operating system read/write
loops where appropriate.
-pA/B [CRAM only] Filter the CRAM file using a specific fraction. The file is split into B
approximately equal parts and returns element A where A is between 1 and B inclusive. If there
are more parts specified than CRAM containers then some of the output will be empty CRAMs.
This can also be combined with the range option above to operate of parts of that range. For
example -rchr2-p1/10 returns the first 1/10th of data aligned against chromosome 2.
-f [CRAM only] Enable fast mode. When filtering by chromosome range with -r we normally do careful
recoding of any containers that overlap the start and end of the range so the record count
precisely matches that returned by a samtoolsview equivalent. Fast mode does no filtering, so
may return additional alignments in the same container but outside of the requested region.
--no-PG Do not add a @PG line to the header of the output file.
-@,--threadsINT
Number of input/output compression threads to use in addition to main thread [0].