Skip to content

Commit

Permalink
It needs a third session!
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 23, 2024
1 parent c2205e1 commit 670ebc8
Showing 1 changed file with 162 additions and 36 deletions.
198 changes: 162 additions & 36 deletions sdcflows/utils/tests/test_wrangler.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,12 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand All @@ -455,12 +455,12 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand All @@ -475,12 +475,12 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand All @@ -495,12 +495,12 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand All @@ -515,12 +515,12 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand All @@ -535,12 +535,138 @@ def gen_layout(bids_dir, database_dir=None):
"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",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
],
},
{
"session": "03",
"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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_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-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
Expand Down

0 comments on commit 670ebc8

Please sign in to comment.