From c2205e1f077b35185e1fde2feceb790754fc6d34 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Wed, 23 Oct 2024 13:22:57 -0400 Subject: [PATCH] Add second session to test spec. --- sdcflows/utils/tests/test_wrangler.py | 126 ++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/sdcflows/utils/tests/test_wrangler.py b/sdcflows/utils/tests/test_wrangler.py index f91fc6184d..7162b9e61b 100644 --- a/sdcflows/utils/tests/test_wrangler.py +++ b/sdcflows/utils/tests/test_wrangler.py @@ -420,6 +420,132 @@ def gen_layout(bids_dir, database_dir=None): }, ], }, + { + "session": "02", + "anat": [{"suffix": "T1w", "metadata": {"EchoTime": 1}}], + "func": [ + { + "task": "rest", + "echo": "1", + "part": "mag", + "suffix": "bold", + "metadata": { + "EchoTime": 0.0142, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + { + "task": "rest", + "echo": "1", + "part": "phase", + "suffix": "bold", + "metadata": { + "EchoTime": 0.0142, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + { + "task": "rest", + "echo": "2", + "part": "mag", + "suffix": "bold", + "metadata": { + "EchoTime": 0.03893, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + { + "task": "rest", + "echo": "2", + "part": "phase", + "suffix": "bold", + "metadata": { + "EchoTime": 0.03893, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + { + "task": "rest", + "echo": "3", + "part": "mag", + "suffix": "bold", + "metadata": { + "EchoTime": 0.06366, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + { + "task": "rest", + "echo": "3", + "part": "phase", + "suffix": "bold", + "metadata": { + "EchoTime": 0.06366, + "RepetitionTime": 0.8, + "TotalReadoutTime": 0.5, + "PhaseEncodingDirection": "j", + "IntendedFor": [ + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz", + "bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz", + ], + }, + }, + ], + }, ] }