v1.0 vs v1.1¶
Applies to GraffiTE v1.1
Verified against v1.1.0.0 at commit bf51777. The
2024 paper describes the code at the
publication tag, which predates v1.0.
The paper (Groza, Chen, Wheeler et al., Nature Communications 2024) describes the code at the
publication tag, commit 8f44c22 of
2024-05-29. main has 111 more commits after the tag, up to f37674b of 2026-01-15, and that
last commit before v1.1 is v1.0, tagged v1.0.0.0. If you read the README on main before the
v1.1 release, you read about v1.0. To run v1.0, pass -r v1.0.0.0 to nextflow run. This site
documents v1.1.
Each table below has a column for the paper, one for v1.0 and one for v1.1. The READMEs of the
first two are at the publication
and v1.0.0.0 tags.
New in names the version that brought a change: v1.0 for a change made after the paper,
which v1.1 keeps; v1.1 for a change in this release; v1.0, v1.1 for a row that changed
twice. none marks a row that is the same in all three. Citations without a prefix point to
the v1.1 code, and those prefixed publication: or f37674b: to the paper or v1.0 code.
Command line¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Read sets to genotype | v1.1 | --reads reads.csv publication:main.nf:8 |
Same as the paper f37674b:nextflow.config:33 |
--genotype_with reads.csv nextflow.config:43. A command line with --reads is not an error: Nextflow stores the parameter, the v1.1 code never reads it, and the pipeline looks for the default reads.csv instead. The hyphenated --genotype-with behaves the same way: Nextflow stores it as genotypeWith and genotype_with keeps its default (checked with Nextflow 24.10.5 and 26.04.6). |
--mammal |
v1.1 | Turns on the L1 5′ inversion and SVA VNTR checks publication:main.nf:313-315 |
Same as the paper f37674b:main.nf:319-321 |
Accepted and inert. Both checks run on every dataset; the script only prints a notice bin/repmask_vcf.sh:165-169. |
| Discovery inputs | v1.0, v1.1 | --assemblies (svim-asm), --longreads (Sniffles2), --vcf (an SV VCF you already have) |
Adds --bams, long reads already aligned to the reference f37674b:main.nf:563-566, and the lr:hq read type in --longreads f37674b:main.nf:117-120 |
Adds --pav (the PAV caller) and --svs (per-sample VCFs merged with the callers' output) main.nf:114-123 |
| Restarting from earlier output | v1.0, v1.1 | --RM_vcf with --RM_dir (the filtered VCF and its repeatmasker_dir) start a run at the TSD search, and --graffite_vcf at genotyping publication:main.nf:571-573,605 |
--RM_vcf removed. --RM_dir takes a whole 2_Repeat_Filtering directory, one subdirectory per contig f37674b:main.nf:591-599 |
--RM_dir as in v1.0. Genotyping can also start from a graph, from alignments or from vg call VCFs: --graph, --graph_alignments, --vcfs with --graph_method precomputed main.nf:206-232. See Resuming and skipping work. |
| Aligner | none | minimap2, or winnowmap with --aligner winnowmap, for assemblies and long reads publication:main.nf:22,131-137,157-164 |
Same as the paper | Same as the paper module/main.nf:57-64,86-94 |
--break_scaffolds |
v1.0, v1.1 | not available | Splits each assembly at every run of N before alignment f37674b:bin/breakgaps.py:12 |
Splits only at runs of at least --break_scaffolds_min_gap N, default 10 nextflow.config:49, bin/breakgaps.py:14-15 |
| Human data | v1.1 | none | none | --human, its subfamily whitelists and thresholds, and the HERV-K classifier parameters nextflow.config:65-122. See Human mobile element insertions. |
| Methylation | v1.1 | none | none | --epigenomes, --code, --motif, --lifted, --bed nextflow.config:33,169-172. See Stage 3.2: epigenetic mapping. |
--vcf with a discovery flag |
v1.1 | Not checked. Nextflow stopped with an error naming a discovery process that --vcf had skipped publication:main.nf:545,577-582 |
Same as the paper f37674b:main.nf:551,603-608 |
Refused at launch with a message main.nf:46-49 |
Every current parameter is on Parameters.
SV search¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Merging the calls | v1.1 | SURVIVOR merges the svim-asm calls, then merges them with the Sniffles2 calls when both inputs are given publication:main.nf:244,265 |
Same as the paper f37674b:main.nf:214,235 |
truvari: bcftools merge of every caller's VCFs, then truvari collapse; a single VCF goes through unchanged module/main.nf:222-223,246,260-261. v1.1 has no --merge_svim_sniffles2_* parameters. |
| Merged call set | v1.1 | 1_SV_search/svim-asm_variants.vcf (assemblies) or sniffles2_variants.vcf (long reads), and svim-sniffles_merged_variants.vcf when both ran publication:main.nf:204,244,290 |
Same as the paper | One file, 1_SV_search/SVs.vcf module/main.nf:201 |
| Sniffles2 and short contigs | v1.1 | Run without --all-contigs publication:main.nf:184,203 |
Same as the paper | --all-contigs: without it, Sniffles 2.8 and later skip every contig shorter than 1 Mb module/main.nf:108-113,131 |
Annotation¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Grouping RepeatMasker hits | v1.0, v1.1 | OneCodeToFindThemAll joins RepeatMasker fragments into elements and keeps only hits classed LINE, SINE, LTR, DNA, RC, Retroposon or Unknown publication:bin/repmask_vcf.sh:35-41, publication:bin/one_code_to_find_them_all.pl:440 |
OneCode as in the paper, with TIR, MITE and IS added to the classes it keeps and RC dropped from them, so OneCode skips hits classed RC/Helitron f37674b:bin/one_code_to_find_them_all.pl:443 |
OneCode removed. annotate_vcf.R groups hits by RepeatMasker's own ID and counts every class except Simple_repeat and Low_complexity, satellites included bin/repmask_vcf.sh:108, bin/annotate_vcf.R:96-114. n_hits is the number of these groups and fragmts the number of fragments in each. |
| Repeat-span filter | v1.1 | total_match_span > 0.80, fixed publication:main.nf:320 |
Same as the paper f37674b:main.nf:326 |
total_repeat_span (RepeatMasker hits plus ULTRA tandem repeats, non-redundant) against --repeat_span_cutoff, default 0.80 nextflow.config:61, module/main.nf:661 |
| Tandem repeats | v1.1 | not annotated | not annotated | ULTRA runs on every variant sequence; ULTRA_TR and ULTRA_TR_span fields bin/repmask_vcf.sh:31-32,92 |
| polyA tails | v1.1 | not annotated | not annotated | polyA=TRUE or FALSE on records with at most one hit, NA on records with more bin/add_polyA.py:103-116 |
| L1 5′ inversion | v1.1 | mam_filter_1=5P_INV:plus or 5P_INV:minus, only with --mammal publication:bin/repmask_vcf.sh:91-99 |
Same as the paper f37674b:bin/repmask_vcf.sh:95-113 |
L1_5PINV on every record, holding the RepeatMasker ID of the inverted hit or None bin/annotate_vcf.R:119,177 |
| SVA VNTR-only polymorphisms | v1.1 | mam_filter_2=VNTR_ONLY:<family>:<start>:<end>, only with --mammal publication:bin/repmask_vcf.sh:101-116 |
Same as the paper f37674b:bin/repmask_vcf.sh:115-131 |
The hit gets a (VNTR_only) suffix in repeat_ids and the class Simple_repeat; no separate field bin/annotate_vcf.R:151-156 |
RepeatMasker -nolow |
v1.0 | On publication:bin/repmask_vcf.sh:30 |
Removed on 2025-10-01 (1cbebbf); the README gives the reason as spurious hits on low-complexity stretches of some TE consensus sequences f37674b:bin/repmask_vcf.sh:30, f37674b:README.md:35-36 |
As in v1.0 bin/repmask_vcf.sh:75 |
| RepeatMasker coordinates | v1.0 | 1-based starts used as 0-based, so match_lengths came out 1 bp short per hit and total_match_length 1 bp short per merged interval publication:bin/annotate_vcf.R:64, publication:bin/repmask_vcf.sh:73 |
0-based (bd2f1de, 2024-10-21); the SVA VNTR check followed the next day (af729bc) f37674b:bin/annotate_vcf.R:24, f37674b:bin/repmask_vcf.sh:73,119,122 |
0-based for total_match_length and the spans bin/repmask_vcf.sh:114 |
| Subsets | v1.1 | none | none | pangenome.trusted.vcf (or pangenome.human.vcf with --human) and presence-absence TSVs beside pangenome.vcf module/main.nf:519-525 |
Target site duplications¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Records searched | v1.1 | n_hits=1, plus two-hit L1s flagged 5P_INV (which needs --mammal), minus SVA VNTR-only records publication:bin/prepTSD.sh:21-24 |
Same as the paper | Every record that passes the repeat-span filter bin/prepTSD.sh:43-44,51-52 |
Window, --tsd_win |
v1.1 | Sets how much of each end of the variant is compared. The reference flanks have a fixed width that --tsd_win does not change publication:bin/prepTSD.sh:27-29,42 |
Same as the paper f37674b:bin/prepTSD.sh:27-29,42 |
Sets the reference flanks, the variant ends, and the junction column the score is measured from bin/prepTSD.sh:43-44,56, bin/TSD_Match_v2.sh:9,69 |
| Method | v1.1 | blastn, word size 4, between the 5′ fragment (flank and start of the variant) and the 3′ fragment (end of the variant and flank), with the masked element cut out and poly(A) or poly(T) runs shortened publication:bin/TSD_Match_v2.sh:43-44,51-86,140 |
Same as the paper | Exact matches of 4 to 20 bp, found by exact_match.py bin/TSD_Match_v2.sh:48-49,69 |
| Pass rule | v1.1 | Both copies within 5 bp of the junction, with at most one mismatch or gap, or a mismatch rate no higher than the element's RepeatMasker divergence publication:bin/TSD_Match_v2.sh:172 |
Same as the paper | score = min(a, b) ≤ 5, the distance of the copies from the junction; a candidate under 6 bp passes only with a score of 0.5 or less bin/TSD_Match_v2.sh:69,142 |
| Output | v1.1 | TSD=<5′ copy>,<3′ copy> on records whose search passed publication:main.nf:397,401 |
Same as the paper f37674b:main.nf:397,401 |
The same field, declared Number=2, in upper case bin/tsd_annotate_vcf.sh:23,32 |
The scoring is on Target site duplications.
Genotyping¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Read files | v1.1 | FASTQ publication:main.nf:609 |
FASTQ | FASTQ or BAM; GraffiTE converts a BAM to FASTQ first main.nf:192-197 |
| Giraffe | v1.0, v1.1 | Short reads, passed as interleaved pairs (-i) with no preset publication:main.nf:484 |
A preset comes from the type column of the read CSV: pb and hifi give hifi, ont gives r10, anything else the default preset with -i f37674b:main.nf:480-488,634-651 |
Same presets main.nf:190; make_graph indexes the graph for both short-read and long-read Giraffe module/main.nf:790 |
vg call |
v1.1 | vg call -a publication:main.nf:507 |
Same as the paper f37674b:main.nf:512 |
vg call -a -A, then bcftools norm -m- to one ALT per record module/main.nf:874-875 |
| Sex chromosomes | v1.1 | no ploidy setting | no ploidy setting | -R chrX:1,chrY:1: haploid calls on chrX and chrY by contig name module/main.nf:874. See Stage 3.1: genotyping. |
| PanGenie | v1.1 | Run on pangenome.vcf directly; genotypes merged as written publication:main.nf:423 |
Same as the paper f37674b:main.nf:423 |
PanGenie-index built from a bcftools norm -m+ VCF, and the genotypes split back to one ALT per record before the merge module/main.nf:728,732,768 |
Output files¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
2_Repeat_Filtering/ |
v1.0 | One directory publication:main.nf:299 |
One numbered subdirectory per contig f37674b:main.nf:309 |
As in v1.0 module/main.nf:638 |
| Graph | v1.0, v1.1 | Not published | GraffiTE_graph/ with giraffe or graphaligner f37674b:main.nf:433 |
GraffiTE_graph/, now with index.gfa module/main.nf:774,791,799 |
| Graph alignments | v1.1 | Not published | Not published | GraffiTE_alignments/, a GAF and a pack file per sample module/main.nf:827,833 |
4_Genotyping/ |
v1.1 | Per-sample VCFs and GraffiTE.merged.genotypes.vcf.gz |
Same as the paper | Also GraffiTE.merged.genotypes.trusted.vcf.gz and its presence-absence table (not with --human), genotyping_record_audit.tsv, and pangenie_graph_variants.tsv on PanGenie runs module/main.nf:715,918,939-941 |
| Version in VCF headers | v1.1 | none | none | ##GraffiTE_version=1.1.0.0 module/main.nf:630-633,903 |
Output files describes every file.
Running¶
| New in | Paper | v1.0 | v1.1 | |
|---|---|---|---|---|
| Container image | v1.1 | library://cgroza/collection/graffite:latest (Sylabs) in every profile; -profile cloud names the executor aws publication:nextflow.config:9,14,19-20 |
Same as the paper f37674b:nextflow.config:9,14,19-20 |
docker://cgroza/graffite:1.1.0.0 from Docker Hub; -profile cloud runs on AWS Batch with Docker nextflow.config:10,15,21-26. See Container. |
/tmp in the container |
v1.1 | $(pwd) bound to /tmp; changing it meant editing nextflow.config publication:nextflow.config:4 |
Same as the paper | --container_tmp names the directory, $(pwd) by default nextflow.config:51,181 |
| Resource parameters | v1.0, v1.1 | *_memory, *_threads and *_time per process |
Adds --tsd_time, --merge_vcf_time and --vg_call_time, and defaults for --make_graph_time (6h), --make_graph_memory (40G) and --repeatmasker_memory (10G) f37674b:nextflow.config:52-86 |
Drops --merge_svim_sniffles2_*; adds --pav_memory, --pav_time and the --hervk_* resources; --pangenie_memory defaults to 32G nextflow.config:148. See Resources and scaling. |
Modes from the paper¶
The README at the publication tag lists the nine modes the paper refers to
publication:README.md:322-334. This is that table with v1.1 arguments. With the
paper code or v1.0, write --reads where the table has --genotype_with.
| Mode | v1.1 arguments | Discovery from | Genotyped with |
|---|---|---|---|
| GT-sv | --assemblies a.csv --genotype false |
assemblies | nothing |
| GT-sn | --longreads lr.csv --genotype false |
long reads | nothing |
| GT-svsn | --assemblies a.csv --longreads lr.csv --genotype false |
both | nothing |
| GT-sv-PG | --assemblies a.csv --genotype_with sr.csv |
assemblies | short reads, PanGenie |
| GT-sn-PG | --longreads lr.csv --genotype_with sr.csv |
long reads | short reads, PanGenie |
| GT-svsn-PG | --assemblies a.csv --longreads lr.csv --genotype_with sr.csv |
both | short reads, PanGenie |
| GT-sv-GA | --assemblies a.csv --genotype_with lr.csv --graph_method graphaligner |
assemblies | long reads, GraphAligner |
| GT-sn-GA | --longreads lr.csv --genotype_with lr.csv --graph_method graphaligner |
long reads | long reads, GraphAligner |
| GT-svsn-GA | --assemblies a.csv --longreads lr.csv --genotype_with lr.csv --graph_method graphaligner |
both | long reads, GraphAligner |
--graph_method pangenie is the default in all three versions, so the PG rows leave it out.
Resource figures¶
We added a table of measured resources (human, Cannabis sativa and Zea mays) to the README
on main on 2024-09-06 (d833ca9), after the paper release. Read it in the
v1.0 README;
this page does not repeat it. The README at the publication tag gives only rough figures for
human chromosome 1 and Drosophila melanogaster. The table went into the README before we split
RepeatMasker by contig (v1.0) and before we added ULTRA to that step and an index to PanGenie
(v1.1), so its RepeatMasker and PanGenie rows may not hold for either version. For v1.1, see
Resources and scaling.