From 04cc9a2607bbd5afb6b62d975bc3785a0bd32369 Mon Sep 17 00:00:00 2001 From: Basile Date: Fri, 22 Mar 2024 19:19:10 -0400 Subject: [PATCH] FIX: Require recent templateflow, select correct aparc dseg.tsv (#3256) --- fmriprep/cli/run.py | 11 ++++++++++- pyproject.toml | 2 +- requirements.txt | 4 +--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/fmriprep/cli/run.py b/fmriprep/cli/run.py index a3f99b61b..af4ffad4b 100644 --- a/fmriprep/cli/run.py +++ b/fmriprep/cli/run.py @@ -197,7 +197,16 @@ def main(): from niworkflows.utils.misc import _copy_any from templateflow import api - dseg_tsv = str(api.get('fsaverage', suffix='dseg', extension=['.tsv'])) + dseg_tsv = str( + api.get( + 'fsaverage', + hemi=None, + atlas=None, + segmentation='aparc', + suffix='dseg', + extension=['.tsv'], + ) + ) _copy_any(dseg_tsv, str(config.execution.fmriprep_dir / 'desc-aseg_dseg.tsv')) _copy_any(dseg_tsv, str(config.execution.fmriprep_dir / 'desc-aparcaseg_dseg.tsv')) errno = 0 diff --git a/pyproject.toml b/pyproject.toml index 320c3da77..c65bc12f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "sdcflows @ git+https://github.com/nipreps/sdcflows.git@master", "smriprep @ git+https://github.com/nipreps/smriprep.git@master", "tedana >= 23.0.2", - "templateflow >= 23.0.0", + "templateflow >= 24.1.0", "toml", "codecarbon", "APScheduler", diff --git a/requirements.txt b/requirements.txt index 5b696fd0b..a41ffdd8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -418,10 +418,8 @@ tedana==23.0.2 # via # fmriprep # fmriprep (pyproject.toml) -templateflow==23.1.0 +templateflow==24.2.0 # via - # fmriprep - # fmriprep (pyproject.toml) # nireports # niworkflows # sdcflows