From afec64bb7da00d290bee09a2fe26b463a52a12b8 Mon Sep 17 00:00:00 2001 From: tombch Date: Wed, 30 Oct 2024 11:45:31 +0100 Subject: [PATCH] Add torch_tune setup --- .../analysisdefault/tests/main.nf.test | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/modules/nf-core/stimulus/analysisdefault/tests/main.nf.test b/modules/nf-core/stimulus/analysisdefault/tests/main.nf.test index cc2f52060fd..3ff9ba0aae8 100644 --- a/modules/nf-core/stimulus/analysisdefault/tests/main.nf.test +++ b/modules/nf-core/stimulus/analysisdefault/tests/main.nf.test @@ -30,7 +30,15 @@ nextflow_process { script "../../../stimulus/torchtune/main.nf" process { """ - // TODO define inputs + experiment_ch = Channel.of([ + [ id:'test'], + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/experiment_config.json', checkIfExists: true) + ]) + input[0] = STIMULUS_SPLITCSV.out.split_csv.join(experiment_ch) + input[1] = [ + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/tune_config.yaml', checkIfExists: true), + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/dna_to_float_model.py', checkIfExists: true) + ] """ } } @@ -87,7 +95,15 @@ nextflow_process { script "../../../stimulus/torchtune/main.nf" process { """ - // TODO copy + experiment_ch = Channel.of([ + [ id:'test'], + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/experiment_config.json', checkIfExists: true) + ]) + input[0] = STIMULUS_SPLITCSV.out.split_csv.join(experiment_ch) + input[1] = [ + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/tune_config.yaml', checkIfExists: true), + file(params.modules_testdata_base_path + '../../deepmodeloptim/testdata/dna_experiment/dna_to_float_model.py', checkIfExists: true) + ] """ } }