Skip to content

Commit

Permalink
Make the anat executive summary figures too.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 6, 2023
1 parent 2054df4 commit bca0e46
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
44 changes: 20 additions & 24 deletions xcp_d/workflows/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def init_postprocess_anat_wf(
t1w_available,
t2w_available,
target_space,
dcan_qc,
omp_nthreads,
mem_gb,
name="postprocess_anat_wf",
Expand All @@ -68,7 +67,6 @@ def init_postprocess_anat_wf(
t1w_available=True,
t2w_available=True,
target_space="MNI152NLin6Asym",
dcan_qc=True,
omp_nthreads=1,
mem_gb=0.1,
name="postprocess_anat_wf",
Expand All @@ -84,7 +82,6 @@ def init_postprocess_anat_wf(
True if a preprocessed T2w is available, False if not.
target_space : :obj:`str`
Target NIFTI template for T1w.
%(dcan_qc)s
%(omp_nthreads)s
%(mem_gb)s
%(name)s
Expand Down Expand Up @@ -279,33 +276,32 @@ def init_postprocess_anat_wf(
])
# fmt:on

if dcan_qc:
execsummary_anatomical_plots_wf = init_execsummary_anatomical_plots_wf(
t1w_available=t1w_available,
t2w_available=t2w_available,
output_dir=output_dir,
name="execsummary_anatomical_plots_wf",
)
execsummary_anatomical_plots_wf = init_execsummary_anatomical_plots_wf(
t1w_available=t1w_available,
t2w_available=t2w_available,
output_dir=output_dir,
name="execsummary_anatomical_plots_wf",
)

# fmt:off
workflow.connect([
(inputnode, execsummary_anatomical_plots_wf, [("template", "inputnode.template")]),
])
# fmt:on

if t1w_available:
# fmt:off
workflow.connect([
(inputnode, execsummary_anatomical_plots_wf, [("template", "inputnode.template")]),
(ds_t1w_std, execsummary_anatomical_plots_wf, [("out_file", "inputnode.t1w")]),
])
# fmt:on

if t1w_available:
# fmt:off
workflow.connect([
(ds_t1w_std, execsummary_anatomical_plots_wf, [("out_file", "inputnode.t1w")]),
])
# fmt:on

if t2w_available:
# fmt:off
workflow.connect([
(ds_t2w_std, execsummary_anatomical_plots_wf, [("out_file", "inputnode.t2w")]),
])
# fmt:on
if t2w_available:
# fmt:off
workflow.connect([
(ds_t2w_std, execsummary_anatomical_plots_wf, [("out_file", "inputnode.t2w")]),
])
# fmt:on

return workflow

Expand Down
1 change: 0 additions & 1 deletion xcp_d/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ def init_subject_wf(
t1w_available=t1w_available,
t2w_available=t2w_available,
target_space=target_space,
dcan_qc=dcan_qc,
omp_nthreads=omp_nthreads,
mem_gb=1,
name="postprocess_anat_wf",
Expand Down

0 comments on commit bca0e46

Please sign in to comment.