From 61c46c64638dc552cd16e815057d2a088e617935 Mon Sep 17 00:00:00 2001 From: David Meunier Date: Fri, 6 Dec 2024 14:03:19 +0100 Subject: [PATCH] native_T1 --- macapype/pipelines/prepare.py | 8 ++------ macapype/pipelines/register.py | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/macapype/pipelines/prepare.py b/macapype/pipelines/prepare.py index ac04a0f1..298c845f 100644 --- a/macapype/pipelines/prepare.py +++ b/macapype/pipelines/prepare.py @@ -404,21 +404,17 @@ def create_short_preparation_pipe(params, params_template={}, crop_T1, "roi_file", crop_aladin_pipe, 'inputnode.native_T1') - data_preparation_pipe.connect( - crop_T1, "roi_file", - crop_aladin_pipe, 'inputnode.orig_native_T1') - else: # connect orig_native_T1 if "avg_reorient_pipe" in params.keys(): data_preparation_pipe.connect( av_T1, 'outputnode.std_img', - crop_aladin_pipe, 'inputnode.orig_native_T1') + crop_aladin_pipe, 'inputnode.native_T1') else: data_preparation_pipe.connect( av_T1, 'avg_img', - crop_aladin_pipe, 'inputnode.orig_native_T1') + crop_aladin_pipe, 'inputnode.native_T1') data_preparation_pipe.connect( inputnode, 'indiv_params', diff --git a/macapype/pipelines/register.py b/macapype/pipelines/register.py index 50ca1a1b..42ca94b5 100644 --- a/macapype/pipelines/register.py +++ b/macapype/pipelines/register.py @@ -539,6 +539,7 @@ def _create_remove_capsule_pipeline(name="remove_capsule_pipe", params={}): return remove_caps_pipe + def create_crop_aladin_pipe(name="crop_aladin_pipe", params={}): reg_pipe = pe.Workflow(name=name)