-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_blat
executable file
·40 lines (34 loc) · 1.3 KB
/
start_blat
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
#!/bin/bash
# echo "processing genomes"
# cols=$(head -n 1 /tmp/dbDb.tsv)
# tail -n+2 /tmp/dbDb.tsv | while IFS=$'\t' read -r $cols
# do
# if [ $active -eq 1 ]; then
# if [[ $(hostname) == $nBlatHost ]] && [[ $nBlatPort != "NA" ]]; then
# echo "starting nucleotide blat service for $name"
# gfServer -tileSize=7 -canStop start $(hostname).$DOMAIN $nBlatPort -stepSize=5 $nibPath/genome.2bit &
# fi
#
# if [[ $(hostname) == $pBlatHost ]] && [[ $pBlatPort != "NA" ]]; then
# echo "starting protein blat service for $name"
# gfServer -trans -canStop start $(hostname).$DOMAIN $pBlatPort $nibPath/genome.2bit &
# fi
# fi
# done
pkill gfServer || :
get_dbdb
echo "processing genomes"
cols=$(head -n 1 /tmp/dbDb.tsv)
tail -n+2 /tmp/dbDb.tsv | while IFS=$'\t' read -r $cols
do
if [ $active -eq 1 ]; then
if [[ $(hostname) == $nBlatHost ]] && [[ $nBlatPort != "NA" ]]; then
echo "starting nucleotide blat service for $name"
gfServer -tileSize=7 -canStop start $(hostname).$DOMAIN $nBlatPort -stepSize=5 $nibPath/genome.2bit &
fi
if [[ $(hostname) == $pBlatHost ]] && [[ $pBlatPort != "NA" ]]; then
echo "starting protein blat service for $name"
gfServer -trans -canStop start $(hostname).$DOMAIN $pBlatPort $nibPath/genome.2bit &
fi
fi
done