Troubleshooting¶
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.
Nextflow 26 rejects main.nf with "Unexpected input"¶
You are running a checkout older than commit 4605630 (2026-09-10, on v1.1dev since
2026-09-15) on Nextflow 26, whose default parser is the strict one. Update to a newer commit, or
select the legacy parser for that checkout:
Nextflow 26's default parser passes a command-line --flag false as the string "false", which
Groovy treats as true. Before commit cfaff1e, GraffiTE ran genotyping on Nextflow 26 even with
--genotype false. Since that commit GraffiTE reads every boolean parameter through isOn()
module/main.nf:1-9, which returns the same value under both parsers.
Messages the workflow prints on purpose¶
Each of these stops the run before any process starts.
| Message | Cause | What to do |
|---|---|---|
No input given. Pass one of --longreads, --bams, --assemblies, --pav, --svs (discovery), --vcf (a merged SV VCF), --RM_dir (RepeatMasker output of an earlier run) or --graffite_vcf (a pangenome.vcf from an earlier run). main.nf:151 |
No entry flag on the command line. | Pick one on Choosing your inputs. |
--vcf cannot be combined with --assemblies. Pass --vcf alone, or drop it and use --svs to add your own per-sample VCFs to the discovery merge. main.nf:46-49 |
--vcf replaces the discovery merge, so a discovery flag beside it has no merge to feed. |
Use --svs if you want your VCF merged with caller output. |
--graph_method precomputed builds nothing itself: it needs --graph (...) and either --vcfs (...) or --graph_alignments (...). main.nf:53-56 |
precomputed reuses a graph and alignments from an earlier run and was not given both. |
Pass --graph plus --vcfs or --graph_alignments, or choose another method. |
Unsupported --graph_method. --graph_method must be pangenie, giraffe, graphaligner or precomputed. main.nf:263 |
A misspelled method. | One of the four. |
--graffite_vcf skips discovery, and HERV-K reconciliation needs the hervk_annotate outputs discovery produces. Pass --hervk_reconcile false, or start from --RM_dir instead of --graffite_vcf. main.nf:61-63 |
--human consolidation reads files that only the annotation stage writes. |
Either option in the message. |
With --human, hervk_reconcile consolidates HERV-K loci in vg call genotypes, and --graph_method pangenie does not produce them. Pass --hervk_reconcile false to genotype with PanGenie, or choose --graph_method giraffe, graphaligner or precomputed. main.nf:65-71 |
--human with PanGenie genotyping, the default --graph_method; the reconciler reads vg call genotypes only. |
Either option in the message. |
Error main.nf:12:1: Invalid include source: '<dir>/panmethyl/module.nf' main.nf:12 |
A clone made without --recurse-submodules; the panmethyl submodule directory is empty. This one is Nextflow's own message. |
git submodule update --init in the clone. nextflow pull clones do not hit this. |
A process cannot see an input file¶
Every container runs with --contain --bind $(pwd):/tmp nextflow.config:181.
Files outside the launch directory are only visible if given by absolute path, and /tmp
inside the container is the directory the task runs in. Symptoms are No such file inside a
process for a file that exists on the host, or a full filesystem when the filesystem holding
work/ is small. Use
absolute paths, and bind a larger scratch directory to /tmp if needed; see
Installation.
TSD_summary.txt is empty and no record has INFO/TSD¶
On v1.1dev before commit 884afa8 the flank extraction failed without an error on a
gzip-compressed reference, and a missing exact_match.py read as no hit on every variant. Both
now stop the run instead. If your copy is older than that commit, update it
(Installation); test/tsd/test_tsd_chain.sh
checks the chain.
variant IDs must be no greater than 50 characters¶
The annotation script stops on any variant ID longer than 50 characters
bin/repmask_vcf.sh:41-45, the length RepeatMasker keeps intact in
its output. IDs written by the pipeline's own callers are short. The message appears with
--vcf, whose IDs pass through unchanged module/main.nf:205-207,
or with --svs: rename them before the run.
RepeatMasker runs out of memory or time¶
Stage 2 is split by contig module/main.nf:495-508 and each piece runs
with --repeatmasker_memory (default 10G) and --repeatmasker_time (default 12h)
nextflow.config:151-153. Raise them, and raise
--repeatmasker_threads, for large contigs or large libraries. Nextflow's message when a job is
killed by the scheduler can be misleading; check the .command.log in the failing work
directory. For maize-sized, repeat-rich genomes users have requested up to 120 h and 400 GB per
process, with long-read alignment the most demanding step. See
Resources and scaling.
3_TSD_search/pangenome.vcf missing after a finished run¶
Check whether tsd_search and tsd_report ran. When the container cannot write to /tmp the
pipeline can skip them and still report success. /tmp inside the container is the task's own
directory by default; point --container_tmp at a writable directory instead, see
Paths and /tmp.
The other way to get here is a run where no chunk survived annotation. Stage 2 is split one piece
per contig module/main.nf:495-508, and a chunk whose records all fail
--repeat_span_cutoff drops out by design. If every chunk drops out, concat_repeatmask never
runs and nothing says so. 2_Repeat_Filtering/*/genotypes_repmasked_filtered.vcf holds the
per-chunk record counts.
cgroza/GraffiTE contains uncommitted changes -- cannot pull from repository¶
The pipeline cached under ~/.nextflow/assets/cgroza/GraffiTE/ was edited in place. Delete it
and pull again; see Installation.
Usually the edit was to nextflow.config, to bind a scratch directory to /tmp. That is what
--container_tmp is for; use it and leave the cached copy alone.
A full-length LTR element shows n_hits greater than 1¶
RepeatMasker annotates the LTR and the internal region of an LTR retrotransposon as separate
hits when they are separate entries in the library, and the pipeline reports what RepeatMasker
finds. Such an element has n_hits=2 or 3 and is left out of the subsets that require a
single hit (pangenome.trusted.vcf, and pangenome.human.vcf apart from the HERV-K pair rule
module/main.nf:17,550,570-571). It stays in pangenome.vcf with all its
hits listed. A library entry that holds the full element as one consensus gives one hit.
Slow runs¶
Two steps dominate: samtools sort after minimap2, whose threads and memory are set by
--stSort_t and --stSort_m, and RepeatMasker with a large library and many SVs. -with-report report.html
shows where the time went and which requests to change.
A tool is missing, or a fixed bug is still there¶
If a run fails on a tool the image is supposed to carry, or a bug fixed in a rebuilt image is
still happening, check the image you are running before anything else. Nextflow's Singularity
cache is keyed on the image name, so it reuses an old cgroza-graffite-latest.img after the
tag is rebuilt, and says nothing about it.
Compare that with the registry. If it differs, delete the cached file and let Nextflow pull again; see Updating.
Getting help¶
Open an issue at https://github.com/cgroza/GraffiTE/issues. It is the only channel the
authors watch, and someone may have hit the same thing. Include the commit you run
(nextflow info cgroza/GraffiTE), the command line, and the .command.log of the failing task.