Repository navigation
docs: clarify ext.volumes vs staged path inputs for reference data (#49) - #50
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #49. The filer correctly flags this isn't a regression —
ext.volumesdoes 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.volumesmounts an EBS volume at a fixed path on the task. An nf-core stagedpathinput (thedb_pathpattern, e.g. taxprofiler'sdatabases.csv) is incompatible for two reasons, both outside nf-spawn's reach:db_pathexists 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.pathinputs itself. Apath dbinput 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:
ext.volumes— data a process reads directly from a fixed mount path (a tool you invoke with--db /path). With an explicitpath/db_pathinput, and why.s3://db_path— for staged inputs (the nf-core norm): nf-spawn's Task instances don't stage Nextflow file inputs (only sync the task's own work dir) — breaks any process with a stagedpathinput #37 localizationaws s3 cps the declared input per-task, no volume, no head-side path. Recommended pattern, with the per-task download trade-off noted.Also flags the caveat inline in the
ext.volumesrow 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).