Skip to content

Commit

Permalink
[WIP] Add contitionnality for ants vs synth input
Browse files Browse the repository at this point in the history
  • Loading branch information
anroy1 committed Aug 9, 2024
1 parent ac5b6a5 commit d344adb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subworkflows/nf-scil/preproc_t1/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ workflow PREPROC_T1 {

// ** Brain extraction ** //
if ( val_synth ) {
ch_bet = IMAGE_RESAMPLE.out.image.join(ch_fs_license)
ch_bet = IMAGE_RESAMPLE.out.image
BETCROP_SYNTHBET ( ch_bet )
ch_versions = ch_versions.mix(BETCROP_SYNTHBET.out.versions.first())
}

else {
ch_template = ch_template.ifEmpty(Channel.error('Template is required for ANTS registration'))
ch_probability_map = ch_probability_map.ifEmpty(Channel.error('Probability map is required for ANTS registration'))
ch_bet = IMAGE_RESAMPLE.out.image.join(ch_template).join(ch_probability_map)
BETCROP_ANTSBET ( ch_bet )
ch_versions = ch_versions.mix(BETCROP_ANTSBET.out.versions.first())
Expand Down

0 comments on commit d344adb

Please sign in to comment.