For the complete documentation index, see llms.txt. This page is also available as Markdown.

Coverage and Callability Metrics

Coverage and Callability Reports

DRAGEN supports a number of reports dedicated to coverage and GVCF-based callability metrics, as listed in the table below. The coverage reports do not require the mapper or variant callers; however, they are not compatible with --enable-sort=false. The GVCF-based callability reports require the small variant caller to be run in GVCF mode. DRAGEN coverage reports are generated by default over the whole genome and, if provided, also over a target region. DRAGEN also supports specifying custom regions and report types of interest.

Report Name
Output File
Notes

Coverage metrics

_coverage_metrics.csv

Important coverage summary statistics. On by default.

Fine histogram coverage

_fine_hist.csv

Detailed coverage histogram. On by default.

Histogram coverage

_hist.csv

Binned coverage histogram. On by default.

Overall mean coverage

_overall_mean_cov.csv

Redundant subset of information available in _coverage_metrics.csv. On by default.

Per contig mean coverage

_contig_mean_cov.csv

On by default.

Read-level coverage report

_read_cov_report.bed

On by default.

Basepair full resolution

_full_res.bed

Optionally enabled with custom reports.

Per BED region cov_report

_cov_report.bed

Optionally enabled with custom reports.

GVCF callability

_callability.bed

Optionally enabled with custom reports.

Tumor-Normal Support

In somatic tumor-normal mode, DRAGEN generates separate reports for the tumor and normal samples. Each report is labeled according to the sample type. Tumor sample reports include tumor at the end of the file name, and normal sample reports include normal at the end of the file name. To include both tumor and normal sample results in one file, set the --vc-enable-separate-t-n-metrics option to false. DRAGEN then reports on the aggregate of both samples.

Custom Regions

The following command shows an example use case for specifying custom coverage reports:

dragen ... \
--qc-coverage-region-1 <bed file 1> \
--qc-coverage-reports-1 full_res \
--qc-coverage-region-2 <bed file 2> \
--qc-coverage-region-3 <bed file 3> \
--qc-coverage-reports-3 full_res cov_report

The settings --qc-coverage-region-i and --qc-coverage-reports-i work as a pair (i can be 1, 2, 3, 4, or 5). The former setting specifies the region while the latter specify the report type for that region. The number i links the settings. Up to 5 such region and report pairs may be specified.

  • The --qc-coverage-region-i option requires a BED file argument (i can be 1, 2, 3, 4, or 5).

  • Regions in each BED file can be optionally padded using --qc-coverage-region-padding-i option (by default 0 padding is applied).

  • A set of default reports are generated for each region.

  • Additional reports can be specified for each region by using the --qc-coverage-reports-i option.

Optional Report type
Enabled with

Basepair full resolution

--qc-coverage-region-1=BED_FILE_PATH --qc-coverage-reports-1 full_res

Per BED region cov_report

--qc-coverage-region-1=BED_FILE_PATH --qc-coverage-reports-1 cov_report

GVCF callability

--qc-coverage-region-1=BED_FILE_PATH --qc-coverage-reports-1 callability

If multiple report types are selected per region, they should be space-separated, e.g. --qc-coverage-reports-1 callability full_res.

Rules for including reads and bases in the coverage calculations

The following default settings are used for all DRAGEN coverage reports:

  • Duplicate reads are ignored.

  • Soft-clipped bases are ignored.

  • Hard-clipped bases are ignored.

  • Overlapping mates are double-counted.

  • Reads with MAPQ > 0 are included. MAPQ=0 reads are filtered.

  • BQ >= 0 are included.

Optional settings for including or excluding reads and bases in the coverage calculations

Filtering rules
Description

Handing of overlapping mates

By default overlapping mates are double counted. Set --qc-coverage-ignore-overlaps=true to resolve all of the alignments for each fragment and avoid double-counting any overlapping bases. This might result in marginally longer run times. This option also requires setting --enable-map-align=true. --qc-coverage-ignore-overlaps is a global setting and updates all qc-coverage reports.

Soft-clipped bases

By default soft-clipped bases are not counted towards coverage. Set --qc-coverage-count-soft-clipped-bases=true to also include those bases in the coverage calculations. --qc-coverage-count-soft-clipped-bases is a global setting and updates all qc-coverage reports.

Duplicate reads

By default duplicate reads are excluded from coverage calculations. To include duplicates, add countduplicate to the --qc-coverage-filters-i option. This is useful for RNA-seq and other assays where biological duplicates are expected.

MAPQ and BQ filters

The --qc-coverage-filters-i setting can be used to override the min MAPQ and BQ filters. A coverage filter is enabled by using one of the --qc-coverage-filters-i options (where i is 1, 2, 3, 4, or 5), in combination with the associated --qc-coverage-region-i option. The default value for --qc-coverage-filters-i is mapq<1,bq<0. The default includes all BQ, but filters reads with MAPQ=0.

Output file naming

Use --qc-coverage-tag-i (where i is 1, 2, 3, 4, or 5) to customize the output file prefix for each coverage region. Tags must be unique.

As example, the following options are used to enable full (basepair) resolution coverage output with more stringent MAPQ and BQ filtering:

To generate two separate coverage reports for the same region with and without duplicates (useful for RNA-seq):

  • The argument syntax mapq<value,bq<value implies that reads with a mapping quality less than the specified value, or bases with a read base call quality below the specified value, will be ignored.

  • Valid filter arguments are mapq, bq, and countduplicate. Either mapq, bq, or both can be specified. Add countduplicate to include duplicate reads in coverage calculations.

  • Only one operator < is supported. <=, >, >=, = are not supported.

Key Differences from other DRAGEN Metrics and External Tools

Coverage estimates will differ based on rules for filtering reads, which regions are considered, and how CIGAR strings are processed. Some other DRAGEN components (including the mapper and aligner, ploidy caller, and variant callers) also emit coverage-related metrics. These metrics will usually not exactly match the metrics in the DRAGEN coverage reports and are not recommended for general coverage QC.

DRAGEN metrics that may differ from the main DRAGEN coverage reports:

Dragen output
Description

DRAGEN SNV VCF INFO DP field

Computed after excluding unmapped reads, secondary alignments, BQ<10, bad quality reads (badly mated reads, and reads with bad cigars). It will generally be equal or lower than coverage reported in the fine_hist or other coverage reports. It is also expected to be lower than the unfiltered coverage track reported in IGV.

DRAGEN SNV VCF FORMAT DP field

Similar to the INFO DP field, but additionally also excludes non-informative reads that match more than one haplotype equally well. In general, the following pattern is expected: FORMAT DP <= INFO DP <= full_res report.

Input bases divided by reference genome size.

Available in mapping_metrics.csv. This metric is a useful indication of the raw sequencing coverage. All primary reads (including duplicates) are considered. Secondary and supplementary alignments are ignored, but no other filters are applied.

Autosomal Median Coverage

Found in ploidy_estimation_metrics.csv. This is an internal development metric that makes various assumptions about which regions will be treated as callable or not. This metric will not be consistent with "Median autosomal coverage over genome" in "wgs_coverage_metrics.csv". It is not recommended for any QC.

CNV SUMMARY, Average alignment coverage over genome

Computed in the CNV module and available in cnv_metrics.csv. It has its own set of filters (low MAPQ and duplicate marked reads are removed by default) and is based on the intervals used for CNV. Bases in read mates that are overlapping will always be double counted. This is an internal development metric that is not intended to be consistent with "_coverage_metrics.csv". It is not recommended as a general QC coverage metric.

DRAGEN coverage metrics use default rules that differ from Picard tools such as HsMetrics and WgsMetrics. The table below lists the key default settings.

Tool/Metrics
Min BQ
Min MAPQ
Ignore overlapping bases paired reads

Picard HsMetrics/WgsMetrics

20

20

DRAGEN Coverage Metrics

0

1

FALSE

To override the DRAGEN defaults and change behavior to be more similar to Picard please specify the following (optional) settings: • --qc-coverage-region-1 <custom_regions.bed> --qc-coverage-filters-1 'mapq<20,bq<20' --qc-coverage-ignore-overlaps=true

The MAD autosomal coverage metric is comparable to the MAD_COVERAGE field produced by Picard CollectWgsMetrics. To obtain comparable results, run CollectWgsMetrics with filter settings that match the DRAGEN defaults (or overrides) as described in the table above.

Main Coverage Report

DRAGEN will emit a coverage_metrics.csv file for each available region type, including the full genome, target region, and any additionally specified QC regions. This report contains a summary of the main coverage metrics and is therefore generally the most commonly used.

The first column of the output file contains the section name COVERAGE SUMMARY and the second column (the subsection) is empty for all entries in the file.

The following metrics are calculated:

  • Aligned bases in region---Number of uniquely mapped bases to region and the percentage relative to the number of uniquely mapped bases to the genome.

  • Average alignment coverage over region---Total aligned bases in the region divided by the effective reference size. For whole-genome runs (wgs_coverage_metrics.csv), the effective reference size (denominator) is calculated at run time from the hashtable and differs from the raw FASTA sequence length. The following positions are excluded from the denominator:

    • N bases---Only non-N positions contribute.

    • Contig masked tails---Only the effective contig range encoded in the hashtable is counted; positions outside this range are excluded.

    • Coverage mask BED---If a coverage mask BED file was applied during hashtable generation with --ht-mask-bed, only positions within that BED are included in the denominator.

    • Decoy contigs---Decoy contigs (e.g., chrUn_*, *_random, EBV) to which reads are aligned are included in the denominator.

  • Uniformity of coverage (PCT > 0.2*mean) over region__---Percentage of sites with coverage greater than 20% of the mean coverage in region.

  • PCT of region with coverage [ix, inf)---Percentage of sites in region with at least ix coverage, where i can equal 100, 50, 20, 15, 10, 3, 1 and 0.

  • PCT of region with coverage [ix, jx)---Percentage of sites in region with at least ix but less than jx coverage, where (i, j) can equal (50, 100), (20, 50), (15, 20), (10, 15), (3, 10), (1, 3) and (0, 1).

  • Median chr X coverage (ignore 0x regions) over region---Median alignment coverage over the chr X loci in region ignoring loci with 0x coverage. If there is no chromosome X in the reference genome or the region does not intersect chromosome X, this metric shows as NA.

  • Median chr Y coverage (ignore 0x regions) over region---Median alignment coverage over the chr Y loci in region ignoring loci with 0x coverage. If there is no chromosome Y in the reference genome or the region does not intersect chromosome Y, this metric shows as NA.

  • Average mitochondrial coverage over region---Total number of bases that aligned to the intersection of the mitochondrial chromosome with region divided by the total number of loci in the intersection of the mitochondrial chromosome with region. If there is no mitochondrial chromosome in the reference genome or the region does not intersect mitochondrial chromosome, this metric shows as NA.

  • Average autosomal coverage over region---Total number of bases that aligned to the autosomal loci in region divided by the total number of loci in the autosomal loci in region. If there is no autosome in the reference genome, or the region does not intersect autosomes, this metric shows as NA.

  • Median autosomal coverage over region---Median alignment coverage over the autosomal loci in region. If there is no autosome in the reference genome or the region does not intersect autosomes, this metric shows as NA.

  • MAD autosomal coverage over region---Median absolute deviation of the autosomal coverage over the QC coverage region. If there is no autosome in the reference genome or the region does not intersect autosomes, this metric shows as NA.

  • Mean/Median autosomal coverage ratio over region---Mean autosomal coverage in region divided by the median autosomal coverage in region. If there is no autosome in the reference genome or the region does not intersect autosomes, this metric shows as NA.

  • Aligned reads in region---Number of uniquely mapped reads to region and percentage relative to the number of uniquely mapped reads to the genome. Only reads with MAPQ ≥ 1 are included. Secondary and supplementary alignments are ignored.

The following is an example of the contents of the \_coverage\_metrics.csv file:

Fine Histogram Coverage Report

The fine histogram report outputs a _fine_hist.csv file, which contains two columns: Depth and Count. The value in the Depth column ranges from 0 to 2000+ and the Count column indicates the number of loci covered at the corresponding depth.

Masked regions in the FASTA are ignored and no depth for these regions are reported.

Histogram Coverage Report

The histogram report outputs a _hist.csv file, which provides the following:

  • Percentage of bases in the coverage BED/target BED/WGS region that fall within a certain range of coverage.

  • Duplicate reads are ignored if DRAGEN is run with --enable-duplicate-marking true.

The following ranges are used: "[100x:inf)", "[1x:3x)", "[0x:1x)"

Masked regions in the FASTA are ignored and no depth for these regions are reported.

Overall Mean Coverage Report

The Overall Mean Coverage report generates an _overall_mean_cov.csv file, which contains the average alignment coverage over the coverage BED/target BED/WGS, as applicable.

The following is an example of the contents of the _overall_mean_cov.csv file:

Average alignment coverage over target_bed,80.69

Masked regions in the FASTA are ignored and no depth for these regions are reported.

Per Contig Mean Coverage Report

The Contig Mean Coverage report generates a _contig_mean_cov.csv file, which contains the estimated coverage for all contigs and an autosomal estimated coverage. The file includes the following three columns:

Column 1
Column 2
Column3

Contig name

Number of bases aligned to that contig, which excludes bases from duplicate marked reads, reads with MAPQ=0, and clipped bases.

Estimated coverage, as follows: <number of bases aligned to the contig (ie, Col2)> divided by <length of the contig or (if a target BED is used) the total length of the target region spanning that contig>.

Masked regions in the FASTA are ignored and no depth for these regions are reported.

Full Res Report

The Full Res Report outputs a _full_res.bed file in tab-delimited format. The first three columns are the standard BED fields, and the fourth column is the depth. Each record in the file is for a given interval that has a constant depth. If the depth changes, then a new record is written to the file. Alignments that have a mapping quality value of 0, duplicate reads, and clipped bases are not counted towards the depth.

Only base positions that fall under the user-specified coverage-region bed regions are present in the _full_res.bed output file.

The _full_res.bed file structure is similar to the output file of bedtools genomecov -bg. The contents are identical if the bedtools command line is executed after filtering out alignments with mapping quality value of 0, and possibly filtering by a target BED (if specified).

The following is an example of the contents of the _full_res.bed file:

Coverage is reported for all positions specified by qc-coverage-region-i. Masked regions in the FASTA are not ignored.

When --enable-metrics-compression is set to true, the 1 bp resolution coverage metrics output bed file (_full_res.bed) are compressed to bigwig format.

Per Region Coverage Report

The cov_report report generates a _cov_report.bed file in a tab-delimited format. This report includes summary coverage statistic per BED region. The first three columns are standard BED fields. The DRAGEN Amplicon pipeline includes a fourth column for name and fifth column for gene_id. The remaining column fields are statistics calculated over the interval region specified on the same record line.

The following table lists the appended columns.

  • total_cvg---The total coverage value.

  • mean_cvg---The mean coverage value.

  • Q1_cvg---The lower quartile (25th percentile) coverage value.

  • median_cvg---The median coverage value.

  • Q3_cvg---The upper quartile (75th percentile) coverage value.

  • min_cvg---The minimum coverage value.

  • max_cvg---The maximum coverage value.

  • pct_above_X---Indicates the percentage of bases over the specified interval region that had a depth coverage greater than X.

By default, if an interval has a total coverage of 0, then the record is written to the output file. To filter out intervals with zero coverage, set vc-emit-zero-coverage-intervals to false in the configuration file.

By default, if --qc-coverage-region-i-thresholds are not set, the thresholds will default to 5, 15, 20, 30, 50, 100, 200, 300, 400, 500, 1000.

The following is an example of the contents of the _cov_report.bed file:

Read Coverage Report

The read_cov_report report generates a _read_cov_report.bed file in a tab-delimited format. The first five columns are chrom, start, end, name, and gene_id BED fields. The following additional columns represent statistics that are calculated over the interval region specified on the same record line.

  • total_cvg---The total coverage value.

  • read1_cvg---The total Read 1 coverage value.

  • read2_cvg---The total Read 2 coverage value.

If an alignment overlaps more than one region, the alignment is counted toward the region with the largest overlap. If the alignment overlaps equally with more than one region, the alignment is counted toward the first intersecting region.

The following shows the contents of the _read_cov_report.bed file:

Callability

Callability is defined as the fraction of positions in the genome or target region having a GVCF PASSing genotype call. The callability report can be interpreted as the fraction of sites in the genome or target bed where the small variant caller had sufficient information (enough good quality reads) to confidently either call a variant or a HOM-REF region.

The callability report requires DRAGEN to be run in gVCF mode. When gVCF mode is enabled, DRAGEN will automatically generate a callability report as part of variant caller metrics.

The following criteria are used to calculate callability metrics:

  • Callability is calculated over all positions included in the gVCF.

  • Decoy contigs are ignored.

  • Unplaced and unlocalized contigs are ignored.

  • Masked regions in the FASTA (bases set to N) are ignored.

  • For regions where no variant calling was performed, callability is 0.

  • A homozygous deletion counts as a PASSing genotype call for all the reference positions spanned by the deletion.

If the --vc-target-bed option is specified, the output is a target_bed_callability.bed file that contains the overall and autosome callability over the input target bed region. The padding size specified by the --vc-target-bed-padding option is used and overlapping regions are merged.

Callability can also be output over custom regions. If the --qc-coverage-region-i option is used with --qc-coverage-reports-i (where i is 1, 2, 3, 4, or 5), callability can be added as a report type for that region. The output is a qc-coverage-region-i_callability.bed file. For each specified qc-coverage-region-i file, the average callability is reported in the variant calling metrics file. The padding size specified by the --qc-coverage-region-padding-i is used and overlapping regions are merged.

The optional min MAPQ and min BQ filters only influence read and base counting and do not influence the callability reports. The callability reports only depends on the gVCF PASS variants.

Coverage/Callability Reports Use Cases and Expected Output

The following table shows which outputs are generated when default options (--vc-target-bed) versus optional coverage region options (--coverage-region) are used.

--vc-target-bed specified? Y/N

--qc-coverage-region-i (i equal to 1, 2, 3, 4, or 5) specified? Y/N

Expected Output Files

N

N

wgs_coverage_metrics.csv wgs_fine_hist.csv wgs_hist.csv wgs_overall_mean_cov.csv wgs_contig_mean_cov.csv

N

Y

wgs_coverage_metrics.csv wgs_fine_hist.csv wgs_hist.csv wgs_overall_mean_cov.csv wgs_contig_mean_cov.csv For each coverage region specified by the user: qc-coverage-region-i_coverage_metrics.csv qc-coverage-region-i_fine_hist.csv qc-coverage-region-i_hist.csv qc-coverage-region-i_overall_mean_cov.csv qc-coverage-region-i_contig_mean_cov.csv qc-coverage-region-i_full_res.bed if full_res report type is requested for qc-coverage-region-i qc-coverage-region-i_cov_report.bed if cov_report report type is requested for qc-coverage-region-i qc-coverage-region-i_callability.bed if GVCF mode is enabled and the callability or exome-callability report type is requested

Y

N

wgs_coverage_metrics.csv wgs_fine_hist.csv wgs_hist.csv wgs_overall_mean_cov.csv wgs_contig_mean_cov.csv target_bed_coverage_metrics.csv target_bed_fine_hist.csv target_bed_hist.csv target_bed_overall_mean_cov.csv target_bed_contig_mean_cov.csv target_bed_callability.bed if GVCF mode is enabled

Y

Y

wgs_coverage_metrics.csv wgs_fine_hist.csv wgs_hist.csv wgs_overall_mean_cov.csv wgs_contig_mean_cov.csv target_bed_coverage_metrics.csv target_bed_fine_hist.csv target_bed_hist.csv target_bed_overall_mean_cov.csv target_bed_contig_mean_cov.csv target_bed_callability.bed if GVCF mode is enabled For each coverage region specified by the user: qc-coverage-region-i_coverage_metrics.csv qc-coverage-region-i_fine_hist.csv qc-coverage-region-i_hist.csv qc-coverage-region-i_overall_mean_cov.csv qc-coverage-region-i_contig_mean_cov.csv qc-coverage-region-i_full_res.bed if full_res report type is requested for qc-coverage-region-i qc-coverage-region-i_cov_report.bed if cov_report report type is requested for qc-coverage-region-i qc-coverage-region-i_callability.bed if GVCF mode is enabled and the callability or exome-callability report type is requested

Somatic Callable Regions Report

In somatic mode, DRAGEN automatically generates a somatic callable regions report as a bed file. The somatic callable regions report includes all regions with tumor coverage at least as high as the tumor threshold and (if applicable) normal coverage at least as high as the normal threshold. If only the tumor sample is provided, then the report includes all regions with tumor coverage at least as high as the tumor threshold. Each line in the bed output file is formatted as follows.

chromosome region_start region_end

You can specify the threshold values using the --vc-callability-tumor-thresh or --vc-callability-normal-thresh options. The default value for the tumor threshold is 50. The default value for the normal threshold is 5. For more information on each option, see the Somatic Mode documentation.

If the target bed or the --qc-coverage-region-i (where i is 1, 2, 3, 4, or 5) option is included in the run, DRAGEN generates corresponding somatic callable regions bed files in addition to the whole genome somatic callable region bed file.

Last updated

Was this helpful?