Skip to content

docs: clarify ext.volumes vs staged path inputs for reference data (#49) - #50

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/49-data-delivery-models
Jun 14, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/49-data-delivery-models

Conversation

@scttfrdmn

Copy link
Copy Markdown
Collaborator

Addresses #49. The filer correctly flags this isn't a regression — ext.volumes does what it says — it's about which data-delivery model it fits. I confirmed in the code there's no viable fix, so this is documentation.

Why there's no code fix

ext.volumes mounts an EBS volume at a fixed path on the task. An nf-core staged path input (the db_path pattern, e.g. taxprofiler's databases.csv) is incompatible for two reasons, both outside nf-spawn's reach:

  1. Head-side validation. The pipeline validates db_path exists on the head node during init — before any task launches. A task-only volume mount isn't visible there, so validation aborts the whole run (SchemaValidationException). nf-spawn never gets control to intervene.
  2. Nextflow stages path inputs itself. A path db input is copied head→task work dir by Nextflow; there's no hook to say "already mounted, skip staging." The staged copy collides with the mount.

Neither is something the executor can change.

What this PR does

Adds a Delivering reference data README section documenting the two models and which pipeline style each fits:

Also flags the caveat inline in the ext.volumes row of the options table.

Confirms the filer's own false-positive note: Kraken2 "worked" earlier only because the AMI still had the DB baked at the same path; MetaPhlAn (no baked copy) exposed it.

Docs-only; no version bump (rides the next release).

ext.volumes mounts an EBS volume at a fixed path on the TASK, which fits data a
process reads directly from that path — but not an nf-core staged `path` input
(the db_path pattern). Such pipelines validate db_path on the HEAD node at init
(a task-only mount isn't visible there → validation aborts) and stage the input
head→task themselves (colliding with the mount). Neither is something nf-spawn
can fix — it's inherent to the head/task split + Nextflow's staging model.

Adds a "Delivering reference data" README section documenting the two models:
ext.volumes for self-mounted data, and an s3:// db_path (localized per-task via
the #37 input staging) as the recommended pattern for staged-input DBs.
No code change.
@scttfrdmn
scttfrdmn merged commit e9cc976 into main Jun 14, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the docs/49-data-delivery-models branch June 14, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant