Oliver Drechsel
03/30/2026, 8:10 AMinput:
tuple val(meta), path(input_1), path(input_1_index), path(input_2), path(input_2_index), path(target_bed)
I'd suggest something similar to
input:
path(list_bam)
path(list_bai)Oliver Drechsel
03/30/2026, 8:18 AMinput:
tuple val(meta), path(bam) // modified
tuple val(meta), path(bam_index) // modified
tuple val(meta), path(target_bed) // modified
tuple val(meta2), path(fasta)
tuple val(meta3), path(fasta_fai)
tuple val(meta4), path(samples)
tuple val(meta5), path(populations)
tuple val(meta6), path(cnv)
output:
tuple val(meta), path("*.vcf.gz"), emit: vcf
tuple val("${task.process}"), val('freebayes'), eval('freebayes --version 2>&1 | sed "s/version:\s*v//g"'), emit: versions_freebayes, topic: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
// def input = input_2 ? "${input_1} ${input_2}" : "${input_1}"
def targets_file = target_bed ? "--target ${target_bed}" : ""
def samples_file = samples ? "--samples ${samples}" : ""
def populations_file = populations ? "--populations ${populations}" : ""
def cnv_file = cnv ? "--cnv-map ${cnv}" : ""
"""
freebayes \\
-f ${fasta} \\
${targets_file} \\
${samples_file} \\
${populations_file} \\
${cnv_file} \\
${args} \\
${bam} > ${prefix}.vcf // modified
bgzip ${prefix}.vcf
"""Mahesh Binzer-Panchal
03/30/2026, 8:36 AMnf-core modules patch. Install a module like normal, make your modifications to suit your use-case and then use nf-core modules patch to write a patch file which will be applied any time you update the module.
I don't want to stop the discussion though on updating module inputs though. It seems quite difficult to make this suit everyone, but I'm not familiar with this tool.Famke Bäuerle
03/30/2026, 9:04 AMOliver Drechsel
03/30/2026, 11:59 AM