File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (62 lines) | stat: -rwxr-xr-x 1,605 bytes parent folder | download
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
#!/bin/bash

. ../MasterTest.sh

CleanFiles dbscan.in summary.dat info.dat rvc.dat sievesummary.dat.? \
  sieveinfo.dat.? Kdist.dat Kdist.4.dat rms2d.gnu Kmatrix.gnu Kmatrix.max.dat
INPUT="-i dbscan.in"
TESTNAME='Cluster DBSCAN tests'
Requires netcdf
# Test clustering
cat > dbscan.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
createcrd crd1
#debug analysis 1
cluster crdset crd1 C0 @CA dbscan epsilon 1.7 minpoints 5 summary summary.dat info info.dat gracecolor
#2drms crdset crd1 @CA rmsout rms2d.gnu 
rms R0 first @CA
create rvc.dat R0 C0
EOF
RunCpptraj "DBSCAN test"
DoTest rvc.dat.save rvc.dat

# Test 4-dist plot generation 
cat > dbscan.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
cluster C0 @CA dbscan kdist 4 #summary sievesummary.dat.1 info sieveinfo.dat.1 epsilon 1.9 minpoints 4
EOF
RunCpptraj "DBSCAN automatic parameter determination test." 
DoTest Kdist.dat.save Kdist.4.dat

# Test kdist map generation
#for ((KVAL=1 ; KVAL <= 20; KVAL++)) ; do
#  cat > dbscan.in <<EOF
#parm ../tz2.parm7
#trajin ../tz2.nc
#cluster C0 @CA dbscan kdist $KVAL
#EOF
#  RunCpptraj "DBSCAN kdist map test $KVAL."
#done
#mv Kdist.*.dat Kdist/
cat > dbscan.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
cluster C0 @CA dbscan kdist 1-20
EOF
RunCpptraj "DBSCAN kdist map test"
DoTest Kmatrix.gnu.save Kmatrix.gnu

# Test with sieving
cat > dbscan.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
cluster C0 @CA dbscan epsilon 1.7 minpoints 5 bestrep cumulative \
        summary sievesummary.dat.2 info sieveinfo.dat.2 sieve 5
EOF
RunCpptraj "DBSCAN with sieve"
DoTest sieveinfo.dat.2.save sieveinfo.dat.2

EndTest
exit 0