Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tools/scaling/scaling_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def collect_config(
columns named "<modality>-1", "<modality>-2".
timepoints : list[str]
The timepoints to consider in the longitudinal analysis.
Default None.
workflow_id : str
The workflow declared name in brainprep CLI.
workflow_parameters : str
Expand Down Expand Up @@ -439,7 +440,11 @@ def collect_config(
key = key[1:] if key[0] == "!" else key
if key.endswith("s") and key[:-1] in long_dfs:
df_ = long_dfs[key[:-1]]
df_ = df_.filter(regex=f"-({'|'.join(timepoints)})$").copy()
df_ = (
df_.filter(regex=f"-({'|'.join(timepoints)})$").copy()
if timepoints is not None
else df_.copy()
)
subset = [
name
for name in df_.columns
Expand Down
Loading