nextflow
& nf-core
on UPPMAX¶
- Official documentation: https://www.nextflow.io/docs/latest/index.html
nextflow
from the module system¶
- latest
nextflow
module load bioinfo-tools
module load Nextflow/latest # this also loads java as reqirement
nextflow -v
nextflow version 25.04.7.5955
- other
nextflow
versions
# To check the available versions on Rackham and Bianca
ls /sw/bioinfo/Nextflow/latest/rackham/nxf_home/framework/
20.04.1 21.04.3 22.10.1 22.10.4 23.04.2 23.10.0 24.04.2 24.04.5 24.10.2 24.10.5 25.04.1 25.04.4 25.04.7
20.07.1 21.10.6 22.10.2 22.10.8 23.04.3 23.10.1 24.04.3 24.10.0 24.10.3 24.10.6 25.04.2 25.04.5
20.10.0 22.10.0 22.10.3 23.04.1 23.04.4 24.04.1 24.04.4 24.10.1 24.10.4 25.04.0 25.04.3 25.04.6
nf-core
from the module system¶
nf-core
and and all other required modules are available on thetransit
server as well.
module load bioinfo-tools
module load nf-core # this also load the nextflow and java as requirements
nf-core
pipelines on Bianca¶
- Login to
transit.uppmax.uu.se
- documentation -
Mount the
wharf
of your project. -
Navigate to your
wharf
folder -
Disable Singularity cache
-
Load nf-core software module
-
Run
nf-core
to download the pipeline.nf-core pipelines download -c yes ampliseq ,--./,-. ___ __ __ __ ___ /,-._.--~\ |\ | |__ __ / ` / \ |__) |__ } { | \| | \__, \__/ | \ |___ \`-._,-`-, `._,._,' nf-core/tools version 3.0.2 - https://nf-co.re WARNING Could not find GitHub authentication token. Some API requests may fail. ? Select release / branch: 2.11.0 [release] In addition to the pipeline code, this tool can download software containers. ? Download software container images: singularity Nextflow and nf-core can use an environment variable called $NXF_SINGULARITY_CACHEDIR that is a path to a directory where remote Singularity images are stored. This allows downloaded images to be cached in a central location. ? Define $NXF_SINGULARITY_CACHEDIR for a shared Singularity image download folder? [y/n]: n If transferring the downloaded files to another system, it can be convenient to have everything compressed in a single file. This is not recommended when downloading Singularity images, as it can take a long time and saves very little space. ? Choose compression type: none INFO Saving 'nf-core/ampliseq' Pipeline revision: '2.11.0' Use containers: 'singularity' Container library: 'quay.io' Output directory: 'nf-core-ampliseq_2.11.0' Include default institutional configuration: 'True' INFO Downloading centralised configs from GitHub INFO Downloading workflow files from GitHub INFO Processing workflow revision 2.11.0, found 30 container images in total. ...
-
Running on Bianca
Note: you might need -c configs/conf/uppmax.config
,
make sure you have the file
(it is an option to download it during the pipeline download process).
https://github.com/nf-core/configs/blob/master/conf/uppmax.config
https://nf-co.re/configs/uppmax
nf-core
pipelines available offline on Bianca/Maya¶
UPPMAX does not maintain complete mirror anymore. Only most requested pipelines are mirrored offline. To check the available pipelines, run
tree -L 2 /sw/bioinfo/nf-core-pipelines/latest/rackham
...
├── rnaseq
│ ├── 1.0
│ ├── 1.1
│ ├── 1.2
│ ├── 1.3
...
To run a pipeline from the UPPMAX mirror, run
module load bioinfo-tools
module load nf-core-pipelines # this also loads Nextflow
nextflow run $NF_CORE_PIPELINES/pipeline_name/revision/workflow ...
Common problems¶
- Task is running out of resources (memory or time)
Add lines to your configuration that overrides the settings for the problematic task, for example:
process {
withName: 'NFCORE_RNASEQ:RNASEQ:ALIGN_STAR:STAR_ALIGN' {
cpus = 12
memory = '72.GB'
time = '24.h'
}
}
More: https://www.nextflow.io/docs/latest/config.html#process-selectors