Instructions for creating a Nextflow pipeline from scratch. You may wish to use
this instead of the default template used by nf-core-tools
or perhaps you are
starting from an existing Nextflow pipeline that was created without
nf-core-tools
.
- Create an
.nf-core.yml
file. It can be empty. This is just so thatnf-core-tools
recognizes the current working directory as the project root. Otherwise, it will try to install modules in/
.touch .nf-core.yml
- Install a module with
nf-core-tools
nf-core modules install fastp
- Update
main.nf
to add afastp
step (see example in this repo) - Run the pipeline:
nextflow run main.nf --input test.fastq.gz
- Make changes to
nextflow.config
:params { input = null }
- Update the schema with
nf-core-tools
:Note: you can use the Web UI to customize the schemanf-core schema build
nf-core-tools
can initialize a new Nextflow pipeline from a starter template:
nf-core create # follow the instructions
- (create git repo)
git remote add origin https://github.com/username/repo.git
git push -u origin master
- Go to
https://app.onecodex.com
and log in if you aren't already - Go to "Run Workflows" > "Create New Workflow"
- Select "Nextflow Pipeline" under "Workflow Type"
- Enter the repository URL under "Git Repository"
- Click "Save Draft"
You should now be able to run your workflow on one of your samples
- Add your parameter to
nextflow.config
# nextflow config params { my_paramter = null }
- Update
nextflow_schema.json
usingnf-core-tools
:Note: you may wish to use the interactive schema buildernf-core schema build
- Commit your changes
Note: In order to ensure that the correct version is being used by One Codex, you must tag your commits and reference those tags under "Repository Tag" on the Edit Workflow page.
git add nextflow.config nextflow_schema.json git commit -m 'update parameters' git tag v0.0.1 git push origin master --tags