-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathstop_normalizers.sh
58 lines (48 loc) · 1.7 KB
/
stop_normalizers.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
#!/usr/bin/env bash
pid=`ps auxww | grep gnormplus-normalization_19.jar | grep -v grep | awk '{print $2}' | sort -r`
if [ "$pid" != "" ]; then
kill -9 "$pid"
echo "Stopped gnormplus-normalization_19.jar"
else
echo "No gnormplus-normalization_19.jar found to stop."
fi
pid=`ps auxww | grep species_normalizer.py | grep -v grep | awk '{print $2}' | sort -r`
if [ "$pid" != "" ]; then
kill -9 "$pid"
echo "Stopped species_normalizer.py"
else
echo "No species_normalizer.py found to stop."
fi
pid=`ps auxww | grep chemical_normalizer.py | grep -v grep | awk '{print $2}' | sort -r`
if [ "$pid" != "" ]; then
kill -9 "$pid"
echo "Stopped chemical_normalizer.py"
else
echo "No chemical_normalizer.py found to stop."
fi
pid=`ps auxww | grep mutation_normalizer.py | grep -v grep | awk '{print $2}' | sort -r`
if [ "$pid" != "" ]; then
kill -9 "$pid"
echo "Stopped mutation_normalizer.py"
else
echo "No mutation_normalizer.py found to stop."
fi
pid=`ps auxww | grep disease_normalizer_19 | grep -v grep | awk '{print $2}' | sort -r`
if [ "$pid" != "" ]; then
kill -9 "$pid"
echo "Stopped disease_normalizer"
else
echo "No disease_normalizer found to stop."
fi
rm -rf normalization/resources/inputs/gene/*
rm -rf normalization/resources/inputs/chemical/*
rm -rf normalization/resources/inputs/disease/*
rm -rf normalization/resources/inputs/species/*
rm -rf normalization/resources/inputs/mutation/*
rm -rf normalization/resources/outputs/gene/*
rm -rf normalization/resources/outputs/chemical/*
rm -rf normalization/resources/outputs/disease/*
rm -rf normalization/resources/outputs/species/*
rm -rf normalization/resources/outputs/mutation/*
rm -rf normalization/resources/normalizers/gene/tmp/*
# sh reset.sh