Skip to content

Commit

Permalink
[FIX] use correct arguments for merging distortion groups (#831)
Browse files Browse the repository at this point in the history
use correct arguments for merging distortion groups
  • Loading branch information
mattcieslak authored Oct 25, 2024
1 parent 2967323 commit 493ed62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions qsiprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ def init_single_subject_wf(subject_id: str):
merging_group_workflows = {}
for merged_group in merged_group_names:
merging_group_workflows[merged_group] = init_distortion_group_merge_wf(
template=config.workflow.anatomical_template,
output_prefix=merged_group,
merging_strategy=config.workflow.distortion_group_merge,
source_file=merged_group + "_dwi.nii.gz",
inputs_list=merged_to_subgroups[merged_group],
name=merged_group.replace("-", "_") + "_final_merge_wf",
Expand Down
4 changes: 2 additions & 2 deletions qsiprep/workflows/dwi/distortion_group_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def init_distortion_group_merge_wf(
merging_strategy,
inputs_list,
source_file,
name,
) -> Workflow:
"""Create an unbiased intramodal template for a subject. This aligns the b=0 references
from all the scans of a subject. Can be rigid, affine or nonlinear (BSplineSyN).
Expand Down Expand Up @@ -81,7 +82,7 @@ def init_distortion_group_merge_wf(
The interactive report data
"""

workflow = Workflow(name="distortion_group_merge_wf")
workflow = Workflow(name=name)
source_file = "dwi/" + source_file
sanitized_inputs = [name.replace("-", "_") for name in inputs_list]
input_names = ["t1_brain", "t1_mask", "t1_seg"]
Expand Down Expand Up @@ -164,7 +165,6 @@ def init_distortion_group_merge_wf(
distortion_merger = pe.Node(MergeDWIs(), name="distortion_merger")
b0_ref_wf = init_dwi_reference_wf(
name="merged_b0_ref",
register_t1=False,
gen_report=True,
source_file=source_file,
)
Expand Down

0 comments on commit 493ed62

Please sign in to comment.