hg19 Reference Configurations
This guide provides recipes for building custom hg19 reference genomes with different configurations. You can customize the standard hg19 reference by adding PAR (Pseudoautosomal Region) masking, replacing the mitochondrial contig with the hg38 version, or combining both modifications.
Overview and comparison
The following table compares the key components of different hg19 and hs37d5 reference:
Autosomal contigs
chr1-chr22
chr1-chr22
chr1-chr22
chr1-chr22
1-22
chr1-chr22
Sex chromosomes
chrX, chrY
chrX, chrY
chrX, chrY
chrX, chrY
X, Y
chrX, chrY
Mitochondrial contig
NC_001807.4
NC_001807.4
NC_012920.1 (rCRS)
NC_012920.1 (rCRS)
NC_012920.1 (rCRS)
NC_012920.1 (rCRS)
Y chromosome PAR masked
No
Yes (Mask-BED)
No
Yes (Mask-BED)
Yes (Hard)
Yes (Hard)
Decoy contigs
Auto-added
Auto-added
Auto-added
Auto-added
Included
Included
EBV contig
Auto-added
Auto-added
Auto-added
Auto-added
Included
Included
ALT contigs
Included (Auto-masked)
Included (Auto-masked)
Included (Auto-masked)
Included (Auto-masked)
None
None
Unplaced contigs
Included
Included
Included
Included
None
None
Random contigs
Included
Included
Included
Included
None
None
Step 1: Prepare the resources
Before building the hg19 references, download the pangenome reference collection from the DRAGEN Software Support Site. Choose the collection that matches your DRAGEN version.
Extract the collection into its own folder:
# Replace with the collection file you downloaded
COLLECTION=hg19-pangenome-reference-collection-<version>.tar.gz
mkdir -p hg19-collection
tar -xzf $COLLECTION -C hg19-collectionThe collection contains the reference FASTA and all resource files needed by the recipes below. To confirm the version you extracted, read info.json:
Point the recipe variables at the extracted files. This keeps the recipes version agnostic: the file names inside the collection are stable across versions, so only the downloaded collection file changes.
The default variables above build a standard hg19 reference. The following steps are optional. Apply the ones that match the flavor you want, then run the build command. Each step updates a variable so the build command stays the same regardless of flavor.
Step 2 (optional): Mask the chromosome Y PAR regions
Mask the chromosome Y PAR (Pseudoautosomal Region) so reads map to the chromosome X copy. This produces the PAR-masked hg19 flavor.
Create a BED file with the chromosome Y PAR intervals, then append it to the mask BED from the collection:
Step 3 (optional): Replace the mitochondrial contig with rCRS
The default hg19 mitochondrial contig is chrM (NC_001807.4). Replace it with the revised Cambridge Reference Sequence (rCRS, NC_012920.1) to produce the hg19-rCRS flavor.
Download the rCRS sequence and rename its contig to chrMT:
Step 4: Build the reference
Run the build command. The variables set above determine the flavor: default hg19, PAR-masked, hg19-rCRS, or PAR-masked hg19-rCRS.
Note
See Prepare a Reference Genome for options to build a reference that supports CNV, RNA, HLA, and Methylation.
Common options
--build-hash-table
Set to true to build a hash table.
--ht-reference
Path to the reference genome FASTA file.
--ht-mask-bed
Path to the BED file defining regions to mask.
--ht-graph-msvcf-file
Path to the multi-sample VCF file for pangenome reference.
--ht-graph-exclusion-bed
Path to the BED file defining regions to exclude from the pangenome reference.
--ht-graph-extra-kmer-bed
Path to the BED file defining regions where extra k-mers are added to the pangenome reference.
--ht-hapdb-pop-alt-insdup-bed
Path to the BED file to identify population alternate insertion/duplication regions from which to exclude population alternative contigs.
--ht-hapdb-fitler-pop-alt-insdup
Set to true to filter population alternate contigs in the insertion/duplication regions.
--ht-hapdb-mm2-index
Path to the reference FASTA used to identify whether population alternate contigs are homologous to the insertion/duplication regions.
--output-directory
Directory where hash table output files are written.
--ht-num-threads
Number of worker threads for hash table construction (default=8, max=32).
See also
Prepare a Reference Genome — Detailed hash table builder options and advanced tuning.
DRAGEN Reference Support — Reference recommendations by pipeline.
DRAGEN Software Support Site — Download pre-built references and pangenome resources.
Last updated
Was this helpful?

