From 43e74cbf51170fdd6e8ad352d237dee3afedd36e Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 29 Oct 2024 14:23:14 -0400 Subject: [PATCH] update --- xcp_d/interfaces/connectivity.py | 1 + xcp_d/workflows/bold/connectivity.py | 1 + 2 files changed, 2 insertions(+) diff --git a/xcp_d/interfaces/connectivity.py b/xcp_d/interfaces/connectivity.py index 3596b1b17..16debe930 100644 --- a/xcp_d/interfaces/connectivity.py +++ b/xcp_d/interfaces/connectivity.py @@ -263,6 +263,7 @@ def correlate_timeseries(timeseries, temporal_mask): def flatten_conmat(df): + """Flatten a correlation matrix.""" df = df.where(np.triu(np.ones(df.shape[0])).astype(bool)) df = df.stack().reset_index() df.columns = ["Row", "Column", "Value"] diff --git a/xcp_d/workflows/bold/connectivity.py b/xcp_d/workflows/bold/connectivity.py index b267208fa..ea869ab18 100644 --- a/xcp_d/workflows/bold/connectivity.py +++ b/xcp_d/workflows/bold/connectivity.py @@ -473,6 +473,7 @@ def init_functional_connectivity_cifti_wf(mem_gb, exact_scans, name="connectivit niu.Merge(len(exact_scans)), name="collect_exact_tsvs", ) + workflow.connect([(collect_exact_tsvs, outputnode, [("out", "correlations_exact")])]) for i_exact_scan, exact_scan in enumerate(exact_scans): reduce_exact_bold = pe.MapNode(