From 4ca8555269b90f85a6bd3a10b64b8242b7ea8e34 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 11 Nov 2024 14:00:07 -0500 Subject: [PATCH] fix(synthetic): Generate synthetic stimuli --- synthetic/code/create_synthethic_ds.sh | 15 +++++++++------ synthetic/stimuli/images/word-red_color-blue.jpg | 0 synthetic/stimuli/images/word-red_color-red.jpg | 0 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 synthetic/stimuli/images/word-red_color-blue.jpg create mode 100644 synthetic/stimuli/images/word-red_color-red.jpg diff --git a/synthetic/code/create_synthethic_ds.sh b/synthetic/code/create_synthethic_ds.sh index eed0a4d05..af4464a5d 100644 --- a/synthetic/code/create_synthethic_ds.sh +++ b/synthetic/code/create_synthethic_ds.sh @@ -3,8 +3,8 @@ # small bash script to create a synthethic BIDS data set # defines where the BIDS data set will be created -start_dir=$(pwd) -raw_dir=${start_dir}/../ +code_dir=$( dirname $0 ) +raw_dir=$( dirname $code_dir ) subject_list='01 02 03 04 05' session_list='01' @@ -23,10 +23,9 @@ create_raw_beh() { mkdir -p ${this_dir} filename=${this_dir}/sub-${subject}_ses-${ses}_task-${task_name}${suffix}.tsv - echo "trial\tresponse\treaction_time\tstim_file" >${filename} - echo "congruent\tred\t1.435\timages/word-red_color-red.jpg" >>${filename} - echo "incongruent\tred\t1.739\timages/word-red_color-blue.jpg" >>${filename} - + 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} } # RAW DATASET @@ -36,3 +35,7 @@ for subject in ${subject_list}; do done done + +mkdir -p ${raw_dir}/stimuli/images +touch ${raw_dir}/stimuli/images/word-red_color-red.jpg +touch ${raw_dir}/stimuli/images/word-red_color-blue.jpg diff --git a/synthetic/stimuli/images/word-red_color-blue.jpg b/synthetic/stimuli/images/word-red_color-blue.jpg new file mode 100644 index 000000000..e69de29bb diff --git a/synthetic/stimuli/images/word-red_color-red.jpg b/synthetic/stimuli/images/word-red_color-red.jpg new file mode 100644 index 000000000..e69de29bb