Skip to content

Commit

Permalink
changing bold to desc-reorient_bold
Browse files Browse the repository at this point in the history
  • Loading branch information
birajstha committed Nov 7, 2024
1 parent 590b437 commit 043a004
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CPAC/nuisance/nuisance.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def choose_nuisance_blocks(cfg, rpool, generate_only=False):
]
apply_transform_using = to_template_cfg["apply_transform"]["using"]
input_interface = {
"default": ("desc-preproc_bold", ["desc-preproc_bold", "bold"]),
"abcd": ("desc-preproc_bold", "bold"),
"default": ("desc-preproc_bold", ["desc-preproc_bold", "desc-reorient_bold"]),
"abcd": ("desc-preproc_bold", "desc-reorient_bold"),
"single_step_resampling_from_stc": ("desc-preproc_bold", "desc-stc_bold"),
}.get(apply_transform_using)
if input_interface is not None:
Expand Down
20 changes: 10 additions & 10 deletions CPAC/registration/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,7 +3093,7 @@ def overwrite_transform_anat_to_template(wf, cfg, strat_pool, pipe_num, opt=None
"input",
],
option_val="Selected_Functional_Volume",
inputs=[("desc-brain_bold", ["desc-motion_bold", "bold"], "sbref")],
inputs=[("desc-brain_bold", ["desc-motion_bold", "desc-reorient_bold"], "sbref")],
outputs=["sbref"],
)
def coregistration_prep_vol(wf, cfg, strat_pool, pipe_num, opt=None):
Expand All @@ -3115,7 +3115,7 @@ def coregistration_prep_vol(wf, cfg, strat_pool, pipe_num, opt=None):
else:
# TODO check which file is functional_skull_leaf
# TODO add a function to choose brain or skull?
node, out = strat_pool.get_data(["desc-motion_bold", "bold"])
node, out = strat_pool.get_data(["desc-motion_bold", "desc-reorient_bold"])

wf.connect(node, out, get_func_volume, "in_file_a")

Expand Down Expand Up @@ -3579,7 +3579,7 @@ def create_func_to_T1template_symmetric_xfm(wf, cfg, strat_pool, pipe_num, opt=N
"sbref",
"desc-preproc_bold",
"desc-stc_bold",
"bold",
"desc-reorient_bold",
"from-bold_to-T1w_mode-image_desc-linear_xfm",
),
"despiked-fieldmap",
Expand Down Expand Up @@ -3667,7 +3667,7 @@ def apply_phasediff_to_timeseries_separately(wf, cfg, strat_pool, pipe_num, opt=
node, out = strat_pool.get_data("desc-stc_bold")
out_label = "desc-stc_bold"
elif opt == "abcd":
node, out = strat_pool.get_data("bold")
node, out = strat_pool.get_data("desc-reorient_bold")
out_label = "bold"

wf.connect(node, out, warp_bold, "in_file")
Expand Down Expand Up @@ -3718,7 +3718,7 @@ def apply_phasediff_to_timeseries_separately(wf, cfg, strat_pool, pipe_num, opt=
"sbref",
"desc-preproc_bold",
"desc-stc_bold",
"bold",
"desc-reorient_bold",
"from-bold_to-template_mode-image_xfm",
"ants-blip-warp",
"fsl-blip-warp",
Expand Down Expand Up @@ -3775,8 +3775,8 @@ def apply_blip_to_timeseries_separately(wf, cfg, strat_pool, pipe_num, opt=None)
node, out = strat_pool.get_data("desc-stc_bold")
out_label = "desc-stc_bold"
elif opt == "abcd":
node, out = strat_pool.get_data("bold")
out_label = "bold"
node, out = strat_pool.get_data("desc-reorient_bold")
out_label = "desc-reorient_bold"

wf.connect(node, out, apply_xfm, "inputspec.input_image")

Expand Down Expand Up @@ -4421,7 +4421,7 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
option_val="dcan_nhp",
inputs=[
(
["desc-reorient_bold", "bold"],
["desc-reorient_bold", "desc-preproc_bold"],
"coordinate-transformation",
"from-T1w_to-template_mode-image_warp",
"from-bold_to-T1w_mode-image_desc-linear_warp",
Expand Down Expand Up @@ -4552,7 +4552,7 @@ def warp_timeseries_to_T1template_dcan_nhp(wf, cfg, strat_pool, pipe_num, opt=No
extract_func_roi.inputs.t_min = 0
extract_func_roi.inputs.t_size = 3

node, out = strat_pool.get_data(["desc-reorient_bold", "bold"])
node, out = strat_pool.get_data(["desc-reorient_bold", "desc-preproc_bold"])
wf.connect(node, out, extract_func_roi, "in_file")

# fslmaths "$fMRIFolder"/"$NameOffMRI"_gdc_warp -mul 0 "$fMRIFolder"/"$NameOffMRI"_gdc_warp
Expand All @@ -4570,7 +4570,7 @@ def warp_timeseries_to_T1template_dcan_nhp(wf, cfg, strat_pool, pipe_num, opt=No

split_func.inputs.dimension = "t"

node, out = strat_pool.get_data(["desc-reorient_bold", "bold"])
node, out = strat_pool.get_data(["desc-reorient_bold", "desc-preproc_bold"])
wf.connect(node, out, split_func, "in_file")

### Loop starts! ###
Expand Down

0 comments on commit 043a004

Please sign in to comment.