Software report · preprint, not peer reviewedOpen access

brca12-wgs: a reproducible Nextflow pipeline for BRCA1/BRCA2 germline analysis from genome, exome and panel sequencing on GRCh38

Peter Jungwirth, MSc1✉

Affiliations and notes
  1. 1 PJ Labs, Austria
  2. Correspondence: info@pjlabs.dev
  3. Lead contact: Peter Jungwirth, MSc
Article information
Publication history
Published 12 November 2026; Updated 22 November 2026
Peer review
not peer reviewed
Version
1.1.0
Licence
MIT
Version
1.1.0
Published
12 November 2026

Highlights

  • One Nextflow run from FASTQ or BAM/CRAM to a report on BRCA1 and BRCA2
  • SNVs, indels, structural variants and copy-number candidates on GRCh38
  • ACMG/AMP hints by ENIGMA thresholds, explicitly without classification
  • Coverage per exon, flagged uncertain regions and every command logged
  • Tested on GIAB, ten real carriers of pathogenic variants, 39 HPRC genomes, exomes, a panel and long reads (version 1.1.0)
  • Pathogenic founder rearrangements in the allele catalogue: BRCA2 c.156_157insAlu, BRCA1 exon 13 deletion and duplication; preregistered tests with simulated carriers 89/90, 29/30 and 58/60, no false alarms in 200 real genomes
  • Delly 1.3.3 as default SV caller after a preregistered comparison with Manta (simulated: deletions 108/120 vs 105/120, tandem duplications 118/120 vs 109/120, no false call)
  • Exon copy number against 80 reference genomes and tandem duplications from outward-facing read pairs; preregistered tests with simulated events: duplications 244/348 and 119/120 (Manta 109/120), no false call in the simulations

In brief brca12-wgs analyses BRCA1 and BRCA2 in the whole genome of a single sample and writes a report that shows how well the data support each statement. It is a research tool and does not replace clinical diagnostics.

Summary

Whole-genome sequencing covers BRCA1 and BRCA2 completely, including introns, exon boundaries and larger rearrangements. Many openly available workflows for these genes were built for amplicon panels on hg19. brca12-wgs is a Nextflow pipeline [1] for germline data on GRCh38 from whole-genome sequencing; since version 1.1.0 it also reads exome, hybrid-capture panel and amplicon data. It aligns reads with BWA-MEM [2], calls SNVs and indels with GATK HaplotypeCaller [3] or DeepVariant [4], structural variants with Delly [5] (default) or Manta [6] and copy-number candidates with CNVkit [7] plus a per-exon dosage check. Ensembl VEP [8] annotates on MANE Select transcripts [9] with gnomAD [10] and ClinVar [11]. For each variant the report lists ACMG/AMP hints [12] based on the thresholds of the ClinGen ENIGMA expert panel [13] without assigning a classification. Coverage per exon at 10x, 20x and 30x, the share of reads with low mapping quality and flagged uncertain regions show where the data hold and where they do not. The report is written as HTML, Markdown, Excel and JSON, in German or English.

Graphical abstract

InputFASTQ · BAM · CRAMAlignmentBWA-MEM · GRCh38 checkSNV/IndelHaplotypeCalleror DeepVariantSVDellyCNVCNVkit +exon dosageAnnotationEnsembl VEP · MANE · gnomAD · ClinVarACMG/AMP hintsENIGMA thresholdsno classificationCoverage per exon10x · 20x · 30x · MAPQuncertain regions flaggedReportHTML · Markdown · JSON

Keywords

  • BRCA1
  • BRCA2
  • hereditary breast and ovarian cancer
  • whole-genome sequencing
  • germline variant calling
  • structural variants
  • copy number
  • Nextflow
  • GRCh38
  • ACMG/AMP

Introduction

Pathogenic germline variants in BRCA1 and BRCA2 raise the risk of breast, ovarian, prostate and pancreatic cancer. Their detection relies on complete coverage of both genes and on a careful look at variant types that short targeted assays miss, such as deletions of whole exons.

Older open workflows, for example BRCA-analyzer, target amplicon panels, use hg19, call SNVs and small indels only and annotate with ANNOVAR, which requires a licence. Whole-genome data offer more: introns, exon boundaries, copy number and breakpoints of larger rearrangements. brca12-wgs uses this information for both genes and keeps every result traceable to its coverage, quality flags and the command that produced it.

Results

Design of the pipeline

The pipeline first checks that the reference is GRCh38, using the lengths of chr13 and chr17, and that all target intervals lie inside the loci (Figure 1). BWA-MEM aligns the reads, samtools [14] sorts them and marks duplicates; with an existing BAM or CRAM file this step is skipped. Four branches then run in parallel: SNVs and indels with GATK HaplotypeCaller or DeepVariant, structural variants with Delly (default) or Manta for breakpoints within 1 Mb of the genes, copy number with CNVkit in WGS mode plus a per-exon dosage check, and exon coverage with mosdepth [15] (Figure 2). bcftools separates the small variants per gene.

BRCA1chr17:43044295-43170327minus strand126 kb23 exons · ENST00000357654

BRCA2chr13:32315077-32400268plus strand85.2 kb27 exons · ENST00000380152

Exon (MANE Select)Analysed region, arrows give transcription directionBRCA2 exon 3 (Alu insertions)10 kb
Figure 1. Target regions on GRCh38. The line marks the analysed region, the blocks the exons of the MANE Select transcripts (BRCA1 ENST00000357654, 23 exons, minus strand; BRCA2 ENST00000380152, 27 exons, plus strand). Both genes are drawn to the same scale; coordinates from assets/brca12_exons.bed. BRCA2 exon 3 is marked because Alu insertions there are hard to detect with short reads.
Input checkGRCh38 via chr13/chr17 lengths · brca12_prepare.pyAlignmentBWA-MEM, samtools markdup · skipped for BAM/CRAMSNV/IndelHaplotypeCalleror DeepVariantPer genebcftools norm/viewbrca12_regions.bedAnnotationEnsembl VEP+ ClinVar (--custom)Structural variantsDelly (Manta optional)breakpoints ±1 MbCopy numberCNVkit (WGS)+ exon dosageExon coveragemosdepthMAPQ ≥ 20 / ≥ 0Reportbrca12_report.py · HTML · Markdown · JSONbrca12_commands.sh · pipeline_info/
Figure 2. Flow of the Nextflow processes. Alignment (dashed) is skipped for BAM or CRAM input. Small variants pass through per-gene extraction and annotation; structural variants, copy number and exon coverage run in parallel and go straight into the report.

Annotation and ACMG/AMP hints

Ensembl VEP annotates the small variants on the MANE Select transcripts NM_007294.4 (BRCA1) and NM_000059.4 (BRCA2), with HGVS names and gnomAD frequencies. ClinVar significance and review status come from a ClinVar VCF you provide and are shown separately.

The report pre-checks single ACMG/AMP criteria using the BRCA1/BRCA2 thresholds of the ClinGen ENIGMA expert panel (version 1.2 of the specification, Figure 3): PVS1 candidate for stop, frameshift and canonical splice site variants, restricted in the last exon; BA1, BS1 and BS1_Supporting from the gnomAD filtering allele frequencies; PM2_Supporting for substitutions absent from gnomAD; PP3 and BP4 from BayesDel and SpliceAI inside the defined functional domains, BP1_Strong outside them and BP7 for silent and deep intronic variants. The gnomAD, SpliceAI and BayesDel files are supplied by the user; without them the corresponding hints are reported as open or as approximations. Known exceptions such as BRCA2 p.Lys3326Ter are handled explicitly. No combination rule is applied and no classification is assigned.

Annotated variantVEP consequence · gnomAD · ClinVarStop, frameshift orcanonical splice sitePVS1 candidaterestricted in the last exonAbsent from gnomADPM2_SupportinggnomAD filteringallele frequencyBA1 / BS1ENIGMA thresholdsMissense or splice regionin a functional domainPP3 / BP4BayesDel and SpliceAISilent ordeep intronicBP7Hints per criterionClinVar shown separately · no classification
Figure 3. Logic of the ACMG/AMP hints. Each criterion is checked on its own using ENIGMA thresholds. The output is a list of hints next to the ClinVar entry, not a classification. Interpretation requires qualified review and clinically validated confirmation.

Flagging uncertain regions

An exon counts as uncertain if its mean depth is below 20x, fewer than 95 % of its bases reach 20x, or more than 10 % of its reads have a mapping quality below 20, for example near the pseudogene BRCA1P1 or in repeats (Figure 4). Every interval below 10x inside the genes is listed. Variants carry quality flags for FILTER, DP below 15, GQ below 20, an allele fraction outside 25 to 75 % for heterozygous calls, MQ below 40 and location in an uncertain exon. A missing finding in a flagged region is not a statement about the sequence there.

10x20x30x012uncertain34567891011121314151617181920212223BRCA1 exon (MANE Select, transcript numbering)Synthetic test data · illustration
Figure 4. Coverage per exon, example layout. Synthetic test data for illustration, no measurements. Mean depth per BRCA1 exon with lines at 10x, 20x and 30x. An exon below 20x mean depth is flagged as uncertain; the report adds the share of bases at 20x and the share of reads with MAPQ below 20.

Reproducibility and output

Tool versions are pinned in conda environments; Delly runs natively on Apple Silicon in its own environment, the optional Manta needs Python 2.7 and on a Mac a container. The report lists the versions that actually ran, brca12_commands.sh contains every executed command verbatim and pipeline_info/ holds the Nextflow trace, timeline and report. Output is a report in HTML and Markdown with separate sections per gene and variant type, an Excel file with every result, and a JSON file (schema genome.brca12.v1) for downstream tools.

Unit tests on synthetic data and a full Nextflow run with stand-in tools run in GitHub Actions on every push. They check the wiring and the reporting logic; the accuracy of the small-variant calls is covered by the GIAB comparison below.

Comparison with Genome in a Bottle

Small-variant calls were compared with the Genome in a Bottle NIST v4.2.1 truth sets [16] for HG001 (NA12878) and HG002 (NA24385), only inside the GIAB high-confidence regions. These cover 91.9 % (HG001) and 95.1 % (HG002) of the 211,225 bp of both gene loci. Input were GIAB Illumina reads at about 36x and 30x that ran through the whole pipeline from FASTQ; matching used RTG vcfeval [17] and required the genotype to agree. The run used the state after version 1.0.1, including the fixes for 1.0.2.

Across both samples the pipeline found all 364 truth SNVs and 67 of 69 truth indels; in the exons ±20 bp it found all 34 variants without a false positive (Table 2, Figure 5). The two missed indels are genotype errors in intronic homopolymers at 12x and 14x, and the report flags both (DP below 15, GQ below 20). A third discordant call is a heterozygous SNV in an upstream BRCA1 intron (34x, GQ 99) that is absent from the truth set and carries no flag. HG001 had no uncertain exon; HG002 had three (BRCA1 exons 1 and 21, legacy 22, and BRCA2 exon 1). Manta reported no structural variant in either sample.

The comparison is targeted: only reads that GIAB had placed near the genes were used, realigned to chr13 and chr17. Annotation and copy number were not part of it, and neither sample carries a pathogenic BRCA1/BRCA2 variant. With so few variants the confidence intervals are wide.

Table 2. GIAB comparison of small variants.
SampleRegionTypeTruthTPFPFNRecallPrecision
HG001Gene lociSNV269269101.0000.996
HG001Gene lociIndel4948110.9800.980
HG001Exons ±20 bpSNV2020001.0001.000
HG001Exons ±20 bpIndel22001.0001.000
HG002Gene lociSNV9595001.0001.000
HG002Gene lociIndel2019110.9500.950
HG002Exons ±20 bpSNV1111001.0001.000
HG002Exons ±20 bpIndel11001.0001.000

RTG vcfeval, genotype must agree, NIST v4.2.1, only inside GIAB high-confidence regions. 95 % Wilson intervals in Figure 5 and validation/README.md.

Recall0.70.80.91.0Precision0.70.80.91.0HG001 · SNVn = 269HG001 · Indeln = 49HG002 · SNVn = 95HG002 · Indeln = 20Wilson 95 % CI · RTG vcfeval · GIAB v4.2.1
Figure 5. Recall and precision in the GIAB comparison. Dots show the value, lines the 95 % Wilson interval; filled SNVs, open indels. Gene loci inside the GIAB high-confidence regions only; axis starts at 0.7; n: truth variants per row, the counts are in Table 2. Data: validation/results in the repository.

Pathogenic variants, exomes, panels and structural variants (version 1.1.0)

For version 1.1.0 the pipeline was tested on further real and simulated data (Table 3, Figure 6). Version 1.1.0 also reads exome, hybrid-capture panel and amplicon data. All results are for research only and are no clinical validation.

Real carriers: ten people in the 1000 Genomes 30x genomes (NYGC) [18] carry one of eight pathogenic BRCA1/BRCA2 variants listed in ClinVar. The pipeline found all ten, each heterozygous with genotype quality 99. In the exons ±20 bp its calls agreed with the 1000 Genomes genotypes of the same people for 141 of 141 SNVs and 19 of 21 indels. Against the haplotype-resolved long-read assemblies of 39 HPRC genomes it found 590 of 590 SNVs in the exons ±20 bp without a false positive; indels there were found in 68 of 86. Of the 18 missed exon indels, 16 lie in one poly-T stretch of the BRCA1 3′ UTR, where assemblies and short reads disagree on the length of the homopolymer; outside it 41 of 43 were found. On two GIAB exomes and one amplicon panel it found 33 of 37 SNVs inside the targets; the misses lie in a UTR stretch without reads. The Ion AmpliSeq data gave 3 false SNVs at 10 to 20 % allele fraction, all flagged, and 98 false indels from homopolymer errors of the platform, which is why every Ion Torrent indel carries a warning.

Simulated variants spiked into real HG002 reads (not patient samples): all 185 small variants up to 50 bp and, with Manta, all twelve large events (120 bp to a whole gene, two tandem duplications, one Alu insertion in BRCA2 exon 3). Single-sample CNVkit found three of them (none before a fix made during this work); the read-depth signal of two spiked deletions is in Figure 7. At 20 % allele fraction all 94 spiked variants were reported as germline call or mosaic candidate (Mutect2), at 15 % 85, at 10 % 65 and at 5 % 28, without false positives. At 30x a variant at 5 % is carried by about 1.5 reads on average, so low fractions need the depth of panels or exomes.

Real structural variants: a 1,081 bp BRCA1 deletion was found in 6 of 6 carriers, a 271 bp deletion in 2 of 3; nanopore long reads show no deletion in the missed carrier. Manta and HaplotypeCaller called polymorphic Alu insertions in BRCA2 in only 4 of 11 carriers; the insertion signature from clipped read ends was present in 11 of 11 and in 0 of 47 non-carrier evaluations. Nanopore long reads of the same people agreed with the pipeline in 26 of 26 sample-site pairs. Across all 1,019 samples of the 1KG-ONT cohort the long reads show the intronic BRCA2 Alu insertion in 136 of 1,002 evaluable samples, the 1,081 bp BRCA1 deletion in 13 of 993 and the 126 bp tandem-repeat insertion in 552 of 1,004; none of the 18 sites lies in an exon ±20 bp. Insertions of an extra copy of a tandem repeat are missed by the variant callers: a common 126 bp insertion upstream of BRCA1 exon 1 was called in 0 of 19 HPRC carriers. The insertion is now reported when two of three signals agree: clipped reads at both unit borders, a C at the marker base chr17:43128365 (the extra copy differs there from copy 2) and a linked haplotype of five tag SNPs. This found 19 of 19 HPRC carriers and 0 of 20 non-carriers. The rules were set on these samples; on 120 further 1KG-ONT samples not used before it found 67 of 67 long-read carriers and reported 1 of 53 non-carriers (HG02687, all three signals, only 8 spanning long reads). The number of haplotype copies matched the zygosity in the long reads in 66 of 67. Known structural alleles from the long-read assemblies (this copy, the intronic BRCA2 Alu insertion and a 980 bp BRCA1 intronic deletion) are now in addition genotyped by allele-aware realignment: every read near the site is compared with the reference and with the allele sequence. In a preregistered test on 200 new 1KG-ONT samples, with the rules frozen and published before the data were fetched, the 126 bp copy was found in 116 of 116 long-read carriers and called in 4 of 84 non-carriers (Paragraph called the same 4; their long-read coverage is thin). The BRCA2 Alu insertion was found in 25 of 25 carriers with no call in 175 non-carriers, and the 980 bp deletion (registered addendum) in 10 of 10 with no call in 198; genotypes agreed in 113 of 116, 25 of 25 and 10 of 10. On the same reads Paragraph [19] found 114 of 116 copies (102 with PASS) and 23 of 25 Alu insertions (12 with PASS); ExpansionHunter 5 [20] found 14 of 19 HPRC and 54 of 64 independent carriers of the copy.

Exon copy number is in addition compared with 80 reference genomes from 1000 Genomes (depth per exon, hidden Markov model over the exons). In preregistered tests on new samples with events simulated on real haplotypes it found 567 of 580 deletions and 244 of 348 duplications (200 before the hint tier and the allele balance at heterozygous sites), with no false call. Tandem duplications are also searched with outward-facing read pairs and split reads: in a preregistered test with 40 simulated exon-spanning duplications of 1 to 20 kb at three depths it found 119 of 120 (Manta 109 of 120; at a third of the reads 39 of 40 against 31 of 40), with no false call in 147 simulated analyses; in 200 real 1000 Genomes genomes it made one call that nanopore long reads did not confirm. Since a preregistered head-to-head, Delly 1.3.3 replaces Manta as the default SV caller; it runs natively on Apple Silicon. On simulated events at three depths Delly found 108 of 120 deletions of 50 bp to 20 kb (Manta 105), 60 of 60 inversions (Manta 60) and 118 of 120 tandem duplications (Manta 109), with no false call for either in 309 simulated analyses; in 200 real genomes it made one call that long reads did not confirm and found all 9 long-read-confirmed carriers of the 980 bp BRCA1 deletion, while small deletions of about 50 bp, mostly in a tandem repeat, were usually missed. While building the copy-number reference, a heterozygous deletion of BRCA1 exons 14 and 15 (chr17:43069973-43075601) was found in the 1000 Genomes sample NA18949; it is confirmed by depth, read pairs and the junction in clipped reads and is not in the 1000 Genomes SV panel.

Table 3. Tests for version 1.1.0.
Test setDataDetectedShare95 % intervalNote
GIAB HG001/HG002 (WGS), SNVsreal364/364100 %99 % to 100 %
GIAB HG001/HG002 (WGS), indelsreal67/6997 %90 % to 99 %
GIAB, all variants in exons ±20 bpreal34/34100 %90 % to 100 %
Pathogenic variant carriers (1000 Genomes)real10/10100 %72 % to 100 %8 variants, all called heterozygous
39 HPRC genomes, SNVs in exons ±20 bpreal590/590100 %99 % to 100 %truth from long-read assemblies, no false positive
39 HPRC genomes, indels in exons ±20 bpreal68/8679 %69 % to 86 %
GIAB exomes and amplicon panel, SNVs in targetsreal33/3789 %75 % to 96 %misses in a UTR stretch without reads
Spiked small variants up to 50 bpsimulated185/185100 %98 % to 100 %
Spiked large events, Mantasimulated12/12100 %76 % to 100 %120 bp to whole gene, 2 duplications, 1 Alu
Spiked large events, CNVkitsimulated3/1225 %9 % to 53 %0 of 12 before the fix
Spiked variants at 20 % allele fractionsimulated94/94100 %96 % to 100 %germline call or mosaic candidate (Mutect2), no false positive
Spiked variants at 10 % allele fractionsimulated65/9469 %59 % to 78 %
Spiked variants at 5 % allele fractionsimulated28/9430 %21 % to 40 %
BRCA1 deletion 1,081 bp (not pathogenic)real6/6100 %61 % to 100 %
BRCA1 deletion 271 bp (not pathogenic)real2/367 %21 % to 94 %long reads show no deletion in the missed carrier
BRCA2 Alu insertions, Manta/HaplotypeCallerreal4/1136 %15 % to 65 %
BRCA2 Alu insertions, read-end signaturereal11/11100 %74 % to 100 %0 of 47 non-carrier evaluations positive
Agreement with nanopore long reads (SV)real26/26100 %87 % to 100 %sample-site pairs
Tandem insertion 126 bp, callers (HPRC)real0/190 %0 % to 17 %the extra copy aligns to the existing one, only clipped ends
Tandem insertion 126 bp, 2 of 3 signals (HPRC)real19/19100 %83 % to 100 %0 of 20 non-carriers; rules set on these samples
Preregistered: tandem insertion 126 bp (200 ONT)real116/116100 %97 % to 100 %allele-aware realignment; 4 of 84 non-carriers called, the same 4 also by Paragraph (thin long-read coverage); genotype 113 of 116
Preregistered: BRCA2 Alu insertion (200 ONT)real25/25100 %87 % to 100 %0 of 175 non-carriers; genotype 25 of 25; Paragraph 23 of 25 (12 PASS)
Preregistered: BRCA1 deletion 980 bp (addendum)real10/10100 %72 % to 100 %0 of 198 non-carriers; genotype 10 of 10
Exon deletions, copy-number cohort (prereg.)simulated567/58098 %96 % to 99 %58 new 1000 Genomes samples, events simulated on real haplotypes; 0 false calls
Exon duplications, copy-number cohort (prereg.)simulated244/34870 %65 % to 75 %previously 200/348; hint tier and allele balance; 0 false calls
Tandem duplications, outward pairs (prereg.)simulated119/12099 %95 % to 100 %40 simulated duplications of 1-20 kb at three depths; Manta 109/120; 0 false calls in 147 simulations; 1 call in 200 real genomes not confirmed by ONT
Deletions 50 bp-20 kb, Delly (prereg.)simulated108/12090 %83 % to 94 %Manta 105/120; three depths; 0 false calls in 309 simulated analyses
Inversions 1-20 kb, Delly (prereg.)simulated60/60100 %94 % to 100 %Manta 60/60
Tandem duplications 1-20 kb, Delly (prereg.)simulated118/12098 %94 % to 100 %Manta 109/120; 200 real genomes: 1 unconfirmed call
0 %25 %50 %75 %100 %GIAB HG001/HG002 (WGS), SNVsn = 364GIAB HG001/HG002 (WGS), indelsn = 69GIAB, all variants in exons ±20 bpn = 34Pathogenic variant carriers (1000 Genomes)n = 1039 HPRC genomes, SNVs in exons ±20 bpn = 59039 HPRC genomes, indels in exons ±20 bpn = 86GIAB exomes and amplicon panel, SNVs in targetsn = 37Spiked small variants up to 50 bpn = 185Spiked large events, Mantan = 12Spiked large events, CNVkitn = 12Spiked variants at 20 % allele fractionn = 94Spiked variants at 10 % allele fractionn = 94Spiked variants at 5 % allele fractionn = 94BRCA1 deletion 1,081 bp (not pathogenic)n = 6BRCA1 deletion 271 bp (not pathogenic)n = 3BRCA2 Alu insertions, Manta/HaplotypeCallern = 11BRCA2 Alu insertions, read-end signaturen = 11Agreement with nanopore long reads (SV)n = 26Tandem insertion 126 bp, callers (HPRC)n = 19Tandem insertion 126 bp, 2 of 3 signals (HPRC)n = 19Preregistered: tandem insertion 126 bp (200 ONT)n = 116Preregistered: BRCA2 Alu insertion (200 ONT)n = 25Preregistered: BRCA1 deletion 980 bp (addendum)n = 10Exon deletions, copy-number cohort (prereg.)n = 580Exon duplications, copy-number cohort (prereg.)n = 348Tandem duplications, outward pairs (prereg.)n = 120Deletions 50 bp-20 kb, Delly (prereg.)n = 120Inversions 1-20 kb, Delly (prereg.)n = 60Tandem duplications 1-20 kb, Delly (prereg.)n = 120filled: real data · open: simulated · Wilson 95 % CI
Figure 6. Detection per test set (version 1.1.0). Share of detected events with 95 % Wilson intervals. Filled bars: real data (GIAB genomes and exomes, an amplicon panel, 1000 Genomes, HPRC); open bars: simulated events in real reads (HG002, 1000 Genomes). Research use only, no clinical validation. n: events per test set; the counts are in Table 3.
−2.0−1.5−1.0−0.50.0+0.5+1.0a controlb exons 14 to 16c whole genelog2 depth ratio (1 kb bins)inside the spiked intervaloutside
Figure 7. Read-depth signal of spiked heterozygous deletions. CNVkit log2 ratio of every 1 kb bin around BRCA2 in real HG002 reads, inside and outside the spiked interval: (a) negative control, (b) deletion of exons 14 to 16 (8.5 kb), seen by Manta and the exon depth hint but not segmented by CNVkit, (c) deletion of the whole gene (95 kb), reported by CNVkit after the correction. Dashed: 0 and the expected value for one copy (−1). Box: lower to upper quartile, line: median, whiskers: last value within 1.5 × the interquartile range, circles: values beyond. Simulated events, not patient samples. Drawn from validation/pathogenic/results/depth_bins.tsv (Figure 5 of the report as a profile).

Discussion

brca12-wgs combines established tools into one run that produces a readable and checkable report on BRCA1 and BRCA2 from a single whole genome. Its value lies less in new methods than in traceability: every statement is tied to coverage, quality flags and the command that produced it.

Amplicon workflows remain useful for targeted panels; for WGS data on GRCh38 brca12-wgs covers variant types and reference builds they do not address (Table 1). Small variants, including real pathogenic ones, were found reliably in these tests, and Manta detected all spiked large events. Copy number from a single sample remains the weak point: CNVkit misses events below about 10 kb, so exon events rest on the exon copy-number model against the reference genomes and on the SV caller. Next steps are a whole-genome run and real samples with characterised pathogenic exon deletions, duplications or Alu insertions.

Table 1. Comparison with amplicon workflows.
brca12-wgsAmplicon workflows (e.g. BRCA-analyzer)
DataWGS, exome, hybrid-capture and amplicon panels (FASTQ or BAM/CRAM); paired or single-end; Illumina or Ion TorrentAmplicon panels (MiSeq)
ReferenceGRCh38, checked from contig lengths; GRCh37 position for every small varianthg19
SNVs/indelsGATK 4 HaplotypeCaller or DeepVariantPisces, GATK 3 UnifiedGenotyper or FreeBayes
Low allele fractionMutect2 mosaic candidates, tested with spiked variantsPisces calls low fractions
Copy numberCNVkit + per-exon dosage (candidates)not covered
Structural variantsDelly (default) or Mantanot covered
AnnotationEnsembl VEP, MANE Select, gnomAD, ClinVar you provide; BIC namesANNOVAR (licence required), snpEff, bundled ClinVar and BIC
InterpretationACMG/AMP criterion hints (ENIGMA version 1.2), no classificationClass from ClinVar and BIC
CoveragePer exon at 10/20/30x, MAPQ share, low-depth intervalsPer amplicon
OutputHTML, Markdown, Excel and JSON; English or GermanExcel, Word; English or Russian
ReproducibilityNextflow, pinned environments, Docker or Singularity, every command logged, tests on every changePython script, Docker image
Clinical validationNone (research use only)More than 900 patient samples with Sanger confirmation, according to its documentation

Amplicon workflows were built for targeted panels and remain suitable there. The comparison describes the scope, not a ranking.

Limitations of the study

  • Single sample design: copy-number changes are candidates only, because no cohort is available for GATK gCNV. Confirm them with MLPA.
  • Mosaic variants below about 15 % allele fraction are not reliably detected.
  • Alu insertions, for example in BRCA2 exon 3, and complex rearrangements are hard to detect with short reads.
  • Single-sample CNVkit does not find events below about 10 kb; exon deletions and duplications rest on the exon copy-number model and the SV caller (Delly).
  • Extra copies of a tandem repeat unit are reported as hints, not variant calls. For the common 126 bp insertion the marker base and the linked haplotype apply only to this known allele; other tandem copies rely on clipped reads alone. The linkage was measured in 1000 Genomes samples and may be weaker in other populations. Indels in exons were found in 68 of 86 HPRC cases.
  • The read-end signature detects Alu elements only and is a hint rather than a call; it was developed on the 1000 Genomes carriers and then confirmed on HPRC genomes (6 of 6 carriers, 0 of 33 non-carriers).
  • All tests realigned reads around the genes to chr13 and chr17 only; a whole-genome run is still to come. Annotation was not part of the tests.
  • No real sample with a pathogenic exon deletion, duplication or Alu insertion was available; GeT-RM reference material exists only as DNA, not as sequence data.
  • GRCh38 only. DeepVariant runs on macOS only via Docker; the default is GATK HaplotypeCaller.

Resource availability

Lead contact

Requests for further information and resources should be directed to the lead contact, Peter Jungwirth (info@pjlabs.dev).

Materials availability

This study did not generate new reagents or materials. The software is openly available (see data and code availability).

Data and code availability

Source code under the MIT licence: github.com/pjlabsdev/brca12-wgs. Archived version 1.1.0: Zenodo, DOI 10.5281/zenodo.24173638.

Exon coordinates (MANE Select, GRCh38) are in assets/brca12_exons.bed, generated from Ensembl. Figure 1 is drawn from this file. Figure 4 uses synthetic test data for illustration and shows no measurements. Results and scripts of the GIAB comparison (Table 2, Figure 5) are in validation/ in the repository; those of the tests for version 1.1.0 (Table 3, Figure 6) are in validation/pathogenic/ in the repository (version 1.1.0). Only public reference data were used, no patient data.

Acknowledgments

This work used data of the Genome in a Bottle Consortium and of the 1000 Genomes Project (New York Genome Center high-coverage sequencing), the exome and amplicon data of the GIAB producers (Oslo University Hospital, University of Nebraska, Thermo Fisher Scientific), the assemblies of the Human Pangenome Reference Consortium and the long reads of the 1KG-ONT cohort. The 1KG-ONT data were generated at the Institute of Molecular Pathology (Vienna, Austria) with funds provided by Boehringer-Ingelheim.

Author contributions

P.J. conceived the project, developed the software, carried out the validation and wrote the report.

Declaration of interests

The author declares no competing interests.

Methods

Key resources table

ResourceVersionSource
Deposited data
Genome in a Bottle HG001, HG002NIST v4.2.1nist.gov/programs-projects/genome-bottle
1000 Genomes, high-coverage genomesNYGC 30xinternationalgenome.org
HPRC assemblies39 genomeshumanpangenome.org
1KG-ONT long readsONTinternationalgenome.org
MANE SelectNM_007294.4, NM_000059.4ncbi.nlm.nih.gov/refseq/MANE
ClinVarGRCh38 VCFncbi.nlm.nih.gov/clinvar
gnomADvia VEPgnomad.broadinstitute.org
Software and algorithms
brca12-wgs1.1.0github.com/pjlabsdev/brca12-wgs
Nextflow≥ 23.10nextflow.io
BWA (BWA-MEM)0.7.18github.com/lh3/bwa
samtools, bcftools, htslib1.21htslib.org
GATK (HaplotypeCaller)4.6.1.0github.com/broadinstitute/gatk
DeepVariantoptionalgithub.com/google/deepvariant
Delly1.3.3github.com/dellytools/delly
Manta1.6.0 (optional)github.com/Illumina/manta
CNVkit0.9.11github.com/etal/cnvkit
mosdepth0.3.10github.com/brentp/mosdepth
Ensembl VEP113ensembl.org/vep
RTG Tools (vcfeval)3.13github.com/RealTimeGenomics/rtg-tools

Data and study participant details

No new human samples were collected and no patient data were used. All tests rest on public reference data: Genome in a Bottle HG001 and HG002 [16], the 1000 Genomes high-coverage genomes of the New York Genome Center [18], the haplotype-resolved assemblies of the Human Pangenome Reference Consortium [21], the 1KG-ONT long reads [22] and GIAB exome and amplicon data.

Method details

The pipeline is written in Nextflow (23.10 or later, Java 17) and installs its tools through pinned conda environments. The reference needs .fai, .dict and the BWA index next to the FASTA; VEP needs an offline GRCh38 cache.

Quick start

From FASTQ with the conda profile. For an existing BAM or CRAM file use --bam instead of the reads; alignment is then skipped. The README in the repository lists all options.

nextflow run main.nf -profile conda \
  --sample sample \
  --reads_r1 R1.fastq.gz --reads_r2 R2.fastq.gz \
  --reference GRCh38.fa --vep_cache ~/.vep \
  --clinvar_vcf clinvar.vcf.gz \
  --outdir brca12_results

Quantification and statistical analysis

Small-variant calls were compared with RTG vcfeval [17]; the genotype had to agree and only GIAB high-confidence regions counted. Recall is TP/(TP+FN), precision TP/(TP+FP). Shares of detected events are given with 95 % Wilson intervals [23]. In the preregistered tests, rules and thresholds were frozen and published before the test data were fetched. With few events the intervals are wide; no result here is a clinical validation.

Supplemental information

References

  1. Di Tommaso P, Chatzou M, Floden EW, et al. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017;35:316-319.
  2. Li H. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv:1303.3997. 2013.
  3. Poplin R, Ruano-Rubio V, DePristo MA, et al. Scaling accurate genetic variant discovery to tens of thousands of samples. bioRxiv. 2017:201178.
  4. Poplin R, Chang PC, Alexander D, et al. A universal SNP and small-indel variant caller using deep neural networks. Nat Biotechnol. 2018;36:983-987.
  5. Rausch T, Zichner T, Schlattl A, Stütz AM, Benes V, Korbel JO. DELLY: structural variant discovery by integrated paired-end and split-read analysis. Bioinformatics. 2012;28:i333-i339.
  6. Chen X, Schulz-Trieglaff O, Shaw R, et al. Manta: rapid detection of structural variants and indels for germline and cancer sequencing applications. Bioinformatics. 2016;32:1220-1222.
  7. Talevich E, Shain AH, Botton T, Bastian BC. CNVkit: genome-wide copy number detection and visualization from targeted DNA sequencing. PLoS Comput Biol. 2016;12:e1004873.
  8. McLaren W, Gil L, Hunt SE, et al. The Ensembl Variant Effect Predictor. Genome Biol. 2016;17:122.
  9. Morales J, Pujar S, Loveland JE, et al. A joint NCBI and EMBL-EBI transcript set for clinical genomics and research. Nature. 2022;604:310-315.
  10. Karczewski KJ, Francioli LC, Tiao G, et al. The mutational constraint spectrum quantified from variation in 141,456 humans. Nature. 2020;581:434-443.
  11. Landrum MJ, Lee JM, Benson M, et al. ClinVar: improving access to variant interpretations and supporting evidence. Nucleic Acids Res. 2018;46:D1062-D1067.
  12. Richards S, Aziz N, Bale S, et al. Standards and guidelines for the interpretation of sequence variants. Genet Med. 2015;17:405-424.
  13. Parsons MT, de la Hoya M, Richardson ME, et al. Evidence-based recommendations for gene-specific ACMG/AMP variant classification from the ClinGen ENIGMA BRCA1 and BRCA2 Variant Curation Expert Panel. Am J Hum Genet. 2024;111:2044-2058.
  14. Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. GigaScience. 2021;10:giab008.
  15. Pedersen BS, Quinlan AR. Mosdepth: quick coverage calculation for genomes and exomes. Bioinformatics. 2018;34:867-868.
  16. Wagner J, Olson ND, Harris L, et al. Benchmarking challenging small variants with linked and long reads. Cell Genom. 2022;2:100128.
  17. Cleary JG, Braithwaite R, Gaastra K, et al. Comparing variant call files for performance benchmarking of next-generation sequencing variant calling pipelines. bioRxiv. 2015:023754.
  18. Byrska-Bishop M, Evani US, Zhao X, et al. High-coverage whole-genome sequencing of the expanded 1000 Genomes Project cohort including 602 trios. Cell. 2022;185:3426-3440.
  19. Chen S, Krusche P, Dolzhenko E, et al. Paragraph: a graph-based structural variant genotyper for short-read sequence data. Genome Biol. 2019;20:291.
  20. Dolzhenko E, Deshpande V, Schlesinger F, et al. ExpansionHunter: a sequence-graph-based tool to analyze variation in short tandem repeat regions. Bioinformatics. 2019;35:4754-4756.
  21. Liao WW, Asri M, Ebler J, et al. A draft human pangenome reference. Nature. 2023;617:312-324.
  22. Schloissnig S, Pani S, Ebler J, et al. Structural variation in 1,019 diverse humans based on long-read sequencing. Nature. 2025;644:442-452.
  23. Wilson EB. Probable inference, the law of succession, and statistical inference. J Am Stat Assoc. 1927;22:209-212.