1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-09-21 06:02:03 +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
All nf-core pipelines have been successfully configured for use on the medair cluster at Clinical Genomics Gothenburg.
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.
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-06-30 12:24:17 +00:00
## Download nf-core pipelines
2022-06-30 09:43:04 +00:00
2022-06-30 12:24:17 +00:00
### Set-up
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
2022-06-30 09:43:04 +00:00
module load nextflow/21.10.5.5658
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
### Download a pipeline
We have started to download pipelines in the following location: `/apps/bio/repos/nf-core/`
2022-06-30 09:43:04 +00:00
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
### Storage of Singularity images
2022-06-30 09:43:04 +00:00
When downloading a new 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. A central location for these images is: `/apps/bio/dependencies/nf-core/singularities`
2022-06-30 12:24:17 +00:00
Cached Singularity images can be accessed by running (or adding to your `.bashrc`) the following:
```
export NXF_SINGULARITY_CACHEDIR="/apps/bio/dependencies/nf-core/singularities"
```
This was also added to cronuser.
## Run nf-core pipelines
2022-06-30 09:43:04 +00:00
2022-06-30 12:24:17 +00:00
### Set-up
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:
```bash
## Load Nextflow and Singularity environment modules
module purge
module load nextflow/21.10.5.5658
module load singularity/v3.4.0
```
>Should we link to Confluence page about new modules? See something about updating modules? etc.
### 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 times, versus 2 days for the `wgs` profile).
2022-06-30 09:43:04 +00:00
2022-06-30 12:24:17 +00:00
>Usage: -profile medair,wgs ?? (Check)
2022-06-30 09:43:04 +00:00
## iGenomes specific configuration
>TODO modify this part. Do we want to have the iGenomes somewhere?
A local copy of the iGenomes resource has been made available on PROFILE CLUSTER so you should be able to run the pipeline against any reference available in the `igenomes.config` specific to the nf-core pipeline.
You can do this by simply using the `--genome <GENOME_ID>` parameter.
>NB: You will need an account to use the HPC cluster on PROFILE CLUSTER in order to run the pipeline. If in doubt contact IT.
>NB: Nextflow will need to submit the jobs via the job scheduler to the HPC cluster and as such the commands above will have to be executed on one of the login nodes. If in doubt contact IT.