-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain
executable file
·39 lines (33 loc) · 914 Bytes
/
main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#PBS -l nodes=1:ppn=1
#PBS -l walltime=02:00:00
#PBS -N detect_alpha_peak
# PBS is a computer software that performs job-scheduling
# Copyright (c) 2020 brainlife.io at University of Texas at Austin and Indiana U
#
# This is the main file run by the brainlife.io orchestration system
#
# Author: Franco Pestilli
set -e
set -x
# Make output directories
mkdir -p out_dir
# Run the actual python code
singularity exec docker://brainlife/mne:0.23dev python3 detect_alpha_peak.py
# Store PSD plot with alpha peak on product.json
cat << EOF > product.json
{
"brainlife": [
{
"type": "image/png",
"name": "Alpha peak on mean spectrum",
"base64": "$(base64 -w 0 out_dir/psd_mean.png)"
},
{
"type": "image/png",
"name": "Power spectrum for all channels",
"base64": "$(base64 -w 0 out_dir/psd_channels.png)"
}
]
}
EOF