> For the complete documentation index, see [llms.txt](https://help.dragen.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-recipes/dna-somatic-tumor-normal-solid-wgs-umi.md). Agents can also search and read this documentation through its [MCP server](https://help.dragen.illumina.com/~gitbook/mcp).

# DNA Somatic Tumor-Normal Solid WGS UMI

A DRAGEN recipe, like this one, is a predefined set of analysis parameters and workflow settings tailored to a specific type of genomic analysis. For clarity, some default parameters are explicitly included and annotated with comments. This recipe includes the recommended commands for solid samples. These settings support fresh frozen samples, as well as some optional settings for FFPE samples.

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
# Inputs 
--tumor-fastq-list $PATH                #see 'Input Options' for FQ, BAM or CRAM 
--tumor-fastq-list-sample-id $STRING 
--fastq-list $PATH                      #see 'Input Options' for FQ, BAM or CRAM 
--fastq-list-sample-id $STRING 
# Mapper 
--enable-map-align true                 #optional with BAM/CRAM input 
--enable-map-align-output true          #optionally save the output BAM 
--enable-sort true                      #default=true 
# UMI 
--umi-enable true 
--umi-source STRING                     #Default='qname' 
--umi-library-type STRING               #e.g. random-duplex 
--tumor-normal-has-umi STRING           #Sample(s) containing UMI ['tumor', 'both']. 
# Small variant caller 
--enable-variant-caller true 
--vc-systematic-noise $PATH             #Recommended 
--vc-excluded-regions-bed $BED          #FFPE: optionally mask ALUs 
--vc-target-vaf $NUM                    #Default = 0.03 (>= 3% VAF) 
# SV 
--enable-sv true 
--sv-systematic-noise $PATH             #Optional 
# CNV 
--enable-cnv true 
--cnv-use-somatic-vc-baf true 
# HRD Scoring 
--enable-hrd true                       #requires ASCN CNV, Panels require a genome-wide CNV Scaffold 
# Annotation 
--variant-annotation-data $NIRVANA_PATH 
--enable-variant-annotation true 
# TMB 
--enable-tmb true 
# HLA genotyper 
--enable-hla true 
# Microsatellite Instability (MSI) 
--enable-msi true 
--msi-microsatellites-file $PATH 
--msi-ref-normal-input $PATH            #recommended 
```

## Notes and additional options

### Hashtable

For DRAGEN somatic runs, either the linear or pangenome hashtable can be used.

See: [Product Files](https://support.illumina.com/sequencing/sequencing_software/dragen-bio-it-platform/product_files.html)

### Input options

DRAGEN input sources include: fastq list, fastq, bam, or cram. For BCL input, first create FASTQs using [BCL conversion](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/bcl-conversion.md).

FQ list Input

```
--tumor-fastq-list $PATH 
--tumor-fastq-list-sample-id $STRING 
--fastq-list $PATH 
--fastq-list-sample-id $STRING 
```

FQ Input

```
--tumor-fastq1 $PATH 
--tumor-fastq2 $PATH 
--RGSM-tumor $STRING 
--RGID-tumor $STRING 
--fastq-file1 $PATH 
--fastq-file2 $PATH 
--RGSM $STRING 
--RGID $STRING 
```

BAM Input

```
--tumor-bam-input $PATH 
--bam-input $PATH 
```

CRAM Input

```
--tumor-cram-input $PATH 
--cram-input $PATH 
```

### Mapping and Aligning

| Option                           | Description                                                                                          |
| -------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `--enable-map-align true`        | In the TN pipeline this must be set to false for BAM/CRAM input.                                     |
| `--enable-map-align-output true` | Optionally save the output BAM (default=false).                                                      |
| `--Aligner.clip-pe-overhang 2`   | Clean up any unwanted UMI indexes. Only use when reads contain UMIs, but UMI collapsing was not run. |

### Fractional (Raw Reads) Downsampling

DRAGEN can subsample a random, fractional percentage of reads from an input file using the fractional downsampler. You can use downsampling to subsample data sets in order to simulate different amounts of sequencing. DRAGEN randomly subsamples reads from primary analysis without any modification (e.g., no trimming, no filtering, etc.).

Downsampling may be useful to reduce runtime on very deep samples. For Tumor-Normal analyses it is also recommended to use a normal sample with coverage that is less than the tumor sample. If the matched normal has deeper coverage than the tumor sample, then the fractional samples may be used to reduce coverage on the normal sample.

| Option                             | Description                                                                                                 |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `--enable-fractional-down-sampler` | Set to true to enable fractional downsampling. The default value is false.                                  |
| `--down-sampler-normal-subsample`  | Specify the fraction of reads to keep as a subsample of normal input data. The default value is 1.0 (100%). |
| `--down-sampler-tumor-subsample`   | Specify the fraction of reads to keep as a subsample of tumor input data. The default value is 1.0 (100%).  |
| `--down-sampler-random-seed`       | Specify the random seed for different runs of the same input data. The default value is 42.                 |

### UMI

| Option                             | Description                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--umi-source STRING`              | Specify the input type for the UMI sequence. Options: `qname`, `fastq`, `bamtag`.                                                                                                                                                                                                                                                      |
| `--umi-library-type STRING`        | Set the batch option for different UMIs correction. Options: `random-duplex`, `random-simplex`, `nonrandom-duplex`.                                                                                                                                                                                                                    |
| `--umi-nonrandom-whitelist $PATH`  | If UMI is nonrandom, either a whitelist or correction table is required. The whitelist includes a valid UMI sequence per line.                                                                                                                                                                                                         |
| `--umi-correction-table $PATH`     | If UMI is nonrandom, either a whitelist or correction table is required. The correction table defaults to the table used by TruSight Oncology: \<INSTALL\_PATH>/resources/umi/umi\_correction\_table.txt.gz.                                                                                                                           |
| `--umi-min-supporting-reads INT`   | Specify the number of matching UMI input reads required to generate a consensus read. Any family with insufficient supporting reads is discarded. Most pipelines perform better with a setting of 1. A setting of 2 may potentially be relevant for samples with ultra deep coverage (e.g., ctDNA). (Default since DRAGEN V4.5 is 1)   |
| `--umi-metrics-interval-file $BED` | Target region in BED format.                                                                                                                                                                                                                                                                                                           |
| `--umi-emit-multiplicity both`     | Set the consensus sequence type to output. DRAGEN UMI allows collapsing duplex sequences from the two strands of the original molecules. For more information, see [Merge Duplex UMIs](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/unique-molecular-identifiers.md#merge-duplex-umis). |
| `--umi-start-mask-length INT`      | Number of additional bases to ignore from start of read. The default is 0. To reduce FP optionally set to 1.                                                                                                                                                                                                                           |
| `--umi-end-mask-length INT`        | Number of additional bases to ignore from end of read. The default is 0. To reduce FP optionally set to 3.                                                                                                                                                                                                                             |
| `--tumor-normal-has-umi STRING`    | Specify if only the tumor, or if both the tumor and normal have UMIs. Options: 'both','tumor'.                                                                                                                                                                                                                                         |

For more information see: [UMI Options](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/unique-molecular-identifiers.md#umi-options).

### SNV

| Option                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--vc-target-bed`                                        | Limit variant calling to region of interest.                                                                                                                                                                                                                                                                                                                                                                                                      |
| `--vc-combine-phased-variants-distance INT`              | Maximum distance in base pairs (BP) over which phased variants will be combined. Set to 0 to disable. Valid range is \[0; 15] BP (Default=2)                                                                                                                                                                                                                                                                                                      |
| `--vc-systematic-noise $PATH`                            | Systematic noise file. This filter is recommended for removing systematic noise observed in normal samples (i.e., systematic alignment errors, sequencing errors, etc.).                                                                                                                                                                                                                                                                          |
| `--vc-somatic-hotspots $PATH`                            | DRAGEN has a default set of hotspot variants (positions and alleles) where it will assign an increased prior probability. Use this option to override with a custom hotspots file.                                                                                                                                                                                                                                                                |
| `--vc-enable-liquid-tumor-mode true`                     | Tumor-in-normal contamination. Only use if there is some tumor leakage in the normal control. Not compatible with T/N ML (`--vc-ml-enable-recalibration true`).                                                                                                                                                                                                                                                                                   |
| `--vc-override-tumor-pcr-params-with-normal false`       | Mixed sample preparation. Only use if the tumor and normal samples exhibit different PCR (indel) noise patterns, e.g., due to using different sample preparation.                                                                                                                                                                                                                                                                                 |
| `--vc-sq-filter-threshold $NUM`                          | Threshold for sensitivity-specificity tradeoff using SQ score. The pipeline specific default threshold is 17.5. Raise this value to improve specificity at the cost of sensitivity, or lower it to improve sensitivity at the cost of specificity.                                                                                                                                                                                                |
| `--vc-systematic-noise-filter-threshold $INT`            | Threshold for sensitivity-specificity tradeoff using AQ score for non-hotspot variants. This is only used when supplying a systematic noise file. Pipeline specific default value = 10. Raise this value to improve specificity at the cost of sensitivity, or lower it to improve sensitivity at the cost of specificity.                                                                                                                        |
| `--vc-systematic-noise-filter-threshold-in-hotspot $INT` | Threshold for sensitivity-specificity tradeoff using AQ score for hotspot variants. This is only used when supplying a systematic noise file. Pipeline specific default value = 10. Raise this value to improve specificity at the cost of sensitivity, or lower it to improve sensitivity at the cost of specificity.                                                                                                                            |
| `--vc-excluded-regions-bed $BED`                         | Hard filter variants that overlap with this region. ALU regions comprise approximately 11% of the genome, and are often exceptionally noisy regions in FFPE samples. Optionally filter out ALU regions using the DRAGEN excluded regions filter. ALU bed files can be downloaded as part of the Bed File Collection: [Bed File Collection](https://support.illumina.com/sequencing/sequencing_software/dragen-bio-it-platform/product_files.html) |

Research workflows that require maximum confidence in variant calls may use high-specificity mode, which reduces false positives with some loss in sensitivity.

| High Specificity Option      | Description                                                                                               |
| ---------------------------- | --------------------------------------------------------------------------------------------------------- |
| `--vc-high-specificity true` | Apply aggressive filters in the small variant caller to boost specificity, with some loss in sensitivity. |

For more detail on the small variant caller in somatic mode please refer to [Somatic Mode](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/small-variant-calling/somatic-mode.md)

### HLA

| Option                            | Description                                                                                                                     |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `--enable-hla`                    | Enable HLA typer (this setting by default will only genotype class 1 genes)                                                     |
| `--hla-as-filter-min-threshold`   | Internal option to set min alignment score threshold. The default is 59 and works for WES and WGS. Set to 29 for panels.        |
| `--hla-as-filter-ratio-threshold` | Minimum Alignment score of a read mate to be considered. The default is 0.67 and works for WES and WES. Set to 0.85 for panels. |
| `--hla-enable-class-2`            | Extend genotyping to HLA class 2 genes (default=true).                                                                          |
| `--hla-exome`                     | Output HLA alleles at 3-field resolution (default 4-field resolution) for panels targeting only coding sequences or WES.        |

### CNV

| Option                                 | Description                                                                                                                                               |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--cnv-enable-gcbias-correction true`  | Enable or disable GC bias correction when generating target counts.                                                                                       |
| `--cnv-segmentation-mode $SEG_MODE`    | Option to override the default segmentation algorithm. Defaults include `slm` for germline WGS, `aslm` for somatic WGS, and `hslm` for targeted analysis. |
| `--cnv-segmentation-bed $PATH`         | Specify a segmentation bed file to add pre-defined segments to be called.                                                                                 |
| `--cnv-enable-arm-level-events true`   | Enable arm level CNV events (default false).                                                                                                              |
| `--cnv-enable-cyto-output true`        | Enable Cytogenetics-compatible output (default false).                                                                                                    |
| `--cnv-normal-cnv-vcf $CNV_NORMAL_VCF` | Specify germline CNVs from the matched normal sample.                                                                                                     |

### Annotation

For instructions on how to download the Nirvana annotation database, please refer to [Nirvana](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/nirvana.md)

### TMB

| Option                              | Description                                                                                                                                                               |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--tmb-vaf-threshold FLOAT`         | Variant minimum allele frequency for usable variants (default=0.05)                                                                                                       |
| `--vc-callability-tumor-thresh INT` | Required read coverage to use a site (default=50).                                                                                                                        |
| `--tmb-enable-proxi-filter BOOL`    | Use variant vaf information to increase germline filtering. Recommended for TO, but not for TN. May be overly aggressive at tagging variants as germline (default=false). |

See the user guide: [TMB Germline Variants](https://help.dragen.illumina.com/pages/Hn3gDV4zuKWkuPIsqe0f#id-4.-support-for-germline-variants).

### MSI

Microsatellite sites and PON files can be downloaded here: [Product Files](https://support.illumina.com/sequencing/sequencing_software/dragen-bio-it-platform/product_files.html).

For more information on MSI calling, see [MSI](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/biomarkers/biomarker-msi.md)

### SV

| Option                                            | Description                                                                                                                       |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `--sv-enable-liquid-tumor-mode true`              | Accounts for Tumor-in-Normal (TiN) contamination. Distinct from `--heme-sv` and from `--sv-enable-liquid` (liquid biopsy panels). |
| `--sv-tin-contam-tolerance $TIN_CONTAM_TOLERANCE` | Set the Tumor-in-Normal (TiN) contamination tolerance level.                                                                      |

| Option                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--sv-target-bed`                                  | Specifies a BED file containing the set of regions to call. Optionally gzip or bgzip format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `--sv-exclusion-bed`                               | (Optional) Specifies a BED file containing the set of regions to exclude for the SV calling. Optionally gzip or bgzip format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `--enable-variant-deduplication true`              | Relevant when both SV and SNV callers are enabled in somatic workflows. Can increase sensitivity and prevent the occurrence of replicated variants within genes such as FLT3 and KMT2A. Filter all small indels in the structural variant VCF that appear and are passing in the small variant VCF. DRAGEN will create a new VCF that contains variants in SV VCF that are not matching a variant from SNV VCF file. The new deduplicated SV VCF file will have the same prefix passed by `--output-file-prefix` followed by `sv.small_indel_dedup`. DRAGEN normalizes variants by trimming and left shifting by up to 500 bases. |
| `--sv-systematic-noise $BEDPE`                     | Systematic noise BEDPE file containing the set of noisy paired regions (optionally gzip or bzip compressed). Optional for WGS Tumor-Normal, but strongly recommended for WGS Tumor-Only. Has not been validated in WES, enrichment and amplicon panels.                                                                                                                                                                                                                                                                                                                                                                           |
| `--sv-somatic-ins-tandup-hotspot-regions-bed $BED` | Specify a custom BED of ITD hotspot regions to increase sensitivity for calling ITDs in somatic variant analysis (e.g., FLT3, ARHGEF7, KMT2A, and UBTF).                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `--sv-min-candidate-variant-size`                  | Run SV caller and report all SVs/indels at or above this size.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `--sv-min-scored-variant-size`                     | After candidate identification, only score and report SVs/indels at or above this size. This parameter doesn't affect the somatic hotspot region.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `--sv-use-overlap-pair-evidence true`              | (Optional) Enable for short-insert size libraries (e.g. FFPE) where aligned read pairs may overlap.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

For more information, see [Structural Variant Calling](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/sv-calling.md).

## Resource Files

DRAGEN requires resource files for components such as SNV, SV, and CNV. The following notes provide references for downloading these files or generating them for custom workflows or assays.

### SNV Systematic Noise

Systematic noise files are considered essential in Tumor-Only workflows. It is also recommended for Tumor-Normals workflows.

DRAGEN has pre-built systematic noise files for WGS, WES and for Pillar Amplicons. For high-sensitivity research applications, including targeted panels or WES/WGS assays, it is recommended to create your own systematic noise file as described under Custom.

#### Prebuilt

Prebuilt systematic noise BED files (WES and WGS) can be downloaded here: [Product Files](https://support.illumina.com/sequencing/sequencing_software/dragen-bio-it-platform/product_files.html). Prebuilt files are available for WGS FF, WGS FFPE, and WES FF/FFPE.

#### Custom

This section describes how to generate systematic noise files from phenotypically normal (non-tumor) samples to optimize the performance of a specific assay. For best accuracy, the normal samples should ideally closely match the sequencer, sample type, library prep, and coverage of the tumor samples of interest. It is typically recommended to use 30-70 normals when building a noise file, but fewer can be used.

**Step 1. Run DRAGEN somatic tumor-only on each of approximately 30-70 normal samples.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--tumor-fastq-list $PATH                #see 'Input Options' for FQ, BAM or CRAM 
--tumor-fastq-list-sample-id $STRING 
--umi-enable true 
--umi-source STRING                     #default='qname' 
--umi-library-type STRING               #see 'UMI' 
--vc-detect-systematic-noise=true 
--vc-enable-germline-tagging=true 
--variant-annotation-data $NIRVANA_PATH 
--intermediate-results-dir $PATH 
--output-directory $PATH 
--output-file-prefix $STRING 
```

For WES and WGS pipelines gather the full paths to the small variant hard filtered VCFs (not GVCFs) from step 1 and create a lines file `${VCF_LIST}` by specifying 1 file per line.

**Step 2. Generate the final noise file.**

This step generates a bed file containing mean and max noise estimates per position. This can be used directly during variant calling (argument --vc-systematic-noise). The distribution of noise per position can also be plotted to identify particularly noisy positions that could be troubleshooted (e.g., modify assay settings or DRAGEN settings) or blocklisted

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--build-sys-noise-vcfs-list ${VCF_LIST} 
```

The SNV systematic noise files can also be built in the cloud using the [DRAGEN Baseline Builder App on BaseSpace](https://www.illumina.com/products/by-type/informatics-products/basespace-sequence-hub/apps/dragen-baseline-builder.html) or the DRAGEN Systematic Noise File Builder Pipeline on [Platform Core](https://www.illumina.com/products/by-type/informatics-products/connected-analytics.html).

### SV Systematic Noise

SV systematic noise files are recommended for WGS workflows. Prebuilt WGS noise files are available.

#### Prebuilt

Prebuilt WGS SV systematic noise files can be downloaded here: [Product Files](https://support.illumina.com/sequencing/sequencing_software/dragen-bio-it-platform/product_files.html). Prebuilt files are available for WGS FF/FFPE and WGS HEME.

#### Custom

Custom systematic noise files can be generated for WES, Panels or Amplicon. For best accuracy the normal samples should ideally closely match the sequencer, sample type, library prep and coverage of the tumor samples of interest. It is typically recommended to use 30 - 100 normals when building a noise file, but fewer can be used.

**Step 1. Run DRAGEN somatic tumor-only on normal samples with `--sv-detect-systematic-noise` set to true to generate VCF output per normal sample.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--tumor-fastq-list $PATH                #see 'Input Options' for FQ, BAM or CRAM 
--tumor-fastq-list-sample-id $STRING 
--umi-enable true 
--umi-source STRING                     #default='qname' 
--umi-library-type STRING               #see 'UMI' 
--sv-detect-systematic-noise true 
```

**Step 2. Build the BEDPE file using input VCFs from previous step.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--sv-build-systematic-noise-vcfs-list $VCF_LIST#one VCF per line. 
```

Systematic noise BEDPE files can also be built in the cloud using the [DRAGEN Baseline Builder App on BaseSpace](https://www.illumina.com/products/by-type/informatics-products/basespace-sequence-hub/apps/dragen-baseline-builder.html) or the DRAGEN Systematic Noise File Builder Pipeline on [Platform Core](https://www.illumina.com/products/by-type/informatics-products/connected-analytics.html).

### CNV baseline file (PON)

DRAGEN WGS CNV supports two different normalization methods: self-normalization and panel of normals (PON) normalization. For PON normalization, CNV requires preprocessing to generate a PON file. Follow the steps below to generate the CNV PON files.

**Step 1. Generate CNV target counts of individual samples from the sequencing run.**

Any samples that should not be included in the final PON file can be excluded from this step. Any options used for CNV target counts generation (GC bias correction, minimum MAPQ threshold, etc.) should be matched when processing the case samples.

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--fastq-list $PATH                      #see 'Input Options' for FQ, BAM or CRAM 
--fastq-list-sample-id $STRING 
# UMI 
--umi-enable true 
--umi-source STRING                     #Default='qname' 
--umi-library-type STRING               #e.g. random-duplex 
# CNV 
--enable-cnv true 
```

**Step 2. CNV combined counts file generation.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--enable-cnv true 
--cnv-generate-combined-counts true 
--cnv-normals-list $CNV_NORMALS_LIST 
```

`$CNV_NORMALS_LIST` is a text file with one line for each path to a CNV target counts file generated in step 1 (either `<output-file-prefix>.target.counts.gz` or `<output-file-prefix>.target.counts.gc-corrected.gz`). Individual target counts files are merged into a single `<output-file-prefix>.combined.counts.txt.gz` PON file in the output directory. The PON file is used for each case sample run of DRAGEN CNV using the `--cnv-combined-counts` option.

Step 2 is optional. Step 3 can use the individual target counts from step 1 via `--cnv-normals-list` or `--cnv-normals-file` instead of `--cnv-combined-counts`. In that case, DRAGEN generates the combined counts file in the step 3 output directory.

**Step 3. Apply PON normalization to CASE sample.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
# Inputs 
--tumor-fastq-list $PATH                #see 'Input Options' for FQ, BAM or CRAM 
--tumor-fastq-list-sample-id $STRING 
--fastq-list $PATH                      #see 'Input Options' for FQ, BAM or CRAM 
--fastq-list-sample-id $STRING 
# UMI 
--umi-enable true 
--umi-source STRING                     #Default='qname' 
--umi-library-type STRING               #e.g. random-duplex 
--tumor-normal-has-umi STRING           #Sample(s) containing UMI ['tumor', 'both']. 
# CNV 
--enable-cnv true 
--cnv-enable-self-normalization false 
--cnv-normal-b-allele-vcf $NORMAL_BAF_VCF 
--cnv-combined-counts $CNV_COMBINED_COUNTS 
```

`$CNV_COMBINED_COUNTS` is an output from step 2 with the filename `<output-file-prefix>.combined.counts.txt.gz`. `--cnv-normals-list` or `--cnv-normals-file` can be used if step 2 is skipped.

`$NORMAL_BAF_VCF` is a matched-normal germline hard-filtered SNV VCF (`*.hard-filtered.vcf.gz`). Alternatively, use `--cnv-use-somatic-vc-baf true` with `--enable-variant-caller true` to derive B-allele sites from the matched-normal input in the same run.

For more details on PON generation, see [PON generation](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/cnv-overview/cnv-reference.md#pon-generation).

### MSI baseline file (PON)

It is recommended to use a baseline file that matches the sample type (FF/FFPE), assay type (WGS/WES/Panel) and genome build (hg19/hg38) of the samples being analyzed. If matched normals are available, it is recommended to include them in the baselines.

For MSI baseline generation, see [Baseline microsatellite repeat distribution](https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-dna-pipeline/biomarkers/biomarker-msi.md#baseline-microsatellite-repeat-distribution). It is required that non-tumor inputs are used for baseline generation.

**Step 1. Generate MSI baselines for individual normal samples.**

```
  
/opt/dragen/$VERSION/bin/dragen         #DRAGEN install path 
--ref-dir $REF_DIR                      #path to DRAGEN linear or pangenome hashtable 
--output-directory $OUTPUT 
--intermediate-results-dir $PATH        #e.g. SSD /staging 
--output-file-prefix $PREFIX 
--fastq-list $PATH                      #see 'Input Options' for FQ, BAM or CRAM 
--fastq-list-sample-id $STRING 
# MSI 
--enable-msi true 
--msi-generate-baseline true 
--msi-microsatellites-file $MICROSATELLITE_LIST#see 'Product Files' for available files 
```

**Step 2. Combine MSI baselines to a single file.**

```
touch combined_msi_baseline.dist 
sed 's/$/ $SAMPLEID $OUTPUT/$PREFIX.microsat_normal.dist | grep -v '#' >> combined_msi_baseline.dist 
```

The combined MSI baseline files can then be used for each case sample run of DRAGEN MSI using `--msi-ref-normal-input combined_msi_baseline.dist`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.dragen.illumina.com/dragen-v4.6/product-guides/dragen-v4.6/dragen-recipes/dna-somatic-tumor-normal-solid-wgs-umi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
