Skills › Knowledge Work Plugins › nextflow-development › installation.md
installation.md
96 lines · bio-research/skills/nextflow-development/references/installation.md at 2574e29
Installation
Raw lines 1 to 23## Contents
4- [Quick install](#quick-install)
5- [Docker setup](#docker-setup)
6- [Singularity setup (HPC)](#singularity-setup-hpc)
7- [nf-core tools (optional)](#nf-core-tools-optional)
8- [Verify installation](#verify-installation)
9- [Common issues](#common-issues)
Contents
- Quick install
- Docker setup
- Singularity setup (HPC)
- nf-core tools (optional)
- Verify installation
- Common issues
11## Quick install
13```bash
14# Nextflow
15curl -s https://get.nextflow.io | bash
16mv nextflow ~/bin/
17export PATH="$HOME/bin:$PATH"
19# Verify
20nextflow -version
21java -version # Requires 11+
22```
Quick install
# Nextflow
curl -s https://get.nextflow.io | bash
mv nextflow ~/bin/
export PATH="$HOME/bin:$PATH"
# Verify
nextflow -version
java -version # Requires 11+Raw lines 11 to 23Docker setup
Raw lines 24 to 2526### Linux
27```bash
28sudo apt-get update && sudo apt-get install docker.io
29sudo systemctl enable --now docker
30sudo usermod -aG docker $USER
31# Log out and back in
32```
Linux
sudo apt-get update && sudo apt-get install docker.io
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
# Log out and back inRaw lines 26 to 3342## Singularity setup (HPC)
44```bash
45# Ubuntu/Debian
46sudo apt-get install singularity-container
48# Or via conda
49conda install -c conda-forge singularity
50```
Singularity setup (HPC)
# Ubuntu/Debian
sudo apt-get install singularity-container
# Or via conda
conda install -c conda-forge singularityRaw lines 42 to 5152### Configure cache
53```bash
54export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"
55mkdir -p $NXF_SINGULARITY_CACHEDIR
56echo 'export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"' >> ~/.bashrc
57```
Configure cache
export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"
mkdir -p $NXF_SINGULARITY_CACHEDIR
echo 'export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"' >> ~/.bashrcRaw lines 52 to 5859## nf-core tools (optional)
61```bash
62pip install nf-core
63```
65Useful commands:
66```bash
67nf-core list # Available pipelines
68nf-core launch rnaseq # Interactive parameter selection
69nf-core download rnaseq -r 3.14.0 # Download for offline use
70```
nf-core tools (optional)
pip install nf-coreUseful commands:
nf-core list # Available pipelines
nf-core launch rnaseq # Interactive parameter selection
nf-core download rnaseq -r 3.14.0 # Download for offline useRaw lines 59 to 7172## Verify installation
74```bash
75nextflow run nf-core/demo -profile test,docker --outdir test_demo
76ls test_demo/
77```
Verify installation
nextflow run nf-core/demo -profile test,docker --outdir test_demo
ls test_demo/Raw lines 72 to 7879## Common issues
81**Java version wrong:**
82```bash
83export JAVA_HOME=/path/to/java11
84```
86**Docker permission denied:**
87```bash
88sudo usermod -aG docker $USER
89# Log out and back in
90```
92**Nextflow not found:**
93```bash
94echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
95source ~/.bashrc
96```
Common issues
Java version wrong:
export JAVA_HOME=/path/to/java11Docker permission denied:
sudo usermod -aG docker $USER
# Log out and back inNextflow not found:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcRaw lines 79 to 96