-
Notifications
You must be signed in to change notification settings - Fork 0
/
covid-pipeline.sh
50 lines (40 loc) · 1.17 KB
/
covid-pipeline.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
#!/bin/bash
#Author: Vijay Nagarajan PhD
#American Academy For Biomedical Informatics
#License: GNU GPL
#source configuration info
source config.txt
#r library directory
mkdir -p ~/R/library
echo "R_LIBS=~/R/library" >> ~/.Renviron
#echo user data
printf "\n"
echo "Cytoscape Path: $cytoscape_path"
echo "JDK Path: $jdk_path"
echo "Input Data File: $input_confirmedcases"
echo "Input Attributes File: $input_regionattributes"
#remove old files
rm -rf images/covid-19-network.cys
rm -rf images/covid-19-transmission-similarity-dtw-network.svg
rm -rf images/covid-19-current-dtw-tree-meta.svg
#cp files to working directory
cp $input_confirmedcases data/time_series_current.csv
cp $input_regionattributes data/states-attributes.csv
#run meta data generation script
php scripts/covid-process-meta.php > data/time_series_current_meta.csv
#start cytoscape
printf "\n"
echo "waiting for cytoscape to start"
bash scripts/runcytoscape.sh &
sleep 60
#run rscript
Rscript scripts/covidapp.R
sleep 15
#close cytoscape and exit
xtermid=$(pgrep xterm)
kill $xtermid
printf "\n"
echo -n "Run complete, your results are in images folder within this working directory: "
ls -lh images
printf "\n"
exit