Output Options

The following command line options for output are mandatory:

--output-directory <out_dir>—Specifies the output directory for generated files.
--output-file-prefix <out_prefix>—Specifies the output file prefix. DRAGEN appends the appropriate file extension onto this prefix for each generated file.
-r [ --ref-dir ]—Specifies the reference hash table.

The following examples do not include these mandatory options.

For mapping and aligning, the output is sorted and compressed into BAM format by default before saving to disk. You can control the output format from the map/align stage with the --output-format <SAM|BAM|CRAM> option. If the output file exists, DRAGEN issues a warning and exits. To force overwrite if the output file already exists, use the -f [ --force ] option.

For example, the following commands output to a compressed BAM file, and then forces overwrite:

dragen ... -f

dragen ... -f --output-format bam

To generate a BAI-format BAM index file (*.bai), set --enable-bam-indexing to true.

The following example outputs to a SAM file, and then forces overwrite:

dragen ... -f --output-format sam

The following example outputs to a CRAM file, and then forces overwrite:

dragen ... -f --output-format cram

DRAGEN only outputs lossless CRAM files. All QNAMEs and BAM tags are preserved in the CRAM file.