Gabe Aldam
12/01/2025, 1:34 PMGabe Aldam
12/01/2025, 1:35 PMnextflow_workflow {
name "Test Workflow GEL_INTERPRETATION_RD_WF"
script "subworkflows/gel_interpretation_rd/main.nf"
workflow "GEL_INTERPRETATION_RD_WF"
test("Simple gel interpretation") {
when {
params {
base_dir "$baseDir/tests/data/test_1"
cohort = "test_cohort"
gel_interpretation_cache_dir = "$baseDir/tests/data/test_1/cache_dir"
gel_interpretation_configs = "test_interpretation"
gel_interpretation_containers = "combined_tiering=combined_tiering.sif"
}
workflow {
"""
input[0] = channel.fromList([
tuple([
[id:"case001"],
file("$baseDir/tests/data/test_1/input/interpretation_requests/case001.interpretation_request.json"),
[file("$baseDir/vcfs/case001.vcf.gz"), file("$baseDir/vcfs/case001.vcf.gz.tbi")],
])
])
"""
}
}
then {
assert workflow.success
//assert snapshot(workflow.out).match()
}
}
}Gabe Aldam
12/01/2025, 1:35 PMconfig {
testsDir "tests"
workDir ".nf-test"
configFile "tests/nextflow.config"
options "-stub-run"
}Gabe Aldam
12/01/2025, 1:36 PMAssertion failed:
assert workflow.success
| |
workflow false
Nextflow stdout:
[[id:case001], /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/tests/data/test_1/input/interpretation_requests/case001.interpretation_request.json, [/Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/vcfs/case001.vcf.gz, /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/vcfs/case001.vcf.gz.tbi]]
ERROR ~ Error executing process > 'GEL_INTERPRETATION_RD_WF:RD_INTERPRETATION_COMBINED (case001.combined_tiering.test_interpretation)'
Caused by:
Missing output file(s) `case001.interpretation_request.json` expected by process `GEL_INTERPRETATION_RD_WF:RD_INTERPRETATION_COMBINED (case001.combined_tiering.test_interpretation)`Gabe Aldam
12/01/2025, 1:38 PMprocess RD_INTERPRETATION_COMBINED {
tag "${meta.id}.${meta.container_name}.${meta.interpretation_config_name}"
container "${container.tiering}"
input:
tuple val(meta), path(interpretation_request), path(vcfs)
tuple val(meta2), val(interpretation_config), val(container)
path interpretation_cache_jsons
output:
tuple val(meta), path(interpretation_request), path(vcfs), emit: interpretation_request
tuple val(meta), path("${meta.id}.interpreted_genome_rd.json"), emit: interpreted_genome
tuple val(meta), val(interpretation_config), val(container), emit: interpretation_experiment
tuple val(meta), path("pyspy.prof"), optional: true, emit: pyspyprof
script:
"""
${params.gel_interpretation_python} ${projectDir}/bin/gel_interpretation_rd_combined.py \\
--interpretation-request-path ${interpretation_request} \\
--interpretation-config-path ${interpretation_config.path} \\
--interpreted-genome-out-path ${meta.id}.interpreted_genome_rd.json
"""
stub:
"""
if [ "${params.gel_interpretation_python}" != "python3" ]; then
echo "${meta.id}.${meta.container_name}.${meta.interpretation_config_name}" > pyspy.prof
fi
echo "${meta.id}.${meta.container_name}.${meta.interpretation_config_name}" > "${meta.id}.interpreted_genome_rd.json"
"""
}Niklas Schandry
12/01/2025, 2:30 PMGabe Aldam
12/01/2025, 2:32 PMNiklas Schandry
12/01/2025, 2:32 PMSimon Pearce
12/01/2025, 3:19 PMincludeInputs: true in the process output? Like your optional: trueGabe Aldam
12/01/2025, 3:40 PMprocess RD_INTERPRETATION_COMBINED {
tag "${meta.id}.${meta.container_name}.${meta.interpretation_config_name}"
input:
tuple val(meta), path(interpretation_request), path(vcfs)
tuple val(meta2), val(interpretation_config), val(container)
path interpretation_cache_jsons
output:
tuple val(meta), path(interpretation_request, includeInputs: true), path(vcfs, includeInputs: true), emit: interpretation_request
tuple val(meta), path("${meta.id}.interpreted_genome_rd.json"), emit: interpreted_genome
tuple val(meta), val(interpretation_config), val(container), emit: interpretation_experiment
tuple val(meta), path("pyspy.prof"), optional: true, emit: pyspyprof
But same error:
ERROR ~ Error executing process > 'GEL_INTERPRETATION_RD_WF:RD_INTERPRETATION_COMBINED (case001.combined_tiering.test_interpretation)'
Caused by:
Missing output file(s) `case001.interpretation_request.json` expected by process `GEL_INTERPRETATION_RD_WF:RD_INTERPRETATION_COMBINED (case001.combined_tiering.test_interpretation)`
Work dir:
/Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/.nf-test/tests/7659a6a0e0f3646117bcf86841a5a675/work/2d/26cd49c5b35c6d1b0579c8e17c6405
Files definitely exist:
ll /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/.nf-test/tests/7659a6a0e0f3646117bcf86841a5a675/work/2d/26cd49c5b35c6d1b0579c8e17c6405
total 4.0K
lrwxr-xr-x 1 gabrielaldam 158 Dec 1 15:36 case001.interpretation_request.json -> /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/tests/data/test_1/input/interpretation_requests/case001.interpretation_request.json
-rw-r--r-- 1 gabrielaldam 45 Dec 1 15:36 case001.interpreted_genome_rd.json
lrwxr-xr-x 1 gabrielaldam 94 Dec 1 15:36 case001.vcf.gz -> /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/vcfs/case001.vcf.gz
lrwxr-xr-x 1 gabrielaldam 98 Dec 1 15:36 case001.vcf.gz.tbi -> /Users/gabrielaldam/Projects/consolidate_abtiering/main/rd-tiering-ab-test/vcfs/case001.vcf.gz.tbi