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) andULTRA_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 oftotal_match_spanalone. Long insertions where a TE sits next to a polyA or tandem tail are kept.--repeat_span_cutoff(default0.80) sets the threshold. - polyA tail detection:
polyA=TRUEorFALSEon single-hit records andNAwheren_hitsis above 1, after trimming an exact TSD copy from the variant end. --mammaldiscontinued. 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, orNone) in place ofmam_filter_1=5P_INV. - SVA hits that fall inside the VNTR region are renamed with a
(VNTR_only)suffix and reclassified fromRetroposon/SVAtoSimple_repeat;mam_filter_2removed. - OneCodeToFindThemAll removed from the annotation step; the RepeatMasker
.outis read directly. concat_repeatmaskaccepts a gzip-compressed--referenceand re-compresses it to BGZF.
Genotyping
GraffiTE.merged.genotypes.trusted.vcf.gzandGraffiTE.merged.genotypes.presence-absence_trusted.tsv, the counterpart ofpangenome.trusted.vcffor 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 perpangenome.vcfALT 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-falso left-aligns.pangenome.vcfwas left-aligned only when two or more caller VCFs went through the truvari merge, so on--vcf, single-caller and--graffite_vcfruns an insertion inside a homopolymer came back at a shifted position and lost its whole annotation at the merge.-Nkeeps the position.
Contigs with nothing to mask
- The run no longer stops on a contig whose records are all non-indel.
tsd_prepandtsd_searchdropped acpof the RepeatMasker directory that nothing had read since v1.0, andrepmask_vcf.shnow runs underset -ewith an explicit path for a chunk with nothing to mask (issue #93).
Execution
--container_tmpbinds a directory of your choice to/tmpinside the container, in place of editingsingularity.runOptionsin the cached copy ofnextflow.config(which then breaksnextflow pulland-latest).- The image is pinned: every process but
pav_asmrunsdocker://cgroza/graffite:1.1.0.0, built fromDockerfile. Each release has its own tag, andlatestfollows the newest release.GraffiTE.defis unmaintained. -profile cloudruns on AWS Batch, with theawsbatchexecutor and Docker in place of Singularity. Before, it named an executor,aws, that Nextflow does not have.pav_asmcannot run there. Not tested.--pangenie_memorydefaults to32G(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.vcfand matching*.presence-absence*.tsvtables next topangenome.vcf; trusted records carryFILTER=PASS. Parameters--trusted_min_svlen(250),--trusted_max_ultra_span(0.6),--trusted_ignore_filter. The trusted subset has no polyA requirement, and the--humansubset has one.--humanrebuilt frompangenome.vcfby its own filter, outputpangenome.human.vcf(waspangenome.trusted.human.vcf);pangenome.trusted.vcfis not written on--humanruns. The filter keepsAluY*,L1HS,SVA_D/E/Fand the HML-2 lineage, and admits theHERVK-int+SVAproviral pattern up to--hervk_pair_max_hitshits (PR #98). Whitelists and thresholds are parameters;human_filter_summary.txtreports what was kept and dropped.
Known limitation: the subsets truncate SVA VNTR polymorphisms
--trusted_min_svlenand--human_min_svlendefault 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,141SVA_*(VNTR_only)records; the median change is 126 bp.--human_sva_ids(^SVA_[DEF]) is matched againstrepeat_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.vcfor 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_idsfrom 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 theARCH_INT_PERMinternal-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.vcfin discovery andGraffiTE.merged.genotypes.human.vcf.gzafter genotyping, with reports;--hervk_reconcile,--hervk_reconcile_vcfto consolidate an existing genotyped VCF with--genotype false. hervk_candidates.vcfholds the full candidate set;--hervk_max_svlen,--hervk_ref_flank,--hervk_locus_window,--hervk_ref_annotation,--hervk_strict,--hervk_config.human_hervk_idsaccepts bothHERVK-intand Dfam's bareHERVKfor 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 callreceives-a -Aon every graph method, and ploidy 1 onchrXandchrY.- Precomputed graph alignments:
--graph_alignments(CSVsample,gaf,pack), published toGraffiTE_alignments/. --break_scaffoldssplits only at runs of at least--break_scaffolds_min_gapN, 10 by default. It used to split at everyN, which cut any insertion carrying one; on the synthetic test set it lost 14 of 29 records (2e13c68).--epigenomes: the panmethyl submodule moves tof0aa2c0(0fba182).annotate_vcf.pystopped with aTypeErroron a record whose genotype is missing altogether (GTis.); it now leaves that record out of the sample's annotated VCF.tagtobedexited before its writer thread had finished, sobamtags_to_BEDkept a different subset of each BAM's calls from run to run. Thetagtobedfix (panmethyl#3) is in the image.DockerfileandGraffiTE.defnow check out the submodule's commit after cloning panmethyl, where they used to build from its default branch (2cdb8c4).
TSD chain
prepTSD.shreads the flanks through htslib, re-compresses a gzip reference to BGZF, and stops the run instead of writing an empty flank file; a missingexact_match.pyis an error rather than no hits;add_polyA.pysplits the two-copyTSDvalue before trimming (in a pipeline run, only fromd1dfd7bon; see below). Test:test/tsd/test_tsd_chain.sh(commit884afa8).TSD_Match_v2.shmeasured start offsets fromWINinstead ofWIN + 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 fromWIN + 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(commitd268d93).- In a pipeline run
add_polyA.pytrimmed no TSD before scanning for a tail.fix_vcf.pyrewritespangenome.vcfwith vcfpy, which wrote the comma of theNumber=1INFO/TSDas%2C, soadd_polyA.pycould not split the value into its two copies.INFO/TSDis nowNumber=2and keeps its comma, inpangenome.vcfand in theTSDcolumn of the presence-absence TSVs, andadd_polyA.pydecodes%2Cin VCFs from earlier runs. On the 5,819 records of a 20-genome human run, with thed268d93TSD calls, 17 single-hit records (15 Alu, 1 L1, 1 SVA) go frompolyA=TRUEtoFALSEand leavepangenome.human.vcf. Records outside that subset were not rerun, so any that turnTRUEare not counted. Test:test/tsd/test_tsd_chain.shnow runsfix_vcf.py(commitd1dfd7b). - 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,
polyAchanges on 2 of all 5,819 records, bothLTR/ERVK, for which no filter readspolyA. Test:test/tsd/test_tsd_match.sh, cases 5 and 6 (commitcc1f3ac). add_polyA.pycounts a tail found with or without theTSDcopy trimmed. When the TSD search reported a run of the tail base as the duplication, trimming it removed the tail: fromd1dfd7bon, the 17 single-hit records above (15 Alu, 1 L1, 1 SVA) readpolyA=FALSEalthough each has a tail at the expected end. They keeppolyA=TRUEagain. On the same run, 114 records (96 Alu, 17 L1, 1 SVA) that failed--humanonpolyAalone in earlier versions pass once theirTSDcopy is trimmed, and no record of that run'spangenome.human.vcfis lost. Test:test/tsd/test_add_polyA.sh(commit19da5f8).
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.pystopped on records that shared a position with different or missing IDs (issue #93).pangenie_graph_vcf.pyprepares the graph input and publishes4_Genotyping/pangenie_graph_variants.tsv, which maps everypangenome.vcfallele to the ID PanGenie writes inINFO/ID(b9b5b5c).truvari_mergefailed on a missing file with two or more input VCFs (29341a3).main.nfandmodule/main.nfcompile under Nextflow 26's strict syntax (4605630).
polyA and PanGenie contig headers (PR #107, 2026-09-19)
INFO/polyAreadFALSEon every record whenever two or more caller VCFs went through the truvari merge.truvari_mergestrips the upstream INFO fields and puts onlySVLENback, soSVTYPEhad gone by the timeadd_polyA.pyran and it scanned an empty string. The--humanfilter selects Alu, L1 and SVA onpolyA="TRUE", sopangenome.human.vcflost those records (module/main.nf:546-550).add_polyA.pynow takes the insertion polarity fromlen(ALT) - len(REF)whenSVTYPEis absent (97a6d01).--graph_method pangenie, the default, produced no genotypes. PanGenie writes its output with no##contiglines, and thebcftools norm -Ozon the next line cannot BCF-encode a record whose CHROM is not in the header.samtools faidxandbcftools reheader -fnow run first (5ad9bea).
HERV-K consolidation and the genotyping back end (issue #100)
hervk_reconcileaccepted giraffe genotypes only, so a--humanrun on any other back end genotyped every sample and then stopped at the consolidation. It now accepts graphaligner and precomputed genotypes, which come fromvg callas giraffe's do, and a--humanrun with PanGenie genotyping stops at launch unless it has--hervk_reconcile false(25e417a).
Fixes on the documentation branch
- A command-line
--flag falseread as true under Nextflow 26's parser;--genotype falseran genotyping. Every boolean parameter is read throughisOn()(cfaff1e). -
test/human_filter/run_test.shdid not read the single-quotedhuman_hervk_idsdefault and failed on every HERV-K record. -
--tsd_winreaches 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$PWDas a Groovy variable and could not run (9b77788).--vcfbeside a discovery flag,--graph_method precomputedwithout its inputs, and--graffite_vcf --humanare refused with a message instead of failing on an undefined channel (159de3f,b6a9487,9bc505b). A guard for an emptypanmethyl/submodule (959044b) was dropped again whenmain.nfmoved to strict syntax, which allows no statement before an include; Nextflow's own message names the missing module file.svs,graph,graph_alignments,vcfs,liftedandbedare declared innextflow.config(4187750);hervk_annotateandhervk_reconcilehave resource parameters (f0698ec);manifest.versionmatchesversion.txt(e9f4f74);merge_VCFsno longer passespublishDiran unknown option (4b917b4).GraffiTE.definstalls 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
-nolowfrom 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-nolowwith RepeatMasker outside debugging.
11/07/24¶
Commit 76537f9.
- New
--tsd_timeoption for the time request of the TSD processes under theclusterprofile. Default1h. 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 ofN, 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,TIRandIS, as in>TEnameX#MITE,>TEnameY#TIR/Marineror>TEnameX#IS. Earlier versions discarded them. - Accepted
Classnames in>TEname#Class/Superfamily:LINE,LTR,SINE,RC/Helitron(treated asDNA/RC),DNA,TIR,MITE,Retroposon,IS,Unknown,Unspecified. An entry without a class is treated asUnknown. 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)¶
sniffles2as an alternative tosvim-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 ofsvim-asm; defaultasm5.time,cpuandmemorydirectives per process.
beta 0.2.1 (11-30-22)¶
--RM_vcfand--RM_dirto 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], defaultpangenie. --vcf: a sequence-resolved VCF as input, skipping genome alignment.--graffite_vcf: a3_TSD_search/pangenome.vcffrom an earlier run, skipping everything but read mapping.- Dropped the
biomartrdependency.
beta 0.1 (11-02-22)¶
- First release.