-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmake_decompose.sh
More file actions
executable file
·40 lines (34 loc) · 902 Bytes
/
Copy pathmake_decompose.sh
File metadata and controls
executable file
·40 lines (34 loc) · 902 Bytes
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
g=/filer/misko/mini_chr/git/minichr/
p=/filer/misko/picard/picard-tools-1.56/
s=/home/misko/apps/bin/samtools
j=/usr/bin/java
b=/filer/misko/bedtools-2.17.0/
c=/data/misko/2013.04.12/cs2-4.3/cs2.exe
export LD_LIBRARY_PATH=/home/buske/arch/sge6/lib:/home/buske/arch/sge6/lib::/dupa-filer/misko/gurobi/gurobi550/linux64/lib/:/dupa-filer/misko/gurobi/gurobi550/linux64/lib/
#using hg19
#ref=/filer/hg19/hg19.fa
#or hg18
#ref=/filer/hg18/hg18.fa
if [ $# -ne 2 ]; then
echo $0 folder alpha
exit
fi
wd=$1
alpha=$2
function decomp {
mkdir -p $wd/decomps
pushd $wd/decomps
dname=A${alpha}LP`tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1`
zcat ../Qproblem_file_q1350sq300_m3.solved.gz > ${dname}.tmp
/usr/bin/pypy $g/decompose_flow_v5.py ${dname}.tmp $dname $alpha
mv $dname ${dname}.lp
rm ${dname}.tmp
popd
}
x=0
while [ $x -lt 10 ];
do
decomp
x=`expr $x + 1`
done