1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-12-04 12:39:55 +00:00
nf-configs/docs/adcra.md

40 lines
1.6 KiB
Markdown
Raw Normal View History

2022-08-25 09:17:09 +00:00
# nf-core/configs: CRA HPC Configuration
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
nfcore pipeline sarek and rnaseq have been tested on the CRA HPC.
## Before running the pipeline
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
- You will need an account to use the CRA HPC cluster in order to run the pipeline.
- Make sure that Singularity and Nextflow are installed.
- Downlode pipeline singularity images to a HPC system using [nf-core tools](https://nf-co.re/tools/#downloading-pipelines-for-offline-use)
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
```
$ conda install nf-core
$ nf-core download
```
2022-09-01 08:28:05 +00:00
- You will need to specify a Singularity cache directory in your ~./bashrc. This will store your container images in this cache directory without repeatedly downloading them every time you run a pipeline. Since space on home directory is limited, using lustre file system is recommended.
2022-08-25 09:17:09 +00:00
```
export NXF_SINGULARITY_CACHEDIR = "/lustre/fs0/storage/yourCRAAccount/cache_dir"
```
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
- Download iGenome reference to be used as a local copy.
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
```
$ aws s3 --no-sign-request --region eu-west-1 sync s3://ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38/ /lustre/fs0/storage/yourCRAAccount/references/Homo_sapiens/GATK/GRCh38/
```
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
## Running the pipeline using the adcra config profile
2022-09-01 08:28:05 +00:00
2022-08-25 09:17:09 +00:00
- Run the pipeline within a [screen](https://linuxize.com/post/how-to-use-linux-screen/) or [tmux](https://linuxize.com/post/getting-started-with-tmux/) session.
2022-09-01 08:28:05 +00:00
- Specify the config profile with `-profile adcra`.
- Using lustre file systems to store results (`--outdir`) and intermediate files (`-work-dir`) is recommended.
2022-08-25 09:17:09 +00:00
```
nextflow run /path/to/nf-core/<pipeline-name> -profile adcra \
--genome GRCh38 \
--igenomes_base /path/to/genome_references/ \
... # the rest of pipeline flags
```