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

89 lines
2.4 KiB
Markdown
Raw Normal View History

2019-11-25 13:54:25 +00:00
# nf-core/configs: Bioinfo Genotoul Configuration
All nf-core pipelines have been successfully configured for use on the Bioinfo Genotoul cluster at the INRA toulouse.
To use, run the pipeline with `-profile genotoul`. This will download and
launch the [`genotoul.config`](../conf/genotoul.config) which has been
pre-configured with a setup suitable for the Bioinfo Genotoul 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. Images are stored for all users in following directory `/usr/local/bioinfo/src/NextflowWorkflows/singularity-img/`.
2019-11-26 13:43:42 +00:00
## Running the workflow ib the Genologin cluster
2019-11-25 13:54:25 +00:00
Before running the pipeline you will need to load Nextflow and
Singularity using the environment module system on Genotoul. You can do
this by issuing the commands below:
Once connected on our frontal node :
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
# Login to a compute node
srun --mem=4G --pty bash
```
Setup default nextflow and singularity home directory (to be done only one time):
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
sh /usr/local/bioinfo/src/NextflowWorkflows/create_nfx_dirs.sh
```
Load environment :
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
module purge
module load bioinfo/nfcore-Nextflow-v19.04.0
```
Try a test workflow (for example the methylseq workflow) :
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
nextflow run nf-core/methylseq -profile genotoul,test
```
Create launch script `nfcore-rnaseq.sh` :
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
#!/bin/bash
#SBATCH -p workq
#SBATCH -t 1:00:00 #time in hour
#SBATCH --mem=4G
#SBATCH --mail-type=BEGIN,END,FAIL
module load bioinfo/nfcore-Nextflow-v19.04.0
nextflow run nf-core/methylseq -profile genotoul,test
```
2019-11-26 13:47:23 +00:00
2019-11-25 13:54:25 +00:00
Launch on the cluster with sbatch:
2019-11-26 13:43:42 +00:00
```bash
2019-11-25 13:54:25 +00:00
sbatch nfcore-rnaseq.sh
```
## Mounted directory
2019-11-26 14:02:06 +00:00
By default, available mount points are:
2022-03-17 23:33:31 +00:00
- /bank
- /home
- /save
- /work
- /work2
2019-11-25 13:54:25 +00:00
To have access to specific other mount point (such as nosave or project)
you can add a config profile file with option `-profile` and which contain:
2019-11-26 13:47:23 +00:00
2019-11-26 13:43:42 +00:00
```bash
singularity.runOptions = '-B /directory/to/mount'
2019-11-25 13:54:25 +00:00
```
## Databanks
A local copy of several genomes are available in `/bank` directory. See
our [databank page](http://bioinfo.genotoul.fr/index.php/resources-2/databanks/)
to search for your favorite genome.
2022-03-17 23:33:31 +00:00
> NB: You will need an account to use the HPC cluster on Genotoul in order
> to run the pipeline. If in doubt see [http://bioinfo.genotoul.fr/](http://bioinfo.genotoul.fr/).