-
Notifications
You must be signed in to change notification settings - Fork 5
/
Venter.sh
61 lines (47 loc) · 1.7 KB
/
Venter.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
53
54
55
56
57
58
59
60
#! /bin/bash
:'This script clones the repository,
changes directory from current where cloning is taking place to the TeamVenter_HackBio2020
It adds the rights to execute the scripts in this directory
executes all scripts via the for loop.
when executing this script you get the error of bad interpreter, consider checking the location of your
executables using which command
Once you locate the path to your executable,
edit the shebang of each script that has the error of bad interpreter or compiler'
#the command below clones the team Venter repo
git clone https://github.com/Egbusfem/VenterTeamHackBio.git
# changing directory into the repo
cd ./VenterTeamHackBio
# Create and Adding Header to the CSV file
echo "Name,Email,Slack_ID,Biosteack,Twitter_ID,Hamming_Distance" >> Venter.csv
# add the rights to execute the scripts in this repo
chmod +x script*
#Loop through all the files formats
for file in script/*.jl
do
julia $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.py
do
python3 $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.r
do
Rscript $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.java
do
java $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.cpp
do
g++ $file -o Hadia
Hadia $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.rb
do
ruby $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done
for file in script/*.m
do
matlab $file | awk -F ',' '{OFS="\t";print $1,$2,$3,$4,$5,$6}' >> Venter.csv
done