From 451d08a509b21f40554bb17dc8db1de6d7514e8c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 5 Feb 2025 17:41:25 -0500 Subject: [PATCH 1/2] Adjust create_synthethic_ds.sh to use 2 tasknames with + Ref: https://github.com/bids-standard/bids-specification/pull/1926 --- synthetic/code/create_synthethic_ds.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 synthetic/code/create_synthethic_ds.sh diff --git a/synthetic/code/create_synthethic_ds.sh b/synthetic/code/create_synthethic_ds.sh old mode 100644 new mode 100755 index af4464a5d..0de374131 --- a/synthetic/code/create_synthethic_ds.sh +++ b/synthetic/code/create_synthethic_ds.sh @@ -16,16 +16,17 @@ create_raw_beh() { ses=$3 suffix='_beh' - task_name='stroop' this_dir=${target_dir}/sub-${subject}/ses-${ses}/beh mkdir -p ${this_dir} - filename=${this_dir}/sub-${subject}_ses-${ses}_task-${task_name}${suffix}.tsv - echo -e "trial\tresponse\treaction_time\tstim_file" >${filename} - echo -e "congruent\tred\t1.435\timages/word-red_color-red.jpg" >>${filename} - echo -e "incongruent\tred\t1.739\timages/word-red_color-blue.jpg" >>${filename} + for task_name in stroop+whitebg stroop+blackbg; do + filename=${this_dir}/sub-${subject}_ses-${ses}_task-${task_name}${suffix}.tsv + echo -e "trial\tresponse\treaction_time\tstim_file" >${filename} + echo -e "congruent\tred\t1.435\timages/word-red_color-red.jpg" >>${filename} + echo -e "incongruent\tred\t1.739\timages/word-red_color-blue.jpg" >>${filename} + done } # RAW DATASET From a07ec25178f92947a9e624a8e67b44053593fe8a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 5 Feb 2025 17:47:22 -0500 Subject: [PATCH 2/2] [DATALAD RUNCMD] Recreate beh/ portion of synthetic dataset with new tasks === Do not change lines below === { "chain": [], "cmd": "rm -rf sub-*/ses-*/beh && code/create_synthethic_ds.sh", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "synthetic" } ^^^ Do not change lines above ^^^ --- ...troop_beh.tsv => sub-01_ses-01_task-stroop+blackbg_beh.tsv} | 0 .../ses-01/beh/sub-01_ses-01_task-stroop+whitebg_beh.tsv} | 0 .../ses-01/beh/sub-02_ses-01_task-stroop+blackbg_beh.tsv} | 0 .../ses-01/beh/sub-02_ses-01_task-stroop+whitebg_beh.tsv} | 0 .../ses-01/beh/sub-03_ses-01_task-stroop+blackbg_beh.tsv} | 0 .../ses-01/beh/sub-03_ses-01_task-stroop+whitebg_beh.tsv | 3 +++ .../ses-01/beh/sub-04_ses-01_task-stroop+blackbg_beh.tsv | 3 +++ .../ses-01/beh/sub-04_ses-01_task-stroop+whitebg_beh.tsv | 3 +++ .../ses-01/beh/sub-05_ses-01_task-stroop+blackbg_beh.tsv | 3 +++ .../ses-01/beh/sub-05_ses-01_task-stroop+whitebg_beh.tsv | 3 +++ 10 files changed, 15 insertions(+) rename synthetic/sub-01/ses-01/beh/{sub-01_ses-01_task-stroop_beh.tsv => sub-01_ses-01_task-stroop+blackbg_beh.tsv} (100%) rename synthetic/{sub-02/ses-01/beh/sub-02_ses-01_task-stroop_beh.tsv => sub-01/ses-01/beh/sub-01_ses-01_task-stroop+whitebg_beh.tsv} (100%) rename synthetic/{sub-03/ses-01/beh/sub-03_ses-01_task-stroop_beh.tsv => sub-02/ses-01/beh/sub-02_ses-01_task-stroop+blackbg_beh.tsv} (100%) rename synthetic/{sub-04/ses-01/beh/sub-04_ses-01_task-stroop_beh.tsv => sub-02/ses-01/beh/sub-02_ses-01_task-stroop+whitebg_beh.tsv} (100%) rename synthetic/{sub-05/ses-01/beh/sub-05_ses-01_task-stroop_beh.tsv => sub-03/ses-01/beh/sub-03_ses-01_task-stroop+blackbg_beh.tsv} (100%) create mode 100644 synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+whitebg_beh.tsv create mode 100644 synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+blackbg_beh.tsv create mode 100644 synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+whitebg_beh.tsv create mode 100644 synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+blackbg_beh.tsv create mode 100644 synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+whitebg_beh.tsv diff --git a/synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop_beh.tsv b/synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop+blackbg_beh.tsv similarity index 100% rename from synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop_beh.tsv rename to synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop+blackbg_beh.tsv diff --git a/synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop_beh.tsv b/synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop+whitebg_beh.tsv similarity index 100% rename from synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop_beh.tsv rename to synthetic/sub-01/ses-01/beh/sub-01_ses-01_task-stroop+whitebg_beh.tsv diff --git a/synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop_beh.tsv b/synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop+blackbg_beh.tsv similarity index 100% rename from synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop_beh.tsv rename to synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop+blackbg_beh.tsv diff --git a/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop_beh.tsv b/synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop+whitebg_beh.tsv similarity index 100% rename from synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop_beh.tsv rename to synthetic/sub-02/ses-01/beh/sub-02_ses-01_task-stroop+whitebg_beh.tsv diff --git a/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop_beh.tsv b/synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+blackbg_beh.tsv similarity index 100% rename from synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop_beh.tsv rename to synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+blackbg_beh.tsv diff --git a/synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+whitebg_beh.tsv b/synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+whitebg_beh.tsv new file mode 100644 index 000000000..655289e92 --- /dev/null +++ b/synthetic/sub-03/ses-01/beh/sub-03_ses-01_task-stroop+whitebg_beh.tsv @@ -0,0 +1,3 @@ +trial response reaction_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg diff --git a/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+blackbg_beh.tsv b/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+blackbg_beh.tsv new file mode 100644 index 000000000..655289e92 --- /dev/null +++ b/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+blackbg_beh.tsv @@ -0,0 +1,3 @@ +trial response reaction_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg diff --git a/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+whitebg_beh.tsv b/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+whitebg_beh.tsv new file mode 100644 index 000000000..655289e92 --- /dev/null +++ b/synthetic/sub-04/ses-01/beh/sub-04_ses-01_task-stroop+whitebg_beh.tsv @@ -0,0 +1,3 @@ +trial response reaction_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg diff --git a/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+blackbg_beh.tsv b/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+blackbg_beh.tsv new file mode 100644 index 000000000..655289e92 --- /dev/null +++ b/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+blackbg_beh.tsv @@ -0,0 +1,3 @@ +trial response reaction_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg diff --git a/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+whitebg_beh.tsv b/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+whitebg_beh.tsv new file mode 100644 index 000000000..655289e92 --- /dev/null +++ b/synthetic/sub-05/ses-01/beh/sub-05_ses-01_task-stroop+whitebg_beh.tsv @@ -0,0 +1,3 @@ +trial response reaction_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg