Skip to content

Commit 146a970

Browse files
committed
Fix workflow graphs.
1 parent 2af4a01 commit 146a970

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

xcp_d/data/tests/config.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ run_uuid = "20240205-123456"
2626
templateflow_home = "~/.cache/templateflow"
2727
work_dir = "work/"
2828
write_graph = false
29+
atlases = ["Gordon"]
2930

3031
[workflow]
31-
cifti = false
32+
file_format = "nifti"
3233
dummy_scans = 0
3334
input_type = "fmriprep"
3435
despike = false
3536
smoothing = 6
3637
combine_runs = false
37-
motion_filter_type = false
38-
band_stop_min = false
39-
band_stop_max = false
4038
motion_filter_order = 4
4139
head_radius = 50
4240
fd_thresh = 0.3
@@ -45,7 +43,6 @@ bandpass_filter = true
4543
high_pass = 0.01
4644
low_pass = 0.1
4745
bpf_order = 2
48-
atlases = []
4946
min_coverage = 0.5
5047
correlation_lengths = []
5148
process_surfaces = false

xcp_d/workflows/bold/cifti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def init_postprocess_cifti_wf(
6363
6464
run_data = collect_run_data(
6565
layout=layout,
66-
input_type="fmriprep",
6766
bold_file=bold_file,
68-
cifti=True,
67+
file_format="cifti",
68+
target_space="fsLR",
6969
)
7070
7171
from xcp_d.utils.utils import _create_mem_gb

xcp_d/workflows/bold/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def init_reho_cifti_wf(
274274
with mock_config():
275275
wf = init_reho_cifti_wf(
276276
name_source="/path/to/bold.dtseries.nii",
277-
mem_gb={"volume": 0.1},
277+
mem_gb={"bold": 0.1},
278278
name="cifti_reho_wf",
279279
)
280280
@@ -442,7 +442,7 @@ def init_reho_nifti_wf(name_source, mem_gb, name='reho_nifti_wf'):
442442
with mock_config():
443443
wf = init_reho_nifti_wf(
444444
name_source="/path/to/bold.nii.gz",
445-
mem_gb={"volume": 0.1},
445+
mem_gb={"bold": 0.1},
446446
name="nifti_reho_wf",
447447
)
448448

xcp_d/workflows/bold/nifti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def init_postprocess_nifti_wf(
6666
6767
run_data = collect_run_data(
6868
layout=layout,
69-
input_type="fmriprep",
7069
bold_file=bold_file,
71-
cifti=False,
70+
file_format="nifti",
71+
target_space="MNI152NLin2009cAsym",
7272
)
7373
7474
from xcp_d.utils.utils import _create_mem_gb

xcp_d/workflows/bold/plotting.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,13 @@ def init_execsummary_functional_plots_wf(
484484
485485
with mock_config():
486486
wf = init_execsummary_functional_plots_wf(
487-
preproc_nifti=None,
487+
preproc_nifti=str(
488+
config.execution.fmri_dir / "sub-01" / "func" /
489+
(
490+
"sub-01_task-imagery_run-01_space-MNI152NLin2009cAsym_res-2_"
491+
"desc-preproc_bold.nii.gz"
492+
)
493+
),
488494
t1w_available=True,
489495
t2w_available=True,
490496
mem_gb={"bold": 1},

xcp_d/workflows/parcellation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ def init_load_atlases_wf(name='load_atlases_wf'):
2828
2929
from xcp_d.tests.tests import mock_config
3030
from xcp_d import config
31+
from xcp_d.data import load as load_data
3132
from xcp_d.workflows.parcellation import init_load_atlases_wf
3233
3334
with mock_config():
35+
config.execution.datasets = {
36+
"xcpdatlases": str(load_data("atlases")),
37+
}
3438
wf = init_load_atlases_wf()
3539
3640
Parameters

0 commit comments

Comments
 (0)