Benjamin Story
07/28/2025, 6:50 AMChannel Helper - help notstupidquestions
07/28/2025, 6:59 AM... more option on the left sidebar. Then hover over Your organisation, and finally select Channels to browse.
Each nf-core pipeline has it’s own channel (e.g. #rnaseq). Please post any questions about specific pipelines in the relevant channel.
If you’re not sure where to post your message, please ask @Rike Hanssen for help.Rike Hanssen
07/28/2025, 6:59 AMBenjamin Story
07/28/2025, 7:03 AMRike Hanssen
07/28/2025, 7:10 AMSlackbot
07/28/2025, 7:10 AM.nextflow.log file, where you are running the analysis.
Remember to use triple backslashes on their own lines for code blocks.
Also take a look at https://nf-co.re/usage/troubleshooting for more information on debugging failed pipelines. Thanks!pontus
07/28/2025, 7:20 AMBenjamin Story
07/28/2025, 8:03 AMprocess {
resourceLimits = [
cpus: 32,
memory: '96.GB',
time: '4.h'
]
withName: 'ENSEMBLVEP.*' {
container = { workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/ensembl-vep:113.2--pl5321h2a3209d_0' :
'biocontainers/ensembl-vep:113.2--pl5321h2a3209d_0' }
}
withName: 'NFCORE_RAREDISEASE:RAREDISEASE:PREPARE_REFERENCES:BWAMEM2_INDEX_GENOME' {
memory = '96.GB' // or higher if available
time = '24.h' // indexing can take a long time
}
withName: '.*ANNOTATE_GENOME_SNVS:UPD_SITES' {
ext.args = {'--af-tag GNOMADAF --proband ${meta.upd_child} --mother ${meta.mother} --father ${meta.father} --min-gq 20 sites'}
}
withName: 'NFCORE_RAREDISEASE:RAREDISEASE:ANNOTATE_GENOME_SNVS:UPD_REGIONS' {
ext.args = {'--af-tag GNOMADAF --proband ${meta.upd_child} --mother ${meta.mother} --father ${meta.father} regions --min-size 5 --min-gq 20 --min-sites 1'}
}
}
I'm trying to overwrite the ext.args passed to NFCORE_RAREDISEASERAREDISEASEANNOTATE_GENOME_SNVS:UPD_REGIONS/SITES so I copied their original config commands and put them in my config with just the added --min-gq 20 (again the default in the
Caused by:
Process `NFCORE_RAREDISEASE:RAREDISEASE:ANNOTATE_GENOME_SNVS:UPD_REGIONS (FAM2)` terminated with an error exit status (1)
Command executed:
upd \
--vcf FAM2_rhocall_filter_vep.vcf.gz \
--af-tag GNOMADAF --proband patientA --patientB --father patientC regions --min-size 5 --min-sites 1 \
| sort -k 1,1 -k 2,2n > patientA_upd_regions.bed
cat <<-END_VERSIONS > versions.yml
"NFCORE_RAREDISEASE:RAREDISEASE:ANNOTATE_GENOME_SNVS:UPD_REGIONS":
upd: $( upd --version 2>&1 | sed 's/upd, version //' )
END_VERSIONS
Command exit status:
1
Command output:
(empty)
based on my limited understanding this suggests that the param I set in my custom config is not being passed? and my question is this expected? I would expect the --min-gq 20 to be included in the error message if it was actually invoked? is this sufficient information or is there something else that would helpNiklas Schandry
07/28/2025, 8:06 AMBenjamin Story
07/28/2025, 8:07 AMNiklas Schandry
07/28/2025, 8:09 AMnextflow.config to make test_custom.config a profile? Otherwise your should use -c path/to/test_custom.configBenjamin Story
07/28/2025, 8:10 AMwithName: '.*ANNOTATE_GENOME_SNVS:UPD_SITES' {
ext.prefix = { "${meta.upd_child}_upd_sites" }
ext.args = {"--af-tag GNOMADAF --proband ${meta.upd_child} --mother ${meta.mother} --father ${meta.father} sites"}
ext.when = { !(workflow.profile.tokenize(',').intersect(['test', 'test_singleton', 'test_sentieon', 'test_full']).size() >= 1) || workflow.stubRun }
}
withName: '.*ANNOTATE_GENOME_SNVS:UPD_REGIONS' {
ext.prefix = { "${meta.upd_child}_upd_regions" }
ext.args = {"--af-tag GNOMADAF --proband ${meta.upd_child} --mother ${meta.mother} --father ${meta.father} regions --min-size 5 --min-sites 1"}
ext.when = { !(workflow.profile.tokenize(',').intersect(['test', 'test_singleton', 'test_sentieon', 'test_full']).size() >= 1) || workflow.stubRun }
and my goal is to overwrite these with my custom config (which is just adding the --min-gq 20)
to the ext.args so I just copy and pasted it fully into my config thinking it would workNiklas Schandry
07/28/2025, 8:11 AM-c and not -profileBenjamin Story
07/28/2025, 8:11 AMBenjamin Story
07/28/2025, 8:12 AMNiklas Schandry
07/28/2025, 8:12 AMNiklas Schandry
07/28/2025, 8:12 AM$HOME/.nextflow/config (or $NXF_HOME/config when NXF_HOME is set).
2. The config file nextflow.config in the project directory
3. The config file nextflow.config in the launch directory
4. Config files specified using the -c <config-files> optionNiklas Schandry
07/28/2025, 8:12 AMNiklas Schandry
07/28/2025, 8:13 AM-c it would have highest priorityBenjamin Story
07/28/2025, 8:13 AMBenjamin Story
07/28/2025, 8:13 AMNiklas Schandry
07/28/2025, 8:14 AMnextflow.config it was in I guessNiklas Schandry
07/28/2025, 8:14 AMNiklas Schandry
07/28/2025, 8:14 AM-c 😉Benjamin Story
07/28/2025, 8:15 AMBenjamin Story
07/28/2025, 8:17 AMtest_singleton { includeConfig 'conf/test_singleton.config' }
test_sentieon { includeConfig 'conf/test_sentieon.config' }
test_bam { includeConfig 'conf/test_bam.config' }pontus
07/28/2025, 8:17 AMNiklas Schandry
07/28/2025, 8:17 AMRike Hanssen
07/28/2025, 8:19 AMmeta.sth ) you'll need to enclose is in double quotes.pontus
07/28/2025, 8:19 AM-c or use one of the other locations from the list.
I think issues with the default configuration overriding something because of priorities as above is very rare. More commonly there will be issues with how process matches work.Niklas Schandry
07/28/2025, 8:22 AMincludeConfig 'conf/modules.config' at the of nextflow.config so customizing module args via profiles mostly will not work?pontus
07/28/2025, 8:25 AMprocess { withName: ... so it comes down to writing the process matches so that the desired behaviour is applied last.Niklas Schandry
07/28/2025, 8:30 AMwithName: 'NFCORE_RAREDISEASE:RAREDISEASE:ANNOTATE_GENOME_SNVS:UPD_REGIONS' {
ext.args = {'--af-tag GNOMADAF --proband ${meta.upd_child} --mother ${meta.mother} --father ${meta.father} regions --min-size 5 --min-gq 20 --min-sites 1'}
}
which I think should be the highest priority match? It is not super clear to me if: "config priority" has higher priority than selector prioritypontus
07/28/2025, 8:34 AMpontus
07/28/2025, 8:34 AMpontus
07/28/2025, 8:37 AMparams.somestuff, order would be important whereas these processes can be considered additive.Benjamin Story
07/28/2025, 12:20 PM-c ! the nextflow.config priority must be linear in accordance with appearance in the file I guess
and as prophesized by @Rike Hanssen the pipeline did not like those single quotes
so anyway thank you @Niklas Schandry @pontus @Rike Hanssen for solving my stupid question!