From 5894f7346bc53a6911a60126a1747e8a7f691415 Mon Sep 17 00:00:00 2001 From: Matthieu Joulot <85217698+MatthieuJoulot@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:03:48 +0100 Subject: [PATCH] Add flair to processing check (#1028) * improvements of Genfi * Revert "improvements of Genfi" This reverts commit c79fb8027fd8185384ed132a3ffa4c5f0e13a2e2. * add_flair_to_processing_check --------- Co-authored-by: JOULOT Matthieu Co-authored-by: JOULOT Matthieu --- clinica/iotools/utils/data_handling.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clinica/iotools/utils/data_handling.py b/clinica/iotools/utils/data_handling.py index 65697f21e..ef98eed03 100644 --- a/clinica/iotools/utils/data_handling.py +++ b/clinica/iotools/utils/data_handling.py @@ -528,6 +528,12 @@ def compute_missing_processing(bids_dir, caps_dir, out_file): else: row_df.loc[0, "t1-linear"] = "0" + # Check flair-linear outputs + if path.exists(path.join(session_path, "flair_linear")): + row_df.loc[0, "flair-linear"] = "1" + else: + row_df.loc[0, "flair-linear"] = "0" + # Check t1-freesurfer outputs if path.exists(path.join(session_path, "t1", "freesurfer_cross_sectional")): row_df.loc[0, "t1-freesurfer"] = "1"