Skip to content

Commit

Permalink
fix copy paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
anroy1 committed Sep 24, 2024
1 parent eee93dc commit 77a3ffa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 348 deletions.
6 changes: 2 additions & 4 deletions subworkflows/nf-neuro/preproc_t1/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ workflow PREPROC_T1 {

// ** Brain extraction ** //
if ( params.run_synthbet) {
BETCROP_ANTSBET ( ch_bet )
ch_bet = IMAGE_RESAMPLE.out.image.join(ch_weights)
ch_versions = ch_versions.mix(BETCROP_ANTSBET.out.versions.first())
BETCROP_SYNTHBET ( ch_bet )
ch_versions = ch_versions.mix(BETCROP_SYNTHBET.out.versions.first())

Expand All @@ -65,12 +63,12 @@ workflow PREPROC_T1 {
}

// ** crop image ** //
ch_crop = image_bet.t1.map{it + [[]]}
ch_crop = image_bet.map{it + [[]]}
BETCROP_CROPVOLUME_T1 ( ch_crop )
ch_versions = ch_versions.mix(BETCROP_CROPVOLUME_T1.out.versions.first())

// ** crop mask ** //
ch_crop_mask = mask_bet.mask.join(BETCROP_CROPVOLUME_T1.out.bounding_box)
ch_crop_mask = mask_bet.join(BETCROP_CROPVOLUME_T1.out.bounding_box)
BETCROP_CROPVOLUME_MASK ( ch_crop_mask )
ch_versions = ch_versions.mix(BETCROP_CROPVOLUME_MASK.out.versions.first())

Expand Down
344 changes: 0 additions & 344 deletions subworkflows/nf-neuro/preproc_t1/tests/main.nf.test.snap

This file was deleted.

19 changes: 19 additions & 0 deletions subworkflows/nf-neuro/preproc_t1/tests/nextflow_synthbet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
process {
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
withName: "IMAGE_RESAMPLE" {
ext.voxel_size = 1
ext.interp = "lin"
}
withName: "BETCROP_CROPVOLUME_T1" {
ext.output_bbox = true
ext.first_suffix = "t1"
}
withName: "BETCROP_SYNTHBET" {
memory = 8.GB
ext.nocsf = true
}
}

params {
run_synthbet = true
}

0 comments on commit 77a3ffa

Please sign in to comment.