-
Notifications
You must be signed in to change notification settings - Fork 1
/
testdocker2.sh
executable file
·24 lines (21 loc) · 982 Bytes
/
testdocker2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
MYIPADDRESS=`ifconfig en0 | grep 'inet ' | awk '{print $2}'`
VERSION=latest
# allow network connections in Xquartz Security settings
xhost +
# Allow your local user access via xhost: xhost +SI:localuser:picachooser and create a similar user with docker run option: --user=$(id -u):$(id -g)
docker pull fredericklab/picachooser:${VERSION}
docker run \
--network host\
--volume=/Users/frederic:/Users/frederic \
-it \
-e DISPLAY=${MYIPADDRESS}:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-u picachooser fredericklab/picachooser:${VERSION} \
PICAchooser \
melodic \
--featdir /Users/frederic/Dropbox_PHC/MR_data/gradertest/079N_resting_visit1.feat \
--melodicdir /Users/frederic/Dropbox_PHC/MR_data/gradertest/079N_resting_visit1.feat/filtered_func_data.ica \
--usereferencefile \
--retainthresh 1.1 \
--ICreffile /Users/frederic/Dropbox_PHC/MR_data/gradertest/079N_resting_visit1.feat/filtered_func_data.ica/melodic_IC.nii.gz