2021-04-21 19:17:42 +00:00
|
|
|
# nf-core/configs: Wellcome Sanger Institute Configuration
|
|
|
|
|
|
|
|
To use, run the pipeline with `-profile sanger`. This will download and launch the [`sanger.config`](../conf/sanger.config) which has been
|
|
|
|
pre-configured with a setup suitable for the Wellcome Sanger Institute LSF cluster.
|
|
|
|
|
|
|
|
## Running the workflow on the Wellcome Sanger Institute cluster
|
|
|
|
|
|
|
|
The latest version of Nextflow is not installed by default on the cluster. You will need to install it into a directory you have write access to
|
|
|
|
|
|
|
|
- Install Nextflow : [here](https://www.nextflow.io/docs/latest/getstarted.html#)
|
|
|
|
|
2021-04-22 14:38:36 +00:00
|
|
|
A recommended place to move the `nextflow` executable to is `~/bin` so that it's in the `PATH`.
|
|
|
|
|
2021-04-21 19:17:42 +00:00
|
|
|
Nextflow manages each process as a separate job that is submitted to the cluster by using the `bsub` command.
|
2022-07-20 13:32:43 +00:00
|
|
|
|
|
|
|
If asking Nextflow to use Singularity to run the individual jobs,
|
|
|
|
you should make sure that your account has access to the Singularity binary by adding these lines to your `.bashrc` file
|
2021-04-22 14:38:36 +00:00
|
|
|
|
|
|
|
```bash
|
2022-07-20 13:34:25 +00:00
|
|
|
[[ -f /software/modules/ISG/singularity ]] && module load ISG/singularity
|
2021-04-22 14:38:36 +00:00
|
|
|
```
|
|
|
|
|
2021-04-21 19:17:42 +00:00
|
|
|
Nextflow shouldn't run directly on the submission node but on a compute node.
|
|
|
|
To do so make a shell script with a similar structure to the following code and submit with `bsub < $PWD/my_script.sh`
|
|
|
|
|
2021-04-21 19:24:08 +00:00
|
|
|
```bash
|
2021-04-21 19:17:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#BSUB -o /path/to/a/log/dir/%J.o
|
2022-07-20 12:22:51 +00:00
|
|
|
#BSUB -e /path/to/a/log/dir/%J.e
|
2021-04-21 19:17:42 +00:00
|
|
|
#BSUB -M 8000
|
2022-07-20 13:34:59 +00:00
|
|
|
#BSUB -q oversubscribed
|
2022-07-20 13:35:22 +00:00
|
|
|
#BSUB -n 2
|
2021-04-21 19:17:42 +00:00
|
|
|
|
|
|
|
export HTTP_PROXY='http://wwwcache.sanger.ac.uk:3128'
|
|
|
|
export HTTPS_PROXY='http://wwwcache.sanger.ac.uk:3128'
|
|
|
|
export NXF_ANSI_LOG=false
|
|
|
|
export NXF_OPTS="-Xms8G -Xmx8G -Dnxf.pool.maxThreads=2000"
|
2022-07-20 13:35:39 +00:00
|
|
|
export NXF_VER=22.04.0-5697
|
2021-04-21 19:17:42 +00:00
|
|
|
|
|
|
|
|
2021-04-22 11:02:11 +00:00
|
|
|
nextflow run \
|
2021-04-21 19:17:42 +00:00
|
|
|
/path/to/nf-core/pipeline/main.nf \
|
|
|
|
-w /path/to/some/dir/work \
|
|
|
|
-profile sanger \
|
|
|
|
-c my_specific.config \
|
|
|
|
-qs 1000 \
|
|
|
|
-resume
|
|
|
|
|
|
|
|
## clean up on exit 0 - delete this if you want to keep the work dir
|
|
|
|
status=$?
|
|
|
|
if [[ $status -eq 0 ]]; then
|
|
|
|
rm -r /path/to/some/dir/work
|
|
|
|
fi
|
|
|
|
```
|