Using nf-core Pipelines in the HPC
This page details running nf-core pipelines in the biostat partition of the KUHPC using the shared Nextflow configuration file.
nf-core is a global community of people that collaborate to build open-source Nextflow pipelines. They have pipelines for many common bioinformatics data analyses. For more information about the nf-core community and the curated pipelines available, please visit their documentation. If you have questions about using a pipeline, you are encouraged to connect directly to the team that maintains the specific pipeline you are using via their Slack, which you can request to join on this page.
Submitting nf-core pipeline jobs
nf-core pipelines are typically launched from a submitted job whose only responsibility is to run the head Nextflow process. Nextflow itself then submits each pipeline step as its own SLURM job using the executor settings from ku_crc.config. A submitted job to run an nf-core pipeline would look something like this:
#!/bin/bash
#SBATCH --job-name=nfcore_pipeline
#SBATCH --output=nfcore_pipeline_%j.out
#SBATCH --error=nfcore_pipeline_%j.err
#SBATCH --time=24:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=4G
source ~/.bashrc
module load nextflow
nextflow run nf-core/<pipeline> -c /kuhpc/work/biostat/sw/internal_pipelines/nextflow/ku_crc.configSubmitted jobs must source ~/.bashrc before calling module load nextflow. Without it, the module system will not be initialized in the job’s shell and module load will fail, even if it works fine when you run it interactively. This allows the submitted job to have access to the variables such as $WORK and $HOME that are associated with your account.