-
Notifications
You must be signed in to change notification settings - Fork 0
/
opt_ncxxx_itp.sh
80 lines (68 loc) · 1.61 KB
/
opt_ncxxx_itp.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#PBS -l nodes=1:ppn=1:medium_buster
#PBS -q medium_buster
#PBS -e ncxxx.errout
#PBS -o ncxxx.resout
#PBS -l walltime=60:00:00
#PBS -l mem=800mb,vmem=800mb
### previously ?? hours
echo "START_TIME = `date +'%y-%m-%d %H:%M:%S %s'`"
###ichr=0
tdr=v11xxx_program1 # at least one x remain
underWS=/remote/pi310b/li/MolecularMC/v11
# need to time walltime
cptarget1=${underWS}/*.cpp
cptarget2=${underWS}/*.h
#cptarget3=${underWS}/yyy/*config
#cptarget4=${underWS}/yyy/*gr
cptarget3=${underWS}/yyy/xxx.lowconfig
cptarget4=${underWS}/yyy/xxx.midgr
cptarget5=${underWS}/*.py
cptarget6=${underWS}/yyy/xxx.finres*
#cptarget6=${underWS}/chr4-${ichr}/pot.can
cpback1=${underWS}/yyy
#tdr=xxx_yyy_prolong
# in case intermediate interruption
cd /tmp
if [ -d li_${tdr} ]
then
rm -rf li_${tdr}
fi
mkdir li_${tdr}
if [ -f li_${tdr}.tar.gz ]
then
rm li_${tdr}.tar.gz
fi
#cd ../
#cd /tmp/chu_${tdr}
cd li_${tdr}
##### start command
cp ${cptarget1} .
cp ${cptarget2} .
cp ${cptarget3} .
cp ${cptarget4} .
cp ${cptarget5} .
cp ${cptarget6} .
g++ -fPIC -shared -o cdll.so cdll.cpp
./runISS.py xxx normalRun 0.1
#cp *finres $cpback1
#./runNoOpt.py xxx
#g++ runES1.cpp
#./a.out ${ichr} xxx
##### data transfer back
#cp *.like_bed $cpback1
#cp *_ctcfbin $cpback1
#cp *_ctcfbin47* $cpback1
cp *finres* $cpback1
#cp *201res $cpback1
#cp *201gr $cpback1
#cp _chrxxx.like_wig $cpback1
#cp chrxxx $underWS
#cp ../*.out $cpback1
cd ../
#tar -czvf li_${tdr}.tar.gz li_${tdr}/*
rm -rf ./li_${tdr}
#cp ./li_${tdr}.tar.gz $underWS
#rm ./li_${tdr}.tar.gz
### cd out, important in some cases
cd ../
echo "END_TIME = `date +'%y-%m-%d %H:%M:%S %s'`"