From 9984eb32dda72d58e51a8da935d943b0d172bd28 Mon Sep 17 00:00:00 2001 From: anroy1 Date: Tue, 24 Sep 2024 16:47:07 +0000 Subject: [PATCH] Run tests --- .../synthseg/tests/main.nf.test.snap | 67 +++++++++++++++++++ .../synthseg/tests/nextflow_basic.config | 2 +- 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 modules/nf-neuro/segmentation/synthseg/tests/main.nf.test.snap diff --git a/modules/nf-neuro/segmentation/synthseg/tests/main.nf.test.snap b/modules/nf-neuro/segmentation/synthseg/tests/main.nf.test.snap new file mode 100644 index 0000000..a60de29 --- /dev/null +++ b/modules/nf-neuro/segmentation/synthseg/tests/main.nf.test.snap @@ -0,0 +1,67 @@ +{ + "segmentation - synthseg - options": { + "content": [ + "test__mask_wm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,95946cf22f6adf539b65c72b49eb3b32", + "test__mask_gm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,a54f8c03a17a16d9271534c387434720", + "test__mask_csf.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,3895c471bc8b06446a8adbba9fe235f7", + "test__parc.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,cb9a481316ae64dceb229879bd0c6619", + [ + + ], + [ + [ + { + "id": "test" + }, + "test__vol.csv:md5,c5c29a038e4f43abcce1845bc429952c" + ] + ], + [ + [ + { + "id": "test" + }, + "test__qc.csv:md5,333de3d7b60916596f0460c808b598f5" + ] + ], + [ + "versions.yml:md5,b65418e9ce2ab1cce590b1f659e18c1d" + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-24T15:18:05.139687" + }, + "segmentation - synthseg - basic": { + "content": [ + "test__mask_wm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,1b5a4d63ae2b56d9d6936313b5225b55", + "test__mask_gm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,c093a4b4c8c5804342b7ea8eea6164fb", + "test__mask_csf.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,c9abaab9c5e047fadf928a6520929d5e", + [ + "versions.yml:md5,b65418e9ce2ab1cce590b1f659e18c1d" + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-24T16:30:16.454647" + }, + "segmentation - synthseg - lesion": { + "content": [ + "test__mask_wm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,6d99d71cff4a2f9d147c45b1ee36dce0", + "test__mask_gm.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,c093a4b4c8c5804342b7ea8eea6164fb", + "test__mask_csf.nii.gz:md5:header,a0430ca63ccc3bb2b925694cb7568388,data,c9abaab9c5e047fadf928a6520929d5e", + [ + "versions.yml:md5,b65418e9ce2ab1cce590b1f659e18c1d" + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-24T15:19:58.108829" + } +} \ No newline at end of file diff --git a/modules/nf-neuro/segmentation/synthseg/tests/nextflow_basic.config b/modules/nf-neuro/segmentation/synthseg/tests/nextflow_basic.config index b520af9..a727a9f 100644 --- a/modules/nf-neuro/segmentation/synthseg/tests/nextflow_basic.config +++ b/modules/nf-neuro/segmentation/synthseg/tests/nextflow_basic.config @@ -1,5 +1,5 @@ process { - memory = "8G" + memory = "10G" publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } ext.fast = true }