1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-25 09:19:56 +00:00

Add ABiMS - last bits of doc

This commit is contained in:
lecorguille 2020-10-23 09:27:12 +02:00
parent 6ee6b7bf56
commit 4d03f72c78

View file

@ -23,23 +23,50 @@ Nextflow manages each process as a separate job that is submitted to the cluster
Nextflow shouldn't run directly on the submission node but on a compute node. Run nextflow from a compute node: Nextflow shouldn't run directly on the submission node but on a compute node. Run nextflow from a compute node:
```bash ```bash
# Login to a compute node
srun --pty bash
# Load the dependencies if not done before # Load the dependencies if not done before
module load nextflow slurm-drmaa graphviz module load nextflow slurm-drmaa graphviz
# Run a downloaded/git-cloned nextflow workflow from # Run a downloaded/git-cloned nextflow workflow from
nextflow run \\ srun nextflow run \
/path/to/nf-core/workflow \\ /path/to/nf-core/workflow \
-resume -profile abims \
-profile abims \\ --email my-email@example.org \
--email my-email@example.org \\
-c my-specific.config -c my-specific.config
... ...
# Or use the nf-core client # Or use let nf-core client download the workflow
nextflow run nf-core/rnaseq ... 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
```
### Hello, world!
nf-core provides some test for each workflow:
```bash
module load nextflow slurm-drmaa graphviz
nextflow run nf-core/rnaseq -profile abims,test
``` ```
## Singularity images mutualized directory ## Singularity images mutualized directory