Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 29, 2024
1 parent 3f72d7e commit 43e74cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions xcp_d/interfaces/connectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions xcp_d/workflows/bold/connectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 43e74cb

Please sign in to comment.