Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

events2ev3.sh 518 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. #
  3. # Convert BIDS events.tsv to FSL's EV3 files
  4. set -e
  5. set -u
  6. # little helper
  7. printf "1.0\n1.0\n" > ones.txt
  8. for s in src/phase2/sub-*; do
  9. subj=$(basename $s)
  10. echo $subj
  11. for r in $(seq 4); do
  12. echo $r
  13. mkdir -p $subj/onsets/run-$r
  14. for c in face scene body house object scramble; do
  15. grep $c \
  16. src/phase2/$subj/ses-localizer/func/$subj*object*_run-${r}_events.tsv \
  17. | cut -f 1,2 \
  18. | paste - ones.txt \
  19. > $subj/onsets/run-$r/$c.txt
  20. done
  21. done
  22. done