Hi, i am relatively new to nextflow and I just wan...
# configs
c
Hi, i am relatively new to nextflow and I just wanted to clarify something. If my institution does not have a custom config file created and i want to use the SLURM executor on my HPC cluster, do i just add 'process.executor = 'slurm'' line to the nextflow.config file in .nextflow folder or do i need to create a custom config file? If so, can the line be added anywhere in the config file? Would really appreciate the help!
j
At it's very basic, and assuming it's your own pipeline, yes, that should be sufficient
And with the
process.
prefix, then you should make sure not to put it in any scope
That said in nf-core we like to seaprate parameters from infrastructure configurations, so we would generally recommend having a separate config file
c
Thank you both for the advice. I have created a custom config, am i right in saying i just need to specify this in the command line using '-c'?
j
Correct!
👍 1
p
Yup! Or any of the other default locations:
If you are the only person to be running this pipeline, you can create a local config file and use this. Nextflow looks for these files in three locations:
1. User’s home directory:
~/.nextflow/config
2. Analysis working directory:
nextflow.config
3. Custom path specified on the command line:
-c path/to/config
(multiple can be given)
👍 2