I think you should be able to use a process selector (i.e. withName
or withLabel
) to specify the required config option(s) for your process:
process {
withName: 'second_process' {
google.lifeSciences.preemptible = true
}
}
This should override the 'default' value you specified in your config for your second process only.
Here's an example, just using the echo directive:
Contents of test.nf
:
nextflow.enable.dsl=2
process second_process {
script:
"echo HelloWorld"
}
workflow {
second_process()
}
Contents of nextflow.config
:
process {
withName: 'second_process' {
echo = true
}
}
Run using:
nextflow run -ansi-log false test.nf
Example output:
N E X T F L O W ~ version 20.10.0
Launching `test.nf` [nauseous_linnaeus] - revision: 6c35b71798
[78/cc161d] Submitted process > second_process
HelloWorld
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…