Example changes how to stage inputs/output modules in a more 'nextflowy' way #1
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.
I have run out of time, but I worked a bit on updating the Checkm2 module (my local database is a different version and ID on't have time to donwload the new one down)
But essentially I switch the database input(s) to either be a user-supplied path, and if not supplied, then let the respective module download it.
Then in the module switch the two
valinputs to simply just the database files themselves and using thepathvariable. E.g.,CHECKM2module won't start until theGTDBTK2database is recieved. Nextflow will (by default) just symlink the database into without needing a separate value. But as you've usedpathinstead ofvalor the use of aparamthe used database, Nextflow will have staged correctly the input files in a way it 'likes' - even if the files are on another file system.You should also make sure not to use
outdirin the module itself, and rely onpublishDiras specify inmodules.config, so Nextflow itself can correctly publish these!PR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).