Daniyar Karabayev
08/05/2025, 6:50 AMnextflow run . -profile singularity --input assets/samplesheet.csv --fasta assets/hg38.fna --fasta_index assets/hg38.fna.fai --outdir tmp -resume
Output shows all other processes running, but FREEBAYES remains stuck:
[94/12fc14] process > NFCORE_EMSNV:EMSNV:SAMTOOLS_CALMD (test) [100%] 1 of 1, cached: 1 ✔
[0a/b19923] process > NFCORE_EMSNV:EMSNV:SAMTOOLS_INDEX (test) [100%] 1 of 1, cached: 1 ✔
[da/aaafe0] process > NFCORE_EMSNV:EMSNV:REVELIO (test) [100%] 1 of 1, cached: 1 ✔
[29/71a593] process > NFCORE_EMSNV:EMSNV:SAMTOOLS_INDEX_REVELIO (test) [100%] 1 of 1, cached: 1 ✔
[- ] process > NFCORE_EMSNV:EMSNV:FREEBAYES -
[nf-core/emsnv] Pipeline completed successfully
I’m using the latest version of the nf-core freebayes module.
In workflow’s main.nf, this is how I call FREEBAYES:
ch_freebayes_input = ch_masked_bam
.combine(ch_masked_bam_bai)
.map { meta_1, bam, _meta2, bai ->
tuple(meta_1, bam, bai, null, null, null) // meta, input1, index1, input2, index2, bed
}
FREEBAYES(
ch_freebayes_input,
ch_fasta,
ch_fasta_fai,
Channel.empty(), // samples
Channel.empty(), // populations
Channel.empty() // cnv
)
ch_fasta and ch_fasta_fai are defined in the root main.nf as:
ch_fasta = params.fasta ? Channel.fromPath(params.fasta).map{ it -> [ [id:it.baseName], it ] } : Channel.empty()
ch_fasta_index = params.fasta_index ? Channel.fromPath(params.fasta_index).map{ it -> [ [id:it.baseName], it ] } : Channel.empty()
Any idea what could be causing FREEBAYES not to run? Thanks!James Fellows Yates
08/05/2025, 7:17 AM[] rather than nullJames Fellows Yates
08/05/2025, 7:17 AMmapDaniyar Karabayev
08/05/2025, 7:20 AMJames Fellows Yates
08/05/2025, 7:42 AMChannel.empty() as [] in the FREEBAYES call?Daniyar Karabayev
08/05/2025, 7:46 AM-[nf-core/emsnv] Pipeline completed with errors-
WARN: Input tuple does not match tuple declaration in process `NFCORE_EMSNV:EMSNV:FREEBAYES` -- offending value: []
ERROR ~ Execution aborted due to an unexpected error
-- Check script 'modules/nf-core/freebayes/main.nf' at line: 6 or see '.nextflow.log' file for more details
Line 6 in the freebayes module is a container declarationJames Fellows Yates
08/05/2025, 7:46 AMDaniyar Karabayev
08/05/2025, 7:47 AMch_freebayes_input = ch_masked_bam
.combine(ch_masked_bam_bai)
.map { meta_1, bam, _meta2, bai ->
tuple(meta_1, bam, bai, [], [], []) // input1, index1, input2, index2, bed
}
FREEBAYES(
ch_freebayes_input,
ch_fasta,
ch_fasta_fai,
[], // samples
[], // populations
[] // cnv
)James Fellows Yates
08/05/2025, 7:52 AMJames Fellows Yates
08/05/2025, 7:52 AMJames Fellows Yates
08/05/2025, 7:52 AM[[:],[]]James Fellows Yates
08/05/2025, 7:52 AM[]Daniyar Karabayev
08/05/2025, 7:52 AMFREEBAYES(
ch_freebayes_input,
ch_fasta,
ch_fasta_fai,
[[id:'null'], []],
[[id:'null'], []],
[[id:'null'], []] // cnv
)
It hasn’t finished yet but working. Thanks a lot! @James Fellows YatesJames Fellows Yates
08/05/2025, 7:53 AM