DNA-seq with nf-core/sarek
This page records the nf-core/sarek run behind the DNA-seq section. Sarek 3.11.0 ran with Podman on a workstation with 16 CPUs and 59 GB of memory, on a 1 Mb region of chr20 from the Genome in a Bottle sample HG002, and wrote four germline call sets with SnpEff annotation. You will choose the region, fetch the inputs, configure and run the pipeline, and read what it wrote.
The nf-core/sarek page explains each step of the pipeline, so this page covers what happened in this run. The code is in guides/reproducibility/dnaseq-sarek/ of the companion repository, and every number below comes from a file that the fetch scripts or the run wrote.
The HG002 dataset
Section titled “The HG002 dataset”| Detail | Value |
|---|---|
| Sample | HG002, also NA24385, the son in the GIAB Ashkenazi trio |
| Reads | HG002.GRCh38.60x.1.bam, aligned to GRCh38 by NHGRI with novoalign |
| Read type | 148 bp paired-end |
| Library | Illumina TruSeq DNA PCR-Free, kit FC-121-3001 |
| Truth set | GIAB v4.2.1 GRCh38 benchmark VCF and its BED file |
| Reference | chr20 of the GATK Homo_sapiens_assembly38.fasta, 64,444,167 bases |
| Region | chr20:10,000,001-11,000,000 |
HG002 comes with an answer key. The truth set pairs a VCF of trusted calls with a BED file of the regions where those calls are complete, so the Benchmarking page can score every caller against it. The source BAM is 126,230,242,948 bytes, and the fetch script reads only the 1 Mb region out of it.
Choosing the region
Section titled “Choosing the region”The region had to hold at least 1,000 SNVs and 100 indels from the truth set inside the high-confidence BED, near chr20:10 Mb. scan_regions.sh reads the truth records through the remote tabix index, counts them in nine candidate windows of 1 Mb and 2 Mb, and writes the counts to region_scan.json.
The HG002 inputs come from NIST and the Genome in a Bottle consortium. The preparation on October 29, 2026 selects the chromosome 20 interval, subsets the GIAB v4.2.1 benchmark, and produces fresh analysis outputs. The source and terms notice identifies the original sequencing and benchmark publications, the exact source files, and the changes. It also records the grants for the Broad reference bundle and Ensembl release 99 annotation.
bash guides/reproducibility/dnaseq-sarek/scan_regions.sh| Window | Size | High-confidence bases | SNVs | Indels | Passes |
|---|---|---|---|---|---|
| chr20:10,000,001-11,000,000 | 1 Mb | 977,839 | 1,354 | 233 | yes |
| chr20:11,000,001-12,000,000 | 1 Mb | 988,385 | 1,227 | 192 | yes |
| chr20:12,000,001-13,000,000 | 1 Mb | 986,513 | 1,465 | 236 | yes |
| chr20:13,000,001-14,000,000 | 1 Mb | 980,680 | 951 | 163 | no |
| chr20:14,000,001-15,000,000 | 1 Mb | 980,942 | 1,040 | 193 | yes |
| chr20:10,000,001-12,000,000 | 2 Mb | 1,966,224 | 2,581 | 425 | yes |
| chr20:11,000,001-13,000,000 | 2 Mb | 1,974,898 | 2,692 | 428 | yes |
| chr20:12,000,001-14,000,000 | 2 Mb | 1,967,193 | 2,416 | 399 | yes |
| chr20:13,000,001-15,000,000 | 2 Mb | 1,961,622 | 1,991 | 356 | yes |
A record counts as high confidence only when its whole REF span sits inside one BED interval. Four of the five 1 Mb windows pass, and the tie rule takes the first passing window of the smallest size in genomic order. That is chr20:10,000,001-11,000,000, where the BED covers 97.78% of the bases and 1,625 truth records start.
Fetching the inputs
Section titled “Fetching the inputs”bash guides/reproducibility/dnaseq-sarek/fetch_inputs.shfetch_inputs.sh cuts every input to the region with samtools 1.22.1 and bcftools 1.22 in pinned Podman images. It reads the BAM, the FASTA and each VCF through their indexes and downloads only the small truth BED and the GATK dictionary whole. If an index read of a VCF or of the FASTA fails, the script falls back to the full file with a warning, and a failed BAM read stops it.
For the reads, samtools view -f 0x2 -F 0xB0C keeps primary proper pairs, and a filter expression keeps a record only when it and its mate both start inside the region. samtools collate and samtools fastq -n write the pairs, and the script stops if any read has no mate. Duplicates stay in for sarek to mark, although none of the 416,496 source records in the region carries the duplicate flag.
The reference is chr20 cut with samtools faidx, and its MD5 must match the M5 tag in the GATK dictionary, b18e6c531b0bd70e949a7fc20859cb01. The VCF subsets keep the records whose position lies in the region, and the truth BED is clipped at its edges. The GATK files come from gcp-public-data--broad-references, because genomics-public-data refused anonymous reads with HTTP 403 on 2026-10-29.
File under data/ |
Content |
|---|---|
reads/hg002_chr20_region_r1.fastq.gz and _r2 |
204,350 read pairs |
reference/homo_sapiens_assembly38_chr20.fasta |
chr20, 64,444,167 bases |
known_sites/dbsnp138_chr20_region.vcf.gz |
21,450 dbSNP 138 records |
known_sites/mills_1000g_indels_chr20_region.vcf.gz |
319 Mills and 1000G gold standard indels |
intervals/chr20_region.bed |
the region as chr20 10000000 11000000 |
truth/hg002_giab_v4_2_1_chr20_region.vcf.gz |
1,625 truth records |
truth/hg002_giab_v4_2_1_chr20_region_noinconsistent.bed |
129 intervals, 977,839 bases |
With the tabix index of each VCF, that makes eleven files. The script writes their SHA-256 checksums to input_checksums.sha256 and repeats them in inputs_manifest.json with the record counts and the source URLs. A second run on 2026-10-29 gave the same checksums.
9df4ad3d4d3bced4f6abca8189198dddc85322bea31716f1ce1c74d4fa15cc34 data/intervals/chr20_region.bed0041de52df31c0be09851ce9881de06bebc679cc15226eebfc1d18871ed02ea2 data/reads/hg002_chr20_region_r1.fastq.gz98c6f3422d18c75548bba2379f736181a4817301a408e695f98d4abe984615d6 data/reads/hg002_chr20_region_r2.fastq.gz0ff3eab72be69fad01973c2261b965e1e4bd6bc49b77bb858d603ffbe11456d7 data/reference/homo_sapiens_assembly38_chr20.fasta6b65e4bcf24d906b95cc92f026f8ec5bb43b2c5a2adcfa71d4673c5bfb7f98cd data/known_sites/dbsnp138_chr20_region.vcf.gz8c81a85326515c6d3fb6cadcb50d5fe787334c655cdac6004ec0773dc8b7ee52 data/known_sites/dbsnp138_chr20_region.vcf.gz.tbi0fe22c4f2fd29a30d4274f2e61b4fbcb374eae0d16e452fe97c2b757e4263dce data/known_sites/mills_1000g_indels_chr20_region.vcf.gze09c0ddae1733942fe4cb50026b30d35d5968d4b12ed2972e95ca501580ead48 data/known_sites/mills_1000g_indels_chr20_region.vcf.gz.tbi57c604389f518c8d395ad9f27529eb9be2173c81c79e1b757a448084860ac1b9 data/truth/hg002_giab_v4_2_1_chr20_region.vcf.gz8241c6dd5bb0bc97f7c9379cd54992ba99ceec7dcc1751380c320ee90e806d40 data/truth/hg002_giab_v4_2_1_chr20_region.vcf.gz.tbi6bf04aba528da7cdb0b3f77960cc515742c4f7f74c88f9de78f1777557e454fb data/truth/hg002_giab_v4_2_1_chr20_region_noinconsistent.bedrun.sh checks them with sha256sum -c, so a changed input stops the run before the first task.
Preparing the samplesheet
Section titled “Preparing the samplesheet”patient,sex,status,sample,lane,fastq_1,fastq_2HG002,XY,0,HG002,L001,data/reads/hg002_chr20_region_r1.fastq.gz,data/reads/hg002_chr20_region_r2.fastq.gzHG002 is male, so sex is XY, and status 0 marks a normal sample. The paths are relative to the run folder, where Nextflow launches.
Three columns leave a mark on the results. Sarek builds the SM read group tag as <patient>_<sample>, so the HaplotypeCaller and freebayes VCFs name the sample HG002_HG002, while DeepVariant and bcftools write HG002. The lane column says L001, but the reads mix several flowcell lanes, so base recalibration treats them as one read group.
Pipeline parameters
Section titled “Pipeline parameters”Sarek reads its parameters from sarek_params.yaml, which run.sh passes with -params-file.
# nf-core/sarek 3.11.0 parameters for the HG002 chr20 region run.# Paths are relative to this folder, which is the Nextflow launch folder.input: samplesheet.csvoutdir: outputs/sarek
# Reference: chr20 of the GATK hg38 FASTA. Sarek builds the FASTA index, the# sequence dictionary and the BWA index, and --save_reference publishes them.# The schema help for --fasta asks for genome null with a custom FASTA.igenomes_ignore: truegenome: nullfasta: data/reference/homo_sapiens_assembly38_chr20.fastasave_reference: true
# Known sites for base recalibration, cut to the region.dbsnp: data/known_sites/dbsnp138_chr20_region.vcf.gzdbsnp_tbi: data/known_sites/dbsnp138_chr20_region.vcf.gz.tbiknown_indels: data/known_sites/mills_1000g_indels_chr20_region.vcf.gzknown_indels_tbi: data/known_sites/mills_1000g_indels_chr20_region.vcf.gz.tbi
# The 1 Mb region, chr20:10,000,001-11,000,000.intervals: data/intervals/chr20_region.bed
# Four germline callers and SnpEff annotation.tools: haplotypecaller,deepvariant,freebayes,mpileup,snpeff
# The GIAB HG002 HiSeq libraries are TruSeq PCR-free. GATK recommends the# NONE indel model for PCR-free data; the sarek default is CONSERVATIVE.gatk_pcr_indel_model: NONE
# SnpEff database for GRCh38, the value of the sarek igenomes config for# GATK.GRCh38. The cache comes from the public annotation-cache bucket, the# sarek default for snpeff_cache.snpeff_db: GRCh38.99snpeff_cache: s3://annotation-cache/snpeff_cache/The parameter table on the sarek page explains the common settings. Three entries belong to this run alone.
gatk_pcr_indel_model: NONEreplaces the sarek default,CONSERVATIVE. The GIAB library README names a PCR-free kit, and the HaplotypeCaller command that sarek ran carries--pcr-indel-model NONE.dbsnp_tbiandknown_indels_tbihand sarek the indexes that the fetch script wrote. As a result, the trace has no task that indexes the known sites.snpeff_db: GRCh38.99is the database that sarek’s iGenomes config givesGATK.GRCh38. Withigenomes_ignore: true, nothing else would set it.
Sarek prints only the parameters that differ from its defaults. pipeline_info/params_2026-10-29_12-17-57.json records every value the run used, defaults such as split_fastq: 50000000 and freebayes_filter: 30 included.
Local configuration
Section titled “Local configuration”run.sh adds local.config on top of the podman profile with -c.
// Local settings for the HG002 chr20 region run of nf-core/sarek 3.11.0.// run.sh passes this file with -c, together with -profile podman.
// Cap the whole run at 12 CPUs and 40 GB, so that the host keeps capacity.executor { name = 'local' cpus = 12 memory = '40 GB'}
// Cap each task at the same limits. Sarek asks for up to 72 GB for some// tasks; resourceLimits lowers those requests instead of failing them.process { resourceLimits = [ cpus : 12, memory: 40.GB, time : 24.h ]}
// Run every task container with no network. No sarek task needs the// network, because Nextflow stages the inputs on the host. The setting also// fixes a hang. Rootless Podman starts one pasta network helper for each// container, and each helper holds about 2,600 pages of pipe buffers. With// five or more containers, the user passes fs.pipe-user-pages-soft (16384// pages), and the kernel then gives new pipes 8 KB only. The Python helper// of GATK CNNScoreVariants filled such a pipe and the task hung. See the// "Problems found" section of README.md.podman { runOptions = '--network=none'}
// The SnpEff cache is in the public annotation-cache bucket, which is in// eu-west-1. Anonymous access means the run needs no AWS credentials.aws { region = 'eu-west-1' client { anonymous = true }}The caps leave 4 CPUs and 19 GB of the host free. resourceLimits lowers the requests of the processes that ask for up to 72 GB to 40 GB instead of failing them, and the aws block reads the public SnpEff cache with no credentials.
Why every container runs with --network=none
Section titled “Why every container runs with --network=none”The first full run on 2026-10-29 stopped inside GATK CNNScoreVariants. From 11:50 to 12:08 the Java process and its Python helper waited without using CPU, until a manual read of the blocked pipe released the helper. The results of that run are not used, and this page records the second full run.
| Observation | Value |
|---|---|
| State of the Python helper | blocked in anon_pipe_write, on its standard output pipe |
| Data in the two blocked pipes | 10,519 and 1,028 bytes |
| Capacity of a normal pipe on this host | 65,536 bytes |
fs.pipe-user-pages-soft |
16,384 pages |
| Pipe pages of the user before the test | 3,632 |
| Pipe pages with 4 idle Podman containers | 14,106 |
Pipe pages with 4 idle Podman containers and --network=none |
3,824 |
Rootless Podman starts one pasta network helper per container, and each helper holds about 2,600 pages of pipe buffers. Five or more containers push the user past the soft limit, and the kernel then gives each new pipe 2 pages, 8 KB on this host. The blocked pipes held less than 65,536 bytes, so they had the reduced buffer, and the Java process was not reading the helper’s output. The pipe page total at 11:50 was not measured, so this cause is an inference from the tests in the table.
No sarek task needs the network, because Nextflow stages every input on the host first. That includes the SnpEff cache, which the console reports as Staging foreign file: s3://annotation-cache/snpeff_cache/GRCh38.99. With --network=none the run had no hang, and CNNScoreVariants took 7.8 s. Raising fs.pipe-user-pages-soft would also work, but it needs root, and a line in local.config does not.
Running the pipeline
Section titled “Running the pipeline”bash guides/reproducibility/dnaseq-sarek/run.shNextflow runs on the host and starts each sarek process in its own Podman container, while the other guides in the companion repository run in one container. The gate still applies, because run.sh must exit 0 and write every file under outputs/ again. The body of the script is below.
GUIDE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"OUT="$GUIDE_DIR/outputs"SCRATCH="${BTI_DNASEQ_SCRATCH:-/mnt/data/bti_dnaseq_work_2026_10_29}"SAREK_VERSION="3.11.0"
# Sarek 3.11.0 requires Nextflow 25.10.4 or later. NXF_VER makes the# Nextflow launcher fetch and run that exact release.export NXF_VER="25.10.4"export NXF_CACHE_DIR="$SCRATCH/nextflow_cache"
cd "$GUIDE_DIR"echo "== input checksums =="sha256sum -c input_checksums.sha256
mkdir -p "$OUT" "$SCRATCH/nextflow_logs"rm -rf "$OUT/sarek"# Keep gate_run.log, which the gate writes while this script runs.find "$OUT" -maxdepth 1 -type f ! -name 'gate_run.log' -delete
echo "== nf-core/sarek $SAREK_VERSION =="nextflow -log "$SCRATCH/nextflow_logs/sarek_run.log" \ run nf-core/sarek -r "$SAREK_VERSION" \ -profile podman \ -c local.config \ -params-file sarek_params.yaml \ -w "$SCRATCH/sarek_work" \ -ansi-log false \ "$@" 2>&1 | tee "$OUT/nextflow_stdout.log"NXF_VER pins Nextflow 25.10.4, because sarek 3.11.0 refused 25.10.2 on the host. The work folder, the cache and the full log go to a scratch folder outside the repository, which BTI_DNASEQ_SCRATCH moves. Extra arguments go to nextflow run, so bash run.sh -resume resumes a stopped run.
With -ansi-log false, Nextflow prints one line per task instead of a live progress table. Below is the console output with its color codes removed and most task lines cut.
N E X T F L O W ~ version 25.10.4Launching `https://github.com/nf-core/sarek` [small_einstein] DSL2 - revision: 6e9b164daa [3.11.0]...[17/f356a4] Submitted process > NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:FASTP (HG002-L001)[c7/cd437c] Submitted process > NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:FASTQ_ALIGN:BWAMEM1_MEM (HG002)...Staging foreign file: s3://annotation-cache/snpeff_cache/GRCh38.99...[23/31438f] Submitted process > NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_VARIANT_CALLING_DEEPVARIANT:DEEPVARIANT_RUNDEEPVARIANT (HG002)...[4c/ccc0f3] Submitted process > NFCORE_SAREK:SAREK:MULTIQC (sarek)-[nf-core/sarek] Pipeline completed successfully-Execution stats
Section titled “Execution stats”The execution report and the trace in pipeline_info/ record these values. The peak of 6 running tasks comes from the closing statistics line of outputs/nextflow.log.
| Metric | Value |
|---|---|
| Run name | small_einstein |
| Start and end | 2026-10-29, 12:17:45 to 12:21:35 |
| Duration | 3 minutes 50 seconds |
| Tasks | 62 succeeded, 0 cached, 0 failed, 0 retries |
| CPU-hours | 0.3 |
| Most tasks running at once | 6 |
| Pipeline revision | 3.11.0, commit 6e9b164daa2a54c98f7dda538645d340c561ac24 |
| Task | Duration | CPU | Peak RSS |
|---|---|---|---|
BWAMEM1_INDEX |
36.5 s | 100.4% | 98 MB |
DEEPVARIANT_RUNDEEPVARIANT |
33.9 s | 595.3% | 10.7 GB |
MULTIQC |
20.8 s | 99.9% | 961.7 MB |
GATK4_HAPLOTYPECALLER |
18 s | 279.4% | 915.8 MB |
SNPEFF_SNPEFF, longest of 4 |
13.3 s | 181.7% | 3.8 GB |
GATK4_MARKDUPLICATES |
10.9 s | 189.2% | 7.7 GB |
The longest task is not a caller. Building the BWA index of chr20 took 36.5 s on one core, a step that a prebuilt index skips. DeepVariant ran 12 shards at 595.3% CPU and peaked at 10.7 GB of resident memory, the most of any task. fastp wrote 12 parts with --thread 12, so sarek ran BWA-MEM 12 times, each in under 1 s.
The 62 task durations add up to 4 minutes 33 seconds, close to the wall time, so the steps mostly ran one after another. The images were already on the host from an earlier run that day, so these times leave out image pulls.
Output files
Section titled “Output files”The run writes everything under outputs/. Each VCF has a .tbi index beside it and each CRAM a .crai, which the tree leaves out.
outputs/├── nextflow.log full Nextflow log, copied from the scratch folder├── nextflow_stdout.log console output└── sarek/ ├── annotation/ │ ├── bcftools/HG002/ HG002.bcftools_snpEff.ann.vcf.gz │ ├── deepvariant/HG002/ HG002.deepvariant_snpEff.ann.vcf.gz │ ├── freebayes/HG002/ HG002.freebayes.filtered_snpEff.ann.vcf.gz │ └── haplotypecaller/HG002/ HG002.haplotypecaller.filtered_snpEff.ann.vcf.gz ├── csv/ markduplicates.csv, markduplicates_no_table.csv, │ recalibrated.csv, variantcalled.csv ├── multiqc/ multiqc_report.html, multiqc_data/, multiqc_plots/ ├── pipeline_info/ execution report, timeline, trace, DAG, params JSON, │ BCO manifest, software versions ├── preprocessing/ │ ├── markduplicates/HG002/ HG002.md.cram │ ├── recal_table/HG002/ HG002.recal.table │ └── recalibrated/HG002/ HG002.recal.cram ├── reference/ │ ├── bwa/ homo_sapiens_assembly38_chr20.{amb,ann,bwt,pac,sa} │ ├── dict/ homo_sapiens_assembly38_chr20.dict │ ├── fai/ homo_sapiens_assembly38_chr20.fasta.fai │ └── intervals/ chr20_10000001-11000000.bed{,.gz}, chr20_region.bed.gz ├── reports/ │ ├── bcftools/<caller>/HG002/ │ ├── fastp/HG002/ │ ├── fastqc/HG002-L001/ │ ├── markduplicates/HG002/ │ ├── mosdepth/HG002/ │ ├── samtools/HG002/ │ ├── snpeff/<caller>/HG002/ │ └── vcftools/<caller>/HG002/ └── variant_calling/ ├── bcftools/HG002/ HG002.bcftools.vcf.gz ├── deepvariant/HG002/ HG002.deepvariant.vcf.gz, HG002.deepvariant.g.vcf.gz ├── freebayes/HG002/ HG002.freebayes.vcf.gz, HG002.freebayes.filtered.vcf.gz └── haplotypecaller/HG002/ HG002.haplotypecaller.vcf.gz, HG002.haplotypecaller.filtered.vcf.gzoutputs/sarek holds 355 files and 185 MB. The BWA index that save_reference: true publishes is 112.8 MB of it, the CRAM files and the recalibration table 43.0 MB, MultiQC 20.0 MB, and the call files 0.8 MB.
What each caller wrote
Section titled “What each caller wrote”csv/variantcalled.csv names the four VCFs that went on to SnpEff, the .filtered files for HaplotypeCaller and freebayes and the caller output for the other two.
| Caller | File passed to SnpEff | Records | FILTER column | Sample |
|---|---|---|---|---|
| HaplotypeCaller | HG002.haplotypecaller.filtered.vcf.gz |
1,807 | 1,795 PASS, 5 SNP and 7 indel tranche flags | HG002_HG002 |
| DeepVariant | HG002.deepvariant.vcf.gz |
2,010 | 1,788 PASS, 163 RefCall, 59 NoCall | HG002 |
| freebayes | HG002.freebayes.filtered.vcf.gz |
1,713 | empty | HG002_HG002 |
| bcftools | HG002.bcftools.vcf.gz |
1,933 | empty | HG002 |
The two filters work in opposite ways. CNNScoreVariants and FilterVariantTranches flag 12 HaplotypeCaller records and keep all 1,807, while vcffilter drops the freebayes records with a QUAL of 30 or less, 2,136 down to 1,713, and writes no FILTER value. SnpEff annotated every record of the first three files. In the bcftools file it annotated 1,809 of 1,933, and the other 124 have no ALT allele and a ./. genotype.
The MultiQC general statistics
Section titled “The MultiQC general statistics”multiqc/multiqc_report.html gathers every report, and its general statistics table, saved as multiqc_data/multiqc_general_stats.txt, is the first place to look. These are its values for the reads and the alignments.
| Metric | Tool | Value |
|---|---|---|
| Reads in each FASTQ file | FastQC | 204,350 |
| Read length | FastQC | 148 bases |
| GC content | FastQC | 39% |
| Reads that passed the filter | fastp | 399,690, 97.80% of the input |
| Q30 rate after filtering | fastp | 93.37% |
| Duplication | MarkDuplicates | 0.9137% |
| Reads mapped | samtools | 100.0% |
| Properly paired | samtools | 99.99% |
| Mean insert size | samtools | 546.3 bases |
| Median coverage | mosdepth | 0 |
| Bases at 1x or more | mosdepth | 2.0% |
fastp removed 8,916 low-quality reads and 94 with too many N bases, and it trimmed no adapters, because sarek passes --disable_adapter_trimming unless you set --trim_fastq. MarkDuplicates found 1,826 duplicate pairs among 199,845, 38 of them optical.
The last two rows look like a failure, and they are not. mosdepth reports over all 64,444,167 bases of chr20 while the reads cover 1 Mb, so the median is 0 and the summary mean is 0.91. The 2,000 windows of 500 bp inside the region, in HG002.recal.regions.bed.gz, have a mean depth of 58.5. When the reference is larger than the target, read depth from the window file.
The same table summarizes each call set through bcftools stats.
| VCF | Records | SNPs | Indels | Ts/Tv |
|---|---|---|---|---|
HG002.haplotypecaller.filtered |
1,807 | 1,456 | 357 | 2.2 |
HG002.deepvariant |
2,010 | 1,568 | 447 | 2.03 |
HG002.freebayes.filtered |
1,713 | 1,377 | 302 | 2.2 |
HG002.bcftools |
1,933 | 1,478 | 331 | 2.13 |
bcftools stats counts every record whatever its FILTER value, so these rows include the 163 RefCall and 59 NoCall records of DeepVariant, the 12 flagged HaplotypeCaller records and the 124 bcftools records with no ALT allele. The Comparing callers page puts the four sets on equal terms, and Benchmarking scores them against the 1,354 truth SNVs and 233 truth indels.
Software versions
Section titled “Software versions”Sarek writes the version of every tool, process by process, to pipeline_info/nf_core_sarek_software_mqc_versions.yml. MultiQC records its own version in multiqc_data/multiqc.log.
| Tool | Version | Used for |
|---|---|---|
| nf-core/sarek | 3.11.0 | the pipeline |
| Nextflow | 25.10.4 | the workflow engine |
| fastp | 1.1.0 | read filter and split |
| FastQC | 0.12.1 | raw read report |
| BWA | 0.7.19-r1273 | index and alignment |
| samtools | 1.22.1 in the BWA image, 1.24 elsewhere | sorting, FASTA index, alignment statistics |
| GATK | 4.7.0.0 | dictionary, MarkDuplicates, BaseRecalibrator, ApplyBQSR, HaplotypeCaller, FilterVariantTranches |
| GATK | 4.5.0.0 | CNNScoreVariants |
| DeepVariant | 1.10.0 | caller |
| freebayes | 1.3.10 | caller |
| bcftools | 1.23.1 | mpileup caller, sort, stats |
| vcflib | 1.0.14 | freebayes QUAL filter |
| SnpEff | 5.4c | annotation |
| mosdepth | 0.3.14 | depth |
| vcftools | 0.1.17 | Ts/Tv and FILTER summaries |
| htslib | 1.24 | bgzip and tabix |
| gawk | 5.3.0 | interval BED |
| MultiQC | 1.35 | report |
Two entries differ from the module versions on the nf-core/sarek page. CNNScoreVariants runs GATK 4.5.0.0 while every other GATK step runs 4.7.0.0, and SnpEff reports 5.4c from an image tagged 5.4.0c. Quote this file in a methods section, because it records what ran. The image digests are in guides/dnaseq/fixtures/PROVENANCE.md of the companion repository.
Collecting the fixtures
Section titled “Collecting the fixtures”bash guides/reproducibility/dnaseq-sarek/collect_fixtures.shThe gated DNA-seq pages run in one pinned container, so they read a copy of the small outputs rather than the run folder. collect_fixtures.sh copies 35 files, 3,348,504 bytes in all, into guides/dnaseq/fixtures/ and writes their SHA256SUMS. They are the region BED, 3 truth files, 12 call files with their indexes, 4 SnpEff files for HaplotypeCaller, and 15 QC files from mosdepth, MarkDuplicates, samtools, BaseRecalibrator and MultiQC.
The script refuses any BAM or CRAM file, stops when a source file is missing, and keeps the name sarek gave each file. The DeepVariant gVCF, the SnpEff files of the other three callers and the alignments stay in the run folder. The HaplotypeCaller VCF headers carry dates and work folder paths, so a new run gives new checksums for those files.
Known limits
Section titled “Known limits”- The reference is chr20 only. A read from a repeat on another chromosome can align to chr20 instead and produce a false positive call, an effect the Benchmarking page explains.
--intervalslimits recalibration and calling, not mapping. In the duplicate-marked CRAM, 114 of the 500 bp windows outside the region have a depth above 0. The window next to the region end reaches 3.51 from reads that run past the end, and the other 113 hold reads that BWA placed at other chr20 positions, at most 2.75.- The fetch script keeps a pair only when both mates start inside the region. Depth therefore falls toward the ends, to 35.6 in the first 500 bp window and 39.4 in the last.
- Base recalibration sees 1 Mb of reads, one read group for several lanes. A whole-genome run gives the model far more observations.
Next steps
Section titled “Next steps”The outputs feed the DNA-seq section. Coverage & QC reads the mosdepth and samtools reports, Variant calling opens the HaplotypeCaller VCF field by field, and Comparing callers sets the four call sets side by side. Benchmarking scores them against the GIAB truth set, and Annotation reads the SnpEff output.
Scientific references
Section titled “Scientific references”Di Tommaso and colleagues, 2017 describe Nextflow and its model for reproducible computational workflows.
Ewels and colleagues, 2020 describe nf-core and its community-curated bioinformatics pipelines, which include nf-core/sarek.
Further reading
Section titled “Further reading”The Sarek 3.11.0 usage guide describes sample identifiers, input stages, references, and germline caller choices. Its tagged version matches the pipeline release recorded here.
The DeepVariant r1.10 method notes explain input preparation and interval conventions, including the recommendation concerning base quality recalibration. Use these definitions when comparing caller inputs; this document does not supply the local run measurements.