1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 08:29:54 +00:00
nf-configs/docs/medair.md

71 lines
3.1 KiB
Markdown
Raw Normal View History

2022-06-30 09:43:04 +00:00
# nf-core/configs: Medair Configuration
2022-07-06 09:42:05 +00:00
All nf-core pipelines have been successfully configured for use on the Medair cluster at Clinical Genomics Gothenburg.
2022-06-30 09:43:04 +00:00
2022-07-06 09:42:05 +00:00
To use, run the pipeline with `-profile medair`. This will download and launch the [`medair.config`](../conf/medair.config) which has been pre-configured with a setup suitable for the Medair cluster.
2022-06-30 09:43:04 +00:00
It will enable Nextflow to manage the pipeline jobs via the `SGE` job scheduler.
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.
2022-07-06 09:24:03 +00:00
You will need an account to use the Medair cluster in order to download or run pipelines. If in doubt, contact cgg-it.
2022-06-30 12:24:17 +00:00
## Download nf-core pipelines
2022-06-30 09:43:04 +00:00
2022-07-06 09:42:05 +00:00
### Set-up: load Nextflow and nf-core tools
2022-06-30 12:24:17 +00:00
First you need to load relevant softwares: Nextflow and nf-core tools. You can do it as follow:
2022-06-30 09:43:04 +00:00
```bash
2022-06-30 12:24:17 +00:00
## Load Nextflow
module load nextflow
2022-06-30 12:24:17 +00:00
## Load nf-core tools
module load miniconda
source activate nf-core
2022-06-30 09:43:04 +00:00
```
2022-06-30 12:24:17 +00:00
### Storage of Singularity images
2022-06-30 09:43:04 +00:00
When downloading a nf-core pipeline for the first time (or a specific version of a pipeline), you can choose to store the Singularity image for future use. We chose to have a central location for these images on medair: `/apps/bio/dependencies/nf-core/singularities`.
2022-06-30 09:43:04 +00:00
For Nexflow to know where to store new images, run or add the following to your `.bashrc`:
2022-06-30 12:24:17 +00:00
2022-07-06 09:42:05 +00:00
```bash
2022-06-30 12:24:17 +00:00
export NXF_SINGULARITY_CACHEDIR="/apps/bio/dependencies/nf-core/singularities"
```
> Comment: This was also added to cronuser.
### Download a pipeline
We have started to download pipelines in the following location: `/apps/bio/repos/nf-core/`
Use the `nf-core download --singularity-cache-only` command to start a download. It will open an interactive menu. Choose `singularity` for the software container image, and `none` for the compression type.
2022-06-30 12:24:17 +00:00
## Run nf-core pipelines
2022-06-30 09:43:04 +00:00
2022-08-08 14:14:17 +00:00
Nextflow will need to submit the jobs via the job scheduler to the HPC cluster and as such the commands below will have to be executed on one of the login nodes. If in doubt contact cgg-it (cgg-it[at]gu.se).
2022-07-06 09:24:03 +00:00
2022-07-06 09:42:05 +00:00
### Set-up: load Nextflow and Singularity
2022-06-30 12:24:17 +00:00
2022-07-06 09:42:05 +00:00
Before running a pipeline you will need to load Nextflow and Singularity using the environment module system on Medair. You can do this by issuing the commands below:
2022-06-30 12:24:17 +00:00
```bash
## Load Nextflow and Singularity environment modules
module purge
module load nextflow
module load singularity
2022-06-30 12:24:17 +00:00
```
### Choose a profile
2022-06-30 09:43:04 +00:00
Depending on what you are running, you can choose between the `wgs` and `production` profiles. Jobs running with the `wgs` profile run on a queue with higher priority. Jobs running with the `production` profile can last longer (max time: 20 days, versus 2 days for the `wgs` profile).
2022-06-30 09:43:04 +00:00
For example, the following job would run with the `wgs` profile:
```bash
run nextflow nf-core/raredisease -profile medair,wgs
```
### Sentieon
In some pipelines (sarek, raredisease) it is possible to use Sentieon for alignment and variant calling. If ones uses the label `sentieon` for running a process, the config file contains the path to the Sentieon singularity image on Medair.