diff --git a/modules/nf-neuro/image/powderaverage/main.nf b/modules/nf-neuro/image/powderaverage/main.nf index e83c765..445ffa2 100644 --- a/modules/nf-neuro/image/powderaverage/main.nf +++ b/modules/nf-neuro/image/powderaverage/main.nf @@ -32,7 +32,7 @@ process IMAGE_POWDERAVERAGE { cat <<-END_VERSIONS > versions.yml "${task.process}": - scilpy: 2.0.2 + scilpy: \$(pip list | grep scilpy | tr -s ' ' | cut -d' ' -f2) END_VERSIONS """ @@ -46,7 +46,7 @@ process IMAGE_POWDERAVERAGE { cat <<-END_VERSIONS > versions.yml "${task.process}": - scilpy: 2.0.2 + scilpy: \$(pip list | grep scilpy | tr -s ' ' | cut -d' ' -f2) END_VERSIONS """ } diff --git a/modules/nf-neuro/image/powderaverage/tests/main.nf.test b/modules/nf-neuro/image/powderaverage/tests/main.nf.test index a5e46a5..edef057 100644 --- a/modules/nf-neuro/image/powderaverage/tests/main.nf.test +++ b/modules/nf-neuro/image/powderaverage/tests/main.nf.test @@ -24,7 +24,9 @@ nextflow_process { } } - test("powderaverage - no mask") { + test("powderaverage - no mask and no shell") { + + config "./nextflow_noshells.config" when { process { @@ -49,9 +51,9 @@ nextflow_process { } } - test("powderaverage - with mask") { + test("powderaverage - with mask and shells") { - config "./nextflow.config" + config "./nextflow_shells.config" when { process { diff --git a/modules/nf-neuro/image/powderaverage/tests/main.nf.test.snap b/modules/nf-neuro/image/powderaverage/tests/main.nf.test.snap index f3c724f..befe54a 100644 --- a/modules/nf-neuro/image/powderaverage/tests/main.nf.test.snap +++ b/modules/nf-neuro/image/powderaverage/tests/main.nf.test.snap @@ -1,5 +1,5 @@ { - "powderaverage - with mask": { + "powderaverage - with mask and shells": { "content": [ { "0": [ @@ -29,12 +29,12 @@ } ], "meta": { - "nf-test": "0.9.0-rc1", - "nextflow": "24.04.3" + "nf-test": "0.9.0", + "nextflow": "24.04.4" }, - "timestamp": "2024-07-26T12:43:21.971071" + "timestamp": "2024-11-22T17:09:05.483883967" }, - "powderaverage - no mask": { + "powderaverage - no mask and no shell": { "content": [ { "0": [ @@ -64,9 +64,9 @@ } ], "meta": { - "nf-test": "0.9.0-rc1", - "nextflow": "24.04.3" + "nf-test": "0.9.0", + "nextflow": "24.04.4" }, - "timestamp": "2024-07-25T14:32:47.643306" + "timestamp": "2024-11-22T19:45:06.796263708" } } \ No newline at end of file diff --git a/modules/nf-neuro/image/powderaverage/tests/nextflow_noshells.config b/modules/nf-neuro/image/powderaverage/tests/nextflow_noshells.config new file mode 100644 index 0000000..ba09ca3 --- /dev/null +++ b/modules/nf-neuro/image/powderaverage/tests/nextflow_noshells.config @@ -0,0 +1,6 @@ +process { + withName: "IMAGE_POWDERAVERAGE" { + ext.b0_thr = 50 + ext.shell_thr = 50 + } +} diff --git a/modules/nf-neuro/image/powderaverage/tests/nextflow.config b/modules/nf-neuro/image/powderaverage/tests/nextflow_shells.config similarity index 100% rename from modules/nf-neuro/image/powderaverage/tests/nextflow.config rename to modules/nf-neuro/image/powderaverage/tests/nextflow_shells.config