Skip to content
Skills Library
Science & research · Testing

refdata-benchmark-germline-giab

/refdata-benchmark-germline-giab

Benchmark germline small variants (and SVs) against GIAB HG001-HG007 (NISTv4.2.1) or HG002 v5.0q with hap.py + vcfeval engine and GIAB genome stratifications (v3.5/v3.6), truvari for SVs; includes downloads, md5, reference choice and WES restriction. Use when validating a germline caller or pipeline on GIAB samples.

Licence
MIT
Last repository change
11.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Benchmark germline small variants (and SVs) against GIAB HG001-HG007 (NISTv4.2.1) or HG002 v5.0q with hap.py + vcfeval engine and GIAB genome stratifications (v3.5/v3.6), truvari for SVs; includes downloads, md5, reference choice and WES restriction. Use when validating a germline caller or pipeline on GIAB samples.

Original author description

Benchmark germline small variants (and SVs) against GIAB HG001-HG007 (NISTv4.2.1) or HG002 v5.0q with hap.py + vcfeval engine and GIAB genome stratifications (v3.5/v3.6), truvari for SVs; includes downloads, md5, reference choice and WES restriction. Use when validating a germline caller or pipeline on GIAB samples.

How it works

  1. Facts (verify versions on the FTP before use)
  2. Steps
  3. Checks before finishing
  4. Pitfalls
Original SKILL.md headings · 66 lines, 433 words
SKILL.md preview
---
name: refdata-benchmark-germline-giab
description: 'Benchmark germline small variants (and SVs) against GIAB HG001-HG007 (NISTv4.2.1) or HG002 v5.0q with hap.py + vcfeval engine and GIAB genome stratifications (v3.5/v3.6), truvari for SVs; includes downloads, md5, reference choice and WES restriction. Use when validating a germline caller or pipeline on GIAB samples.'
---

# Benchmark germline calls against GIAB

Purpose: GA4GH-style recall/precision/F1 per variant type and genome context.

Use for germline calls on GIAB samples. Not for somatic (`refdata-benchmark-somatic-seqc2`,
`refdata-benchmark-somatic-hg008`). seqc2-toolkit has no GIAB germline support: download directly.

## Facts (verify versions on the FTP before use)

- Base: `https://ftp-trace.ncbi.nlm.nih.gov/ReferenceSamples/giab/release/`
  - `NA12878_HG001/`, `AshkenazimTrio/HG002_NA24385_son/` (+ HG003, HG004),
    `ChineseTrio/` (HG005-HG007), `genome-stratifications/`, `references/`.
- Small variants: `NISTv4.2.1/GRCh38/HG00x_GRCh38_1_22_v4.2.1_benchmark.vcf.gz` +
  `..._benchmark_noinconsistent.bed` or `..._benchmark.bed` (check names in the folder).
- HG002 v5.0q (Q100 assembly-based): `v5.0q/HG002_GRCh38_v5.0q_smvar.vcf.gz` +
  `.benchmark.bed`; `..._stvar.*` for SVs; also GRCh37 and CHM13v2.0; `checksum.md5`.
  Other HG002 sets: CMRG_v1.00 (medically relevant genes), TandemRepeats_v1.0, chrXY_v1.0.
- Stratifications: `genome-stratifications/v3.6/GRCh38@all/` (v3.5 used in the original
  projects); md5 list `GRCh38-genome-stratifications-md5s.txt`; a TSV index of all BEDs for
  hap.py ships in the folder (verify name).
- Reference: `references/GRCh38/GRCh38_GIABv3_no_alt_analysis_set_maskedGRC_decoys_MAP2K3_KMT2C_KCNJ18.fasta.gz`.
  GRCh37: no `chr` prefix.
- Raw reads (FASTQ/BAM) per platform under `ReferenceSamples/giab/data/` (verify).

## Steps

1. **Disk and size**: follow "Large data" in the global rules (mount check if `<SCRATCH_DIR>` is on a removable disk); data to `<SCRATCH_DIR>/data/giab/<sample>/<version>/`.
   Check sizes with `curl -sI`. Stratification tarball about 1.3 GB; per-file download is smaller.
2. **Download** VCF, `.tbi`, BED, README, md5 list; `md5sum -c` against the published list;
   write a `README.md` with URLs, version, date, md5.
3. **Reference check**: query called on the same build; compare `##contig` lines with the
   `.fai`; fix only `chr` naming (`bcftools annotate --rename-chrs`), never lengths.
4. **Regions**: benchmark BED; WES/panel: `bedtools intersect -a benchmark.bed -b targets.bed`
   (targets padded as the caller used them). Report the region size.
5. **Run hap.py** (container or conda `hap.py`; verify flags with `hap.py --help`):

   ```bash
   rtg format -o ref.sdf ref.fa
   hap.py truth.vcf.gz query.vcf.gz -f regions.bed -r ref.fa -o out/HG002 \
       --engine vcfeval --engine-vcfeval-template ref.sdf \
       --stratification strat.tsv --pass-only --threads 4
   ```

   `strat.tsv`: `name<TAB>path` per stratification BED (absolute or relative to the TSV).
6. **SVs**: `truvari bench -b HG002_GRCh38_v5.0q_stvar.vcf.gz -c query_sv.vcf.gz
   --includebed HG002_GRCh38_v5.0q_stvar.benchmark.bed -o out/truvari --passonly`
   (add `truvari refine` for complex regions; verify version-specific options).
7. **Report** from `*.summary.csv` / `*.extended.csv`: SNP/INDEL x ALL/PASS, recall,
   precision, F1, per stratification (all_difficult, low mappability, homopolymers, segdups,
   tandem repeats), tool versions, truth version, regions.

## Checks before finishing

- METRIC.Recall/Precision for the `*` (whole region) row match the summary.
- Truth and query sample are the same individual (HG002 query vs HG002 truth).
- Number of truth variants inside regions is plausible (non-zero for WES).

## Pitfalls

- Mixing GRCh38.d1.vd1 (SEQC2/GDC) FASTA with GIAB no-alt truth: works for primary contigs
  only; keep one reference per run.
- v4.2.1 excludes difficult regions that v5.0q includes: v5.0q recall is lower by design.
- hap.py without vcfeval engine mis-matches complex representations.
- Never benchmark outside the benchmark BED.

Versions

The database has no other skills named refdata-benchmark-germline-giab.

Database snapshot: 13.11.2026 · package version bdd35751111e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100refdata-benchmark-somatic-hg008
    Benchmark somatic SNV/indel (and SV/CNV) calls on the GIAB HG008 pancreatic tumor/normal pair against the NIST draft benchmarks (smvar V0.4, SV-CNV V0.6 at writing; verify latest) with aardvark, rtg vcfeval or hap.py; covers data location, BED choice, VAF filtering and…
  • 100refdata-offline-transfer
    Prepare SEQC2/GIAB reference test data on a machine with internet and move it to an offline HPC: seqc2 fetch, checksums, relocatable samplesheets/params (config-base, pipelines_testdata_base_path), test_full_offline profile, transfer bundle and verification after the copy. Use…
  • 100implement-and-scale-bioinformatics-pipeline
    Implement a designed genomics workflow in the chosen engine, containerize and pin every tool for reproducibility, scale it with scatter/gather on HPC Slurm or cloud Batch (spot on the fault-tolerant steps), and validate it against a GIAB/GA4GH hap.py truth set — then produce a…
  • 95bio-workflows-fastq-to-variants
    Orchestrates the end-to-end germline short-variant pipeline from FASTQ to a filtered, normalized, benchmarked VCF, chaining QC/trim, BWA-MEM2 alignment, duplicate marking, optional BQSR, calling (bcftools/GATK HaplotypeCaller/DeepVariant/DRAGEN), normalization, site+genotype…
  • 95bio-long-read-sequencing-structural-variants
    Detects structural variants (deletions, insertions, inversions, duplications, translocations) from Oxford Nanopore and PacBio long-read alignments with Sniffles2, cuteSV, SVIM, and assembly-based callers, joint-genotypes cohorts via the Sniffles2 .snf workflow, and benchmarks…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.