1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-14 13:43:09 +00:00
nf-configs/docs/abims.md

81 lines
2.3 KiB
Markdown
Raw Normal View History

2020-10-22 14:57:41 +00:00
# nf-core/configs: ABiMS Configuration
All nf-core pipelines have been successfully configured for use on the ABiMS cluster.
To use, run the pipeline with `-profile abims`. This will download and launch the [`abims.config`](../conf/abims.config) which has been pre-configured with a setup suitable for the ABiMS cluster. Using this profile, a docker image containing all of the required software will be downloaded, and converted to a Singularity image before execution of the pipeline.
## Request an account
2020-10-22 15:47:25 +00:00
2020-10-22 14:57:41 +00:00
You will need an account to use the HPC cluster on ABiMS in order
to run the pipeline. If in doubt see [http://abims.sb-roscoff.fr/account](http://abims.sb-roscoff.fr/account).
## Running the workflow on the ABiMS cluster
2020-10-22 21:36:33 +00:00
Nextflow is installed on the ABiMS cluster.
2020-10-22 14:57:41 +00:00
You need to activate it like this:
```bash
2020-10-22 21:17:55 +00:00
module load nextflow slurm-drmaa graphviz
2020-10-22 14:57:41 +00:00
```
Nextflow manages each process as a separate job that is submitted to the cluster by using the sbatch command.
Nextflow shouldn't run directly on the submission node but on a compute node. Run nextflow from a compute node:
```bash
# Load the dependencies if not done before
2020-10-22 21:17:55 +00:00
module load nextflow slurm-drmaa graphviz
2020-10-22 14:57:41 +00:00
# Run a downloaded/git-cloned nextflow workflow from
2020-10-23 07:27:12 +00:00
srun nextflow run \
/path/to/nf-core/workflow \
-profile abims \
--email my-email@example.org \
2020-10-22 14:57:41 +00:00
-c my-specific.config
...
2020-10-23 07:27:12 +00:00
# Or use let nf-core client download the workflow
srun nextflow run nf-core/rnaseq -profile abims ...
# To launch in background
sbatch --wrap "nextflow run nf-core/rnaseq -profile abims ..."
```
Or write a sbatch script
> nfcore-rnaseq.sh
```bash
#!/bin/bash
#SBATCH -p fast
#SBATCH --mem=4G
module load nextflow slurm-drmaa graphviz
nextflow run nf-core/rnaseq -profile abims ...
```
Launch on the cluster with sbatch:
```bash
sbatch nfcore-rnaseq.sh
```
2020-10-23 07:29:54 +00:00
### Hello, world
2020-10-23 07:27:12 +00:00
nf-core provides some test for each workflow:
```bash
module load nextflow slurm-drmaa graphviz
nextflow run nf-core/rnaseq -profile abims,test
2020-10-22 14:57:41 +00:00
```
2020-10-22 21:17:55 +00:00
## Singularity images mutualized directory
To reduce the disk usage, nf-core images can be stored in a mutualized directory: `/shared/software/singularity/images/nf-core/`
The environment variable `NXF_SINGULARITY_CACHEDIR: /shared/data/cache/nextflow` will indicate this directory to nextflow.
2020-10-22 14:57:41 +00:00
## Databanks
2020-10-22 21:17:55 +00:00
A local copy of several genomes are available in `/shared/bank/` directory.