Skip to content

Commit

Permalink
fix(synthetic): Generate synthetic stimuli
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 11, 2024
1 parent dc0b73d commit 4ca8555
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions synthetic/code/create_synthethic_ds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ca8555

Please sign in to comment.