1g_spatial(1) GROMACS suite, VERSION 4.5 g_spatial(1)
2
3
4
6 g_spatial - calculates the spatial distribution function (more control
7 than g_sdf)
8
9 VERSION 4.5
10
12 g_spatial -s topol.tpr -f traj.xtc -n index.ndx -[no]h -[no]version
13 -nice int -b time -e time -dt time -[no]w -[no]pbc -[no]div -ign int
14 -bin real -nab int
15
17 g_spatial calculates the spatial distribution function and outputs it
18 in a form that can be read by VMD as Gaussian98 cube format. This was
19 developed from template.c (gromacs-3.3). For a system of 32K atoms and
20 a 50ns trajectory, the SDF can be generated in about 30 minutes, with
21 most of the time dedicated to the two runs through trjconv that are
22 required to center everything properly. This also takes a whole bunch
23 of space (3 copies of the xtc file). Still, the pictures are pretty
24 and very informative when the fitted selection is properly made. 3-4
25 atoms in a widely mobile group like a free amino acid in solution works
26 well, or select the protein backbone in a stable folded structure to
27 get the SDF of solvent and look at the time-averaged solvation shell.
28 It is also possible using this program to generate the SDF based on
29 some arbitrarty Cartesian coordinate. To do that, simply omit the pre‐
30 liminary trjconv steps.
31
32 USAGE:
33
34 1. Use make_ndx to create a group containing the atoms around which you
35 want the SDF
36
37 2. trjconv -s a.tpr -f a.xtc -o b.xtc -center tric -ur compact -pbc
38 none
39
40 3. trjconv -s a.tpr -f b.xtc -o c.xtc -fit rot+trans
41
42 4. run g_spatial on the xtc output of step 3.
43
44 5. Load grid.cube into VMD and view as an isosurface.
45
46 *** Systems such as micelles will require trjconv -pbc cluster between
47 steps 1 and 2
48
49 WARNINGS:
50
51 The SDF will be generated for a cube that contains all bins that have
52 some non-zero occupancy. However, the preparatory -fit rot+trans
53 option to trjconv implies that your system will be rotating and trans‐
54 lating in space (in order that the selected group does not). Therefore
55 the values that are returned will only be valid for some region around
56 your central group/coordinate that has full overlap with system volume
57 throughout the entire translated/rotated system over the course of the
58 trajectory. It is up to the user to ensure that this is the case.
59
60 BUGS:
61
62 When the allocated memory is not large enough, a segmentation fault may
63 occur. This is usually detected and the program is halted prior to the
64 fault while displaying a warning message suggesting the use of the -nab
65 option. However, the program does not detect all such events. If you
66 encounter a segmentation fault, run it again with an increased -nab
67 value.
68
69 RISKY OPTIONS:
70
71 To reduce the amount of space and time required, you can output only
72 the coords that are going to be used in the first and subsequent run
73 through trjconv. However, be sure to set the -nab option to a suffi‐
74 ciently high value since memory is allocated for cube bins based on the
75 initial coords and the -nab (Number of Additional Bins) option value.
76
77
79 -s topol.tpr Input
80 Structure+mass(db): tpr tpb tpa gro g96 pdb
81
82 -f traj.xtc Input
83 Trajectory: xtc trr trj gro g96 pdb cpt
84
85 -n index.ndx Input, Opt.
86 Index file
87
88
90 -[no]hno
91 Print help info and quit
92
93 -[no]versionno
94 Print version info and quit
95
96 -nice int 0
97 Set the nicelevel
98
99 -b time 0
100 First frame (ps) to read from trajectory
101
102 -e time 0
103 Last frame (ps) to read from trajectory
104
105 -dt time 0
106 Only use frame when t MOD dt = first time (ps)
107
108 -[no]wno
109 View output xvg, xpm, eps and pdb files
110
111 -[no]pbcno
112 Use periodic boundary conditions for computing distances
113
114 -[no]divyes
115 Calculate and apply the divisor for bin occupancies based on
116 atoms/minimal cube size. Set as TRUE for visualization and as FALSE
117 (-nodiv) to get accurate counts per frame
118
119 -ign int -1
120 Do not display this number of outer cubes (positive values may reduce
121 boundary speckles; -1 ensures outer surface is visible)
122
123 -bin real 0.05
124 Width of the bins in nm
125
126 -nab int 4
127 Number of additional bins to ensure proper memory allocation
128
129
131 gromacs(7)
132
133 More information about GROMACS is available at <http://www.gro‐
134 macs.org/>.
135
136
137
138 Thu 26 Aug 2010 g_spatial(1)