File: RunTest.sh

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

. ../MasterTest.sh

CleanFiles rotate.in tz2.rotate.?.mol2

INPUT='-i rotate.in'

TESTNAME='Rotate dihedral tests'
Requires netcdf

# Rotate single dihedral to target value
cat > rotate.in <<EOF
parm ../tz2.parm7
loadcrd ../tz2.nc 1 1 name TZ2
rotatedihedral crdset TZ2 value 35 res 8 type chip
crdout TZ2 tz2.rotate.1.mol2
EOF
RunCpptraj "Rotate dihedral to target value."
DoTest tz2.rotate.1.mol2.save tz2.rotate.1.mol2

# Rotate single dihedral by increment
cat > rotate.in <<EOF
parm ../tz2.parm7
loadcrd ../tz2.nc 1 1 name TZ2
rotatedihedral crdset TZ2 increment -19.3431 :8@N :8@CA :8@CB :8@CG
crdout TZ2 tz2.rotate.2.mol2
EOF
RunCpptraj "Rotate dihedral by increment"
DoTest tz2.rotate.1.mol2.save tz2.rotate.2.mol2

# Rotate as a TRAJ data set
cat > rotate.in <<EOF
parm ../tz2.parm7
loadtraj ../tz2.nc name TZ2
rotatedihedral crdset TZ2 value 35 :8@N :8@CA :8@CB :8@CG \
    name OUT
crdout OUT tz2.rotate.3.mol2
EOF
RunCpptraj "Rotate dihedral in TRAJ data set"
DoTest tz2.rotate.1.mol2.save tz2.rotate.3.mol2

EndTest
exit 0