Skip to content

Changelog

Applies to GraffiTE v1.1

Verified against v1.1.0.0 at commit bf51777. The 2024 paper describes v1.0, which differs in places; see v1.0 vs v1.1.

Entries before v1.1 are the README's, kept with their original dates. From beta 0.2.5 to v1.1, releases were identified by commit. From v1.1.0.0, each release is a git tag, vW.X.Y.Z; give the version you run when asking for help.


v1.1.0.0 (2026-10-17)

Versions now have four numbers, W.X.Y.Z; CONTRIBUTING.md says what each one means. This release names its own image, cgroza/graffite:1.1.0.0, so a run of it pulls the image it needs.

Annotation

  • Tandem repeats annotated with ULTRA after RepeatMasker: ULTRA_TR (non-redundant bp of tandem repeat) and ULTRA_TR_span (fraction of the variant, capped at 1).
  • New filter metric total_repeat_span, the non-redundant union of RepeatMasker TE hits and ULTRA tandem repeats over the variant length, in place of total_match_span alone. Long insertions where a TE sits next to a polyA or tandem tail are kept. --repeat_span_cutoff (default 0.80) sets the threshold.
  • polyA tail detection: polyA=TRUE or FALSE on single-hit records and NA where n_hits is above 1, after trimming an exact TSD copy from the variant end.
  • --mammal discontinued. L1 5' inversion detection and SVA VNTR-only handling run on every dataset.
  • L1 5' inversions reported as INFO/L1_5PINV (the hit ID of the inverted fragment, or None) in place of mam_filter_1=5P_INV.
  • SVA hits that fall inside the VNTR region are renamed with a (VNTR_only) suffix and reclassified from Retroposon/SVA to Simple_repeat; mam_filter_2 removed.
  • OneCodeToFindThemAll removed from the annotation step; the RepeatMasker .out is read directly.
  • concat_repeatmask accepts a gzip-compressed --reference and re-compresses it to BGZF.

Genotyping

  • GraffiTE.merged.genotypes.trusted.vcf.gz and GraffiTE.merged.genotypes.presence-absence_trusted.tsv, the counterpart of pangenome.trusted.vcf for the genotyped calls: every record has one repeat class. Governed by the same --trusted_* parameters, and not written under --human (PR #103, issue #93).
  • genotyping_record_audit.tsv, one row per pangenome.vcf ALT allele, saying whether the graph genotyped it, whether the annotation reached it, and which stage dropped it.
  • The pangenie back end split PanGenie's records with bcftools norm -f <ref> -m-, and -f also left-aligns. pangenome.vcf was left-aligned only when two or more caller VCFs went through the truvari merge, so on --vcf, single-caller and --graffite_vcf runs an insertion inside a homopolymer came back at a shifted position and lost its whole annotation at the merge. -N keeps the position.

Contigs with nothing to mask

  • The run no longer stops on a contig whose records are all non-indel. tsd_prep and tsd_search dropped a cp of the RepeatMasker directory that nothing had read since v1.0, and repmask_vcf.sh now runs under set -e with an explicit path for a chunk with nothing to mask (issue #93).

Execution

  • --container_tmp binds a directory of your choice to /tmp inside the container, in place of editing singularity.runOptions in the cached copy of nextflow.config (which then breaks nextflow pull and -latest).
  • The image is pinned: every process but pav_asm runs docker://cgroza/graffite:1.1.0.0, built from Dockerfile. Each release has its own tag, and latest follows the newest release. GraffiTE.def is unmaintained.
  • -profile cloud runs on AWS Batch, with the awsbatch executor and Docker in place of Singularity. Before, it named an executor, aws, that Nextflow does not have. pav_asm cannot run there. Not tested.
  • --pangenie_memory defaults to 32G (was unset), so Nextflow starts only as many PanGenie tasks at once as the memory allows.
  • A quick install test ships in test/quick_test.tar.gz; see Installation.

Subsets

  • pangenome.trusted.vcf and matching *.presence-absence*.tsv tables next to pangenome.vcf; trusted records carry FILTER=PASS. Parameters --trusted_min_svlen (250), --trusted_max_ultra_span (0.6), --trusted_ignore_filter. The trusted subset has no polyA requirement, and the --human subset has one.
  • --human rebuilt from pangenome.vcf by its own filter, output pangenome.human.vcf (was pangenome.trusted.human.vcf); pangenome.trusted.vcf is not written on --human runs. The filter keeps AluY*, L1HS, SVA_D/E/F and the HML-2 lineage, and admits the HERVK-int+SVA proviral pattern up to --hervk_pair_max_hits hits (PR #98). Whitelists and thresholds are parameters; human_filter_summary.txt reports what was kept and dropped.

Known limitation: the subsets truncate SVA VNTR polymorphisms

  • --trusted_min_svlen and --human_min_svlen default to 250 bp, a threshold sized for insertions. The SVA VNTR unit is about 49 bp, so the default requires a VNTR length change to span five units. On the 20-genome HPRC set it keeps 102 of 1,141 SVA_*(VNTR_only) records; the median change is 126 bp.
  • --human_sva_ids (^SVA_[DEF]) is matched against repeat_ids, which for a VNTR-only record names the consensus its sequence scored against. That agrees with the host element's subfamily for 35% of records, so the default drops VNTR changes inside old SVAs and makes the subfamilies look more different than they are.
  • Neither filter touches pangenome.vcf or the merged genotyped VCF, so the full set is available; see SVA VNTR polymorphisms.
  • A later release will size the VNTR-only records in VNTR units and stop --human_sva_ids from gating them.

HERV-K (HML-2) classifier, --human only (PRs #94 to #97)

  • Evidence-first allele-state classifier from the element's architecture and from masking the reference at the locus (hervk_classify.py, hervk_arch.py, hervk_ref_state.py), with the ARCH_INT_PERM internal-region permutation signature and copy-number allele states.
  • Loci clustered by overlap and flagged (HERVK_LOCUS, HERVK_MEI, HERVK_CNV, ...); graph genotypes withheld per allele at copy-number and tandem-duplication loci (--hervk_mask_graph_gt_at_cnv).
  • Consolidated VCFs, one record per locus: pangenome.human.consolidated.vcf in discovery and GraffiTE.merged.genotypes.human.vcf.gz after genotyping, with reports; --hervk_reconcile, --hervk_reconcile_vcf to consolidate an existing genotyped VCF with --genotype false.
  • hervk_candidates.vcf holds the full candidate set; --hervk_max_svlen, --hervk_ref_flank, --hervk_locus_window, --hervk_ref_annotation, --hervk_strict, --hervk_config.
  • human_hervk_ids accepts both HERVK-int and Dfam's bare HERVK for the internal region.

Inputs and genotyping

  • --svs: per-sample VCFs fed straight into the merge.
  • --pav: the PAV caller as a discovery entry point.
  • vg call receives -a -A on every graph method, and ploidy 1 on chrX and chrY.
  • Precomputed graph alignments: --graph_alignments (CSV sample,gaf,pack), published to GraffiTE_alignments/.
  • --break_scaffolds splits only at runs of at least --break_scaffolds_min_gap N, 10 by default. It used to split at every N, which cut any insertion carrying one; on the synthetic test set it lost 14 of 29 records (2e13c68).
  • --epigenomes: the panmethyl submodule moves to f0aa2c0 (0fba182). annotate_vcf.py stopped with a TypeError on a record whose genotype is missing altogether (GT is .); it now leaves that record out of the sample's annotated VCF. tagtobed exited before its writer thread had finished, so bamtags_to_BED kept a different subset of each BAM's calls from run to run. The tagtobed fix (panmethyl#3) is in the image. Dockerfile and GraffiTE.def now check out the submodule's commit after cloning panmethyl, where they used to build from its default branch (2cdb8c4).

TSD chain

  • prepTSD.sh reads the flanks through htslib, re-compresses a gzip reference to BGZF, and stops the run instead of writing an empty flank file; a missing exact_match.py is an error rather than no hits; add_polyA.py splits the two-copy TSD value before trimming (in a pipeline run, only from d1dfd7b on; see below). Test: test/tsd/test_tsd_chain.sh (commit 884afa8).
  • TSD_Match_v2.sh measured start offsets from WIN instead of WIN + 1, so a TSD at the start of the variant scored 1, and a shorter match scoring 0.5 beat it, usually a 4 bp AAAA where a TSD opening with As meets the poly(A) tail. Start offsets now count from WIN + 1, and candidates scoring 1.5 or less are ties won by the longest. On the 5,819 records of a 20-genome human run, 1,039 TSD calls got longer and 6 shorter. Test: test/tsd/test_tsd_match.sh (commit d268d93).
  • In a pipeline run add_polyA.py trimmed no TSD before scanning for a tail. fix_vcf.py rewrites pangenome.vcf with vcfpy, which wrote the comma of the Number=1 INFO/TSD as %2C, so add_polyA.py could not split the value into its two copies. INFO/TSD is now Number=2 and keeps its comma, in pangenome.vcf and in the TSD column of the presence-absence TSVs, and add_polyA.py decodes %2C in VCFs from earlier runs. On the 5,819 records of a 20-genome human run, with the d268d93 TSD calls, 17 single-hit records (15 Alu, 1 L1, 1 SVA) go from polyA=TRUE to FALSE and leave pangenome.human.vcf. Records outside that subset were not rerun, so any that turn TRUE are not counted. Test: test/tsd/test_tsd_chain.sh now runs fix_vcf.py (commit d1dfd7b).
  • TSD candidates shorter than 6 bp count only when they sit on the junction (score 0.5 or less). With each insertion's R window swapped for another's, so that no duplication can exist, the search passed a match in 72% of Alu, L1 and SVA pairs; with the rule, 36%. On the 5,614 Alu, L1 and SVA records of a 20-genome human run, 53 short calls are dropped and 33 switch to a longer candidate. Through the TSD trim, polyA changes on 2 of all 5,819 records, both LTR/ERVK, for which no filter reads polyA. Test: test/tsd/test_tsd_match.sh, cases 5 and 6 (commit cc1f3ac).
  • add_polyA.py counts a tail found with or without the TSD copy trimmed. When the TSD search reported a run of the tail base as the duplication, trimming it removed the tail: from d1dfd7b on, the 17 single-hit records above (15 Alu, 1 L1, 1 SVA) read polyA=FALSE although each has a tail at the expected end. They keep polyA=TRUE again. On the same run, 114 records (96 Alu, 17 L1, 1 SVA) that failed --human on polyA alone in earlier versions pass once their TSD copy is trimmed, and no record of that run's pangenome.human.vcf is lost. Test: test/tsd/test_add_polyA.sh (commit 19da5f8).

PanGenie and Nextflow 26 (PR #101, 2026-09-14)

  • PanGenie genotyped one sample and stopped: the reference reached the process as a queue channel with one item (397fe2b).
  • merge_vcfs.py stopped on records that shared a position with different or missing IDs (issue #93). pangenie_graph_vcf.py prepares the graph input and publishes 4_Genotyping/pangenie_graph_variants.tsv, which maps every pangenome.vcf allele to the ID PanGenie writes in INFO/ID (b9b5b5c).
  • truvari_merge failed on a missing file with two or more input VCFs (29341a3).
  • main.nf and module/main.nf compile under Nextflow 26's strict syntax (4605630).

polyA and PanGenie contig headers (PR #107, 2026-09-19)

  • INFO/polyA read FALSE on every record whenever two or more caller VCFs went through the truvari merge. truvari_merge strips the upstream INFO fields and puts only SVLEN back, so SVTYPE had gone by the time add_polyA.py ran and it scanned an empty string. The --human filter selects Alu, L1 and SVA on polyA="TRUE", so pangenome.human.vcf lost those records (module/main.nf:546-550). add_polyA.py now takes the insertion polarity from len(ALT) - len(REF) when SVTYPE is absent (97a6d01).
  • --graph_method pangenie, the default, produced no genotypes. PanGenie writes its output with no ##contig lines, and the bcftools norm -Oz on the next line cannot BCF-encode a record whose CHROM is not in the header. samtools faidx and bcftools reheader -f now run first (5ad9bea).

HERV-K consolidation and the genotyping back end (issue #100)

  • hervk_reconcile accepted giraffe genotypes only, so a --human run on any other back end genotyped every sample and then stopped at the consolidation. It now accepts graphaligner and precomputed genotypes, which come from vg call as giraffe's do, and a --human run with PanGenie genotyping stops at launch unless it has --hervk_reconcile false (25e417a).

Fixes on the documentation branch

  • A command-line --flag false read as true under Nextflow 26's parser; --genotype false ran genotyping. Every boolean parameter is read through isOn() (cfaff1e).
  • test/human_filter/run_test.sh did not read the single-quoted human_hervk_ids default and failed on every HERV-K record.

  • --tsd_win reaches the matcher; scores were computed against a fixed 30 bp (4c8e385).

  • PanGenie genotypes are split to one ALT per record before the merge; the normalized file was written but never emitted (46c0726).
  • make_graph's graphaligner branch interpolated $PWD as a Groovy variable and could not run (9b77788).
  • --vcf beside a discovery flag, --graph_method precomputed without its inputs, and --graffite_vcf --human are refused with a message instead of failing on an undefined channel (159de3f, b6a9487, 9bc505b). A guard for an empty panmethyl/ submodule (959044b) was dropped again when main.nf moved to strict syntax, which allows no statement before an include; Nextflow's own message names the missing module file.
  • svs, graph, graph_alignments, vcfs, lifted and bed are declared in nextflow.config (4187750); hervk_annotate and hervk_reconcile have resource parameters (f0698ec); manifest.version matches version.txt (e9f4f74); merge_VCFs no longer passes publishDir an unknown option (4b917b4).
  • GraffiTE.def installs truvari, ULTRA, pyfaidx and pypy3, which the pipeline calls and the published image already had (9cfaf15, recipe not rebuilt).
  • Six unused scripts removed from bin/ (ebaf837).

10/01/25

Commit 1cbebbf.

  • Removed -nolow from the RepeatMasker call. It could produce spurious hits on low-complexity regions of some TE consensus sequences and annotate tandem repeats as TEs. Do not use -nolow with RepeatMasker outside debugging.

11/07/24

Commit 76537f9.

  • New --tsd_time option for the time request of the TSD processes under the cluster profile. Default 1h. Code update only, no new image.

10/22/24

Commit 47ad044. Pull request by Han-Cao.

  • Faster annotation of large VCFs.
  • Coordinates in the SVA-VNTR module changed from 1-based to 0-based. Code update only.

10/21/24

  • RepeatMasker coordinates transformed from 1-based to 0-based to match the BED standard and measure hit lengths exactly. Fixes issue #43.

06/24/24

  • New option --break_scaffolds, which splits each scaffold into contigs at every run of N, however short. With some scaffolded genomes minimap2 fails with [E::parse_cigar] CIGAR length too long at position ..., a limit of htslib and the SAM specification; breaking scaffolds at N stretches avoids it.

06/17/24

  • New compatible class names in the TE library: MITE, TIR and IS, as in >TEnameX#MITE, >TEnameY#TIR/Mariner or >TEnameX#IS. Earlier versions discarded them.
  • Accepted Class names in >TEname#Class/Superfamily: LINE, LTR, SINE, RC/Helitron (treated as DNA/RC), DNA, TIR, MITE, Retroposon, IS, Unknown, Unspecified. An entry without a class is treated as Unknown. Any name and superfamily is accepted when the class is one of these.

02/13/24

  • Versions are identified by commit ID from here on.
  • The L1 inversion flag (--mammal) had stopped working; fixed.
  • Winnowmap available as an alternative to minimap2 with --aligner winnowmap.

beta 0.2.5 (09-11-23)

  • Fixed a VCF annotation error when two distinct variants shared the same POS; annotations are now distinct by variant sequence.
  • Cleaner GraphAligner VCF outputs.

beta 0.2.4 (06-27-23)

  • Refactored to Nextflow DSL2.

beta 0.2.3 (02-21-22)

  • SV discovery from assemblies and long reads together; the calls from both are merged before filtering and genotyping.
  • Parameters with defaults to control time, CPU and memory for each process, for -profile cluster.
  • Variants are merged only within the same SVTYPE.

beta 0.2.2 (02-01-22)

  • sniffles2 as an alternative to svim-asm, from long reads (--longreads) instead of an assembly. At this release the two callers could not be combined.
  • --asm_divergence <asm5/asm10/asm20> sets the minimap2 preset ahead of svim-asm; default asm5.
  • time, cpu and memory directives per process.

beta 0.2.1 (11-30-22)

  • --RM_vcf and --RM_dir to start at the TSD search from the output of a RepeatMasker run (2_Repeat_Filtering), for runs that crashed in the TSD search and cannot be resumed.
  • TSD search in batches of 100 variants, which divides the number of temporary directories by 100 and spares the inode quota; batches run in parallel.

beta 0.2 (11-11-22)

  • Two new read aligners for genotyping, giraffe and GraphAligner: --graph_method [pangenie/giraffe/graphaligner], default pangenie.
  • --vcf: a sequence-resolved VCF as input, skipping genome alignment.
  • --graffite_vcf: a 3_TSD_search/pangenome.vcf from an earlier run, skipping everything but read mapping.
  • Dropped the biomartr dependency.

beta 0.1 (11-02-22)

  • First release.