BinAC/Software/Nextflow: Difference between revisions
F Bartusch (talk | contribs) (Created page with "= Description = = Usage =") |
F Bartusch (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
= Description = |
= Description = |
||
Nextflow is a scientific workflow system predominantly used for bioinformatic data analyses. |
|||
This documentation also addresses nf-core, which is a community effort to collect a curated set of analysis pipelines built using Nextflow. |
|||
= Installation = |
|||
There is no environment module for Nextflow on the BinAC. We encourage users to install Nextflow via Miniconda. |
|||
As Nextflow is often used with nf-core pipelines, we also recommend to install the nf-core tools. |
|||
The following commands will create a new Conda environment that provides Nextflow and nf-core tools. |
|||
It also sets a Singularity cache directory where all Singularity containers are stored. |
|||
<pre> |
|||
conda create --name nf-core python nf-core nextflow |
|||
echo "export NXF_SINGULARITY_CACHEDIR=/beegfs/work/container/apptainer_cache" >> ~/.bashrc |
|||
echo "export SINGULARITY_CACHEDIR=/beegfs/work/tu_iioba01/apptainer_cache " >> ~/.bashrc |
|||
source ~/.bashrc |
|||
conda activate nf-core |
|||
</pre> |
|||
= Usage = |
= Usage = |
||
== Install a nf-core pipeline == |
|||
You could start and run pipelines now and the pipeline will pull all containers themselves. |
|||
<b>But</b> we experienced problems when a pipeline started more than one job that pulls the same image. |
|||
Thus we recommend to download the pipeline first using the nf-core tools. |
|||
In this example we will use the rnaseq pipeline. If you need another pipeline, |
|||
<pre> |
|||
nf-core download -x none -d -u amend --container-system singularity -r 3.14.0 rnaseq |
|||
</pre> |
|||
nf-core tools can download pipelines and also download Singularity containers. |
Revision as of 10:28, 12 August 2024
Description
Nextflow is a scientific workflow system predominantly used for bioinformatic data analyses. This documentation also addresses nf-core, which is a community effort to collect a curated set of analysis pipelines built using Nextflow.
Installation
There is no environment module for Nextflow on the BinAC. We encourage users to install Nextflow via Miniconda. As Nextflow is often used with nf-core pipelines, we also recommend to install the nf-core tools.
The following commands will create a new Conda environment that provides Nextflow and nf-core tools. It also sets a Singularity cache directory where all Singularity containers are stored.
conda create --name nf-core python nf-core nextflow echo "export NXF_SINGULARITY_CACHEDIR=/beegfs/work/container/apptainer_cache" >> ~/.bashrc echo "export SINGULARITY_CACHEDIR=/beegfs/work/tu_iioba01/apptainer_cache " >> ~/.bashrc source ~/.bashrc conda activate nf-core
Usage
Install a nf-core pipeline
You could start and run pipelines now and the pipeline will pull all containers themselves. But we experienced problems when a pipeline started more than one job that pulls the same image. Thus we recommend to download the pipeline first using the nf-core tools. In this example we will use the rnaseq pipeline. If you need another pipeline,
nf-core download -x none -d -u amend --container-system singularity -r 3.14.0 rnaseq
nf-core tools can download pipelines and also download Singularity containers.