-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bridges.sh
executable file
·52 lines (47 loc) · 1.3 KB
/
run.bridges.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
export CELLORGANIZER=/pylon5/bi5fpcp/icaoberg/allen_institute/cellorganizer3
export PATH=$PATH:/pylon5/bi5fpcp/icaoberg/allen_institute/bftools
export PATH=$PATH:/opt/packages/ffmpeg/3.1.1/bin
export PATH=$PATH:/opt/packages/pandoc/1.17.2/
if [ $# -eq 0 ]; then
rsync -ruv tools/ galaxy/tools/
cp tool_conf.xml galaxy/config
cd galaxy
bash ./run.sh --log-file /pylon5/bi5fpcp/icaoberg/allen_institute/cellorganizer-galaxy-tools/galaxy/galaxy.log
fi
if [ $# -eq 1 ]; then
if [ "$1" == "install" ]; then
git submodule init
git submodule update
cd galaxy
git fetch --all
git checkout release_17.09
cd ..
cp galaxy.ini galaxy/config
cp tool_conf.xml galaxy/config
cp datatypes_conf.xml galaxy/config
rsync -ruv tool-data/ galaxy/tool-data # for future usage
cp welcome.html galaxy/static/
rsync -ruv tools/ galaxy/tools/
cd galaxy
bash ./run.sh
fi
if [ "$1" == "reinstall" ]; then
rm -rfv galaxy
mkdir galaxy
git submodule init
git submodule update
cp galaxy.ini galaxy/config
cp tool_conf.xml galaxy/config
cp datatypes_conf.xml galaxy/config
rsync -ruv tool-data/ galaxy/tool-data # for future usage
cp welcome.html galaxy/static/
rsync -ruv tools/ galaxy/tools/
cd galaxy
bash ./run.sh
fi
if [ "$1" == "clean" ]; then
rm -rfv galaxy
mkdir galaxy
fi
fi