Launching main process with a script
Usually, when you handle a lot of samples, the main Nextflow proccess has to be launched on unlimitq with a least 4G of memory.
Here is an example of a script myscript.sh
to launch with sbatch command.
#!/bin/bash
#SBATCH -J nfcore-rnaseq
#SBATCH -p unlimitq
#SBATCH --mem=6G
#SBATCH --mail-type=BEGIN,END,FAIL
module purge
module load bioinfo/nfcore-Nextflow-v20.10.0
nextflow run nf-core/methylseq -profile genotoul -resume --genome Itag \
--reads 'data/WT_rep1_{1,2}_Ch6.fastq.gz'
To submit the job, use the sbatch command line as following:
sbatch myscript.sh