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 (94 lines) | stat: -rwxr-xr-x 2,164 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash

. ../MasterTest.sh

# Clean
CleanFiles atommap.in initial.mol2 atommap.dat reordered.pdb reordered.mol2 \
           fit.mol2 rmsd.dat map.chm_to_amb.dat mapped.pdb.? rmsout.dat \
           map.byres.chm_to_amb.dat

TESTNAME='Atom map tests'
Requires maxthreads 3

INPUT="-i atommap.in"
UNITNAME='Basic atommap test'
CheckFor maxthreads 1
if [ $? -eq 0 ] ; then
  # Test 1
  cat > atommap.in <<EOF
noprogress
parm xtallig.mol2
reference xtallig.mol2

parm start.mol2
reference start.mol2 parmindex 1

outtraj initial.mol2 mol2

# xtallig -> start
atommap xtallig.mol2 start.mol2 mapout atommap.dat

trajin xtallig.mol2
outtraj reordered.pdb pdb chainid X model
outtraj reordered.mol2 mol2
rms 1g9v refindex 1 out rmsd.dat
trajout fit.mol2 mol2
EOF
  RunCpptraj "AtomMap Test"
  DoTest initial.mol2.save initial.mol2
  DoTest atommap.dat.save atommap.dat
  DoTest reordered.pdb.save reordered.pdb
  DoTest reordered.mol2.save reordered.mol2
  DoTest rmsd.dat.save rmsd.dat
  DoTest fit.mol2.save fit.mol2
fi

# Test 2
UNITNAME="AtomMap with 'rmsfit'"
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > atommap.in <<EOF
parm xtallig.mol2
reference xtallig.mol2

parm start.mol2
reference start.mol2 parm start.mol2

atommap xtallig.mol2 start.mol2 rmsfit rmsout rmsout.dat 1g9v

trajin xtallig.mol2
EOF
  RunCpptraj "AtomMap with 'rmsfit'"
  DoTest rmsd.dat.save rmsout.dat
fi

# Test 3
UNITNAME='Atom map charmm->amber atom order'
CheckFor maxthreads 3
if [ $? -eq 0 ] ; then
  cat > atommap.in <<EOF
parm cg-amb.topo
reference cg-amb.crds
parm cg-chm.topo
reference cg-chm.crds parmindex 1
atommap cg-amb.crds cg-chm.crds mapout map.chm_to_amb.dat
trajin cg.crd
trajout mapped.pdb pdb multi
EOF
  RunCpptraj "Atom map charmm->amber atom order"
  DoTest map.chm_to_amb.dat.save map.chm_to_amb.dat

  # Test 4
  cat > atommap.in <<EOF
parm cg-amb.topo
reference cg-amb.crds
parm cg-chm.topo
reference cg-chm.crds parmindex 1
atommap cg-amb.crds cg-chm.crds mapout map.byres.chm_to_amb.dat maponly mode byres
EOF
  RunCpptraj "Atom map charmm->amber atom order, by residue"
  DoTest map.chm_to_amb.dat.save map.byres.chm_to_amb.dat
fi
EndTest

exit 0