nf-core tools
nf-core tools is a Python package that provides command-line utilities for working with nf-core pipelines. While optional, it offers helpful features for downloading, launching, and developing pipelines.
The nf-core tools package provides commands for:
- Listing available nf-core pipelines and components
- Downloading pipelines for offline use
- Launching pipelines with customized parameters
- Creating and developing new pipelines and components
- Linting and validating pipeline code
Installing nf-core tools
nf-core tools can be installed using Conda, pip, or Docker. Choose the method that best fits your environment.
Install with Conda
Conda is the recommended installation method as it handles all dependencies automatically.
To install nf-core tools in a dedicated environment with nf-core tools and Nextflow:
-
Create a new environment:
conda create --name nf-core-env nf-core nextflow -
Activate the environment:
conda activate nf-core-env -
Verify the installation:
nf-core --version nextflow -version
Install with pip
To install nf-core tools with pip:
-
Install the package:
pip install nf-core -
Verify the installation:
nf-core --version
When using pip, ensure you have Python 3.8 or later installed.
You may need to use pip3 instead of pip depending on your system configuration.
Install with Docker
To use nf-core tools with Docker:
-
Pull the
nfcore/toolsDocker image:docker pull nfcore/tools -
Run nf-core tools commands using Docker:
docker run -itv `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g) nfcore/tools --help -
(Optional) Create an alias to simplify commands:
-
Add an alias in your
~/.bashrcor~/.zshrcalias nf-core="docker run -itv \`pwd\`:\`pwd\` -w \`pwd\` -u $(id -u):$(id -g) nfcore/tools" -
Run
nf-coredirectly:nf-core --help
-
Updating nf-core tools
To keep nf-core tools up to date with the latest features and bug fixes, update regularly using your installation method.
Update Conda install
To update your nf-core tools Conda install:
-
Activate the environment:
conda activate nf-core-env -
Run the update command:
conda update nf-coreUpdate pip install
To update your nf-core tools pip install, run:
pip install --upgrade nf-coreUpdate Docker install
To update nf-core tools docker image, run:
docker pull nfcore/tools