0
|
1 .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22)
|
|
2 .\"
|
|
3 .\" Standard preamble:
|
|
4 .\" ========================================================================
|
|
5 .de Sp \" Vertical space (when we can't use .PP)
|
|
6 .if t .sp .5v
|
|
7 .if n .sp
|
|
8 ..
|
|
9 .de Vb \" Begin verbatim text
|
|
10 .ft CW
|
|
11 .nf
|
|
12 .ne \\$1
|
|
13 ..
|
|
14 .de Ve \" End verbatim text
|
|
15 .ft R
|
|
16 .fi
|
|
17 ..
|
|
18 .\" Set up some character translations and predefined strings. \*(-- will
|
|
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
|
20 .\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
|
21 .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
|
22 .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
|
23 .\" nothing in troff, for use with C<>.
|
|
24 .tr \(*W-
|
|
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
|
26 .ie n \{\
|
|
27 . ds -- \(*W-
|
|
28 . ds PI pi
|
|
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
|
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
|
31 . ds L" ""
|
|
32 . ds R" ""
|
|
33 . ds C` ""
|
|
34 . ds C' ""
|
|
35 'br\}
|
|
36 .el\{\
|
|
37 . ds -- \|\(em\|
|
|
38 . ds PI \(*p
|
|
39 . ds L" ``
|
|
40 . ds R" ''
|
|
41 'br\}
|
|
42 .\"
|
|
43 .\" Escape single quotes in literal strings from groff's Unicode transform.
|
|
44 .ie \n(.g .ds Aq \(aq
|
|
45 .el .ds Aq '
|
|
46 .\"
|
|
47 .\" If the F register is turned on, we'll generate index entries on stderr for
|
|
48 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
|
49 .\" entries marked with X<> in POD. Of course, you'll have to process the
|
|
50 .\" output yourself in some meaningful fashion.
|
|
51 .ie \nF \{\
|
|
52 . de IX
|
|
53 . tm Index:\\$1\t\\n%\t"\\$2"
|
|
54 ..
|
|
55 . nr % 0
|
|
56 . rr F
|
|
57 .\}
|
|
58 .el \{\
|
|
59 . de IX
|
|
60 ..
|
|
61 .\}
|
|
62 .\"
|
|
63 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
|
64 .\" Fear. Run. Save yourself. No user-serviceable parts.
|
|
65 . \" fudge factors for nroff and troff
|
|
66 .if n \{\
|
|
67 . ds #H 0
|
|
68 . ds #V .8m
|
|
69 . ds #F .3m
|
|
70 . ds #[ \f1
|
|
71 . ds #] \fP
|
|
72 .\}
|
|
73 .if t \{\
|
|
74 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
|
75 . ds #V .6m
|
|
76 . ds #F 0
|
|
77 . ds #[ \&
|
|
78 . ds #] \&
|
|
79 .\}
|
|
80 . \" simple accents for nroff and troff
|
|
81 .if n \{\
|
|
82 . ds ' \&
|
|
83 . ds ` \&
|
|
84 . ds ^ \&
|
|
85 . ds , \&
|
|
86 . ds ~ ~
|
|
87 . ds /
|
|
88 .\}
|
|
89 .if t \{\
|
|
90 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
|
91 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
|
92 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
|
93 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
|
94 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
|
95 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
|
96 .\}
|
|
97 . \" troff and (daisy-wheel) nroff accents
|
|
98 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
|
99 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
|
100 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
|
101 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
|
102 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
|
103 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
|
104 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
|
105 .ds ae a\h'-(\w'a'u*4/10)'e
|
|
106 .ds Ae A\h'-(\w'A'u*4/10)'E
|
|
107 . \" corrections for vroff
|
|
108 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
|
109 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
|
110 . \" for low resolution devices (crt and lpr)
|
|
111 .if \n(.H>23 .if \n(.V>19 \
|
|
112 \{\
|
|
113 . ds : e
|
|
114 . ds 8 ss
|
|
115 . ds o a
|
|
116 . ds d- d\h'-1'\(ga
|
|
117 . ds D- D\h'-1'\(hy
|
|
118 . ds th \o'bp'
|
|
119 . ds Th \o'LP'
|
|
120 . ds ae ae
|
|
121 . ds Ae AE
|
|
122 .\}
|
|
123 .rm #[ #] #H #V #F C
|
|
124 .\" ========================================================================
|
|
125 .\"
|
|
126 .IX Title "MODIFYPDBFILES 1"
|
|
127 .TH MODIFYPDBFILES 1 "2015-03-29" "perl v5.14.2" "MayaChemTools"
|
|
128 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
|
129 .\" way too many mistakes in technical documents.
|
|
130 .if n .ad l
|
|
131 .nh
|
|
132 .SH "NAME"
|
|
133 ModifyPDBFiles.pl \- Modify data in PDBFile(s)
|
|
134 .SH "SYNOPSIS"
|
|
135 .IX Header "SYNOPSIS"
|
|
136 ModifyPDBFiles.pl PDBFile(s)...
|
|
137 .PP
|
|
138 ModifyPDBFiles.pl [\fB\-a, \-\-AtomNumberStart\fR number] [\fB\-c, \-\-ChainIDStart\fR character]
|
|
139 [\fB\-\-ChainIDRenameEmpty\fR yes | no] [\fB\-h, \-\-help\fR] [\fB\-k, \-\-KeepOldRecords\fR yes | no]
|
|
140 [\fB\-m, \-\-mode \fR RenumberAtoms | RenumberResidues | RenumberWaters | RenameChainIDs]
|
|
141 [\fB\-\-ModifyHeader\fR yes | no] [\fB\-o, \-\-overwrite\fR] [\fB\-\-ResidueNumberMode\fR Sequential | PerChain]
|
|
142 [\fB\-\-ResidueNumberStart\fR number] [\fB\-\-ResidueNumberHetatmMode\fR automatic | specify]
|
|
143 [\fB\-\-ResidueNumberStarHetatm\fR number] [\fB\-r, \-\-root\fR rootname]
|
|
144 [\fB\-\-WaterResidueNames\fR Automatic | \*(L"ResidueName, [ResidueName,...]\*(R"] [\fB\-\-WaterResidueStart\fR number]
|
|
145 [\fB\-w, \-\-WorkingDir\fR dirname] PDBFile(s)...
|
|
146 .SH "DESCRIPTION"
|
|
147 .IX Header "DESCRIPTION"
|
|
148 Modify data in \fIPDBFile(s)\fR: renumber atoms, residues, and water residues or assign new
|
|
149 chain IDs. Multiple PDBFile names are separated by spaces. The valid file extension is \fI.pdb\fR.
|
|
150 All other file name extensions are ignored during the wild card expansion. All the \s-1PDB\s0 files
|
|
151 in a current directory can be specified either by \fI*.pdb\fR or the current directory name.
|
|
152 .SH "OPTIONS"
|
|
153 .IX Header "OPTIONS"
|
|
154 .IP "\fB\-a, \-\-AtomNumberStart\fR \fInumber\fR" 4
|
|
155 .IX Item "-a, --AtomNumberStart number"
|
|
156 Starting atom number to use during \fIRenumberAtoms\fR value of \fB\-m, \-\-mode\fR option. Default: \fI1\fR.
|
|
157 Valid values: positive integers.
|
|
158 .IP "\fB\-c, \-\-ChainIDStart\fR \fIcharacter\fR" 4
|
|
159 .IX Item "-c, --ChainIDStart character"
|
|
160 A single character to use for starting IDs for chains during \fIRenameChainIDs\fR value of \fB\-m, \-\-mode\fR option.
|
|
161 Default: \fIA\fR. Valid values: \fIA to Z\fR.
|
|
162 .IP "\fB\-\-ChainIDRenameEmpty\fR \fIYes | No\fR" 4
|
|
163 .IX Item "--ChainIDRenameEmpty Yes | No"
|
|
164 Specify whether to rename empty chain IDs during \fIRenameChainIDs\fR \fB\-m, \-\-mode\fR value. By
|
|
165 default, \s-1ATOM\s0 and \s-1HETATM\s0 records with no chain IDs are left unchanged. Possible values:
|
|
166 \&\fIyes | no\fR. Default: \fINo\fR.
|
|
167 .IP "\fB\-h, \-\-help\fR" 4
|
|
168 .IX Item "-h, --help"
|
|
169 Print this help message.
|
|
170 .IP "\fB\-k, \-\-KeepOldRecords\fR \fIyes | no\fR" 4
|
|
171 .IX Item "-k, --KeepOldRecords yes | no"
|
|
172 Specify whether to transfer old non \s-1ATOM\s0 and \s-1HETATM\s0 records from input PDBFile(s) to new
|
|
173 PDBFile(s). By default, except for the \s-1HEADER\s0 record, all records other than \s-1ATOM/HETATM\s0
|
|
174 are dropped during the generation of new \s-1PDB\s0 files. Possible values: \fIyes | no\fR.
|
|
175 Default: \fIno\fR.
|
|
176 .IP "\fB\-m, \-\-mode \fR \fIRenumberAtoms | RenumberResidues | RenumberWaters | RenameChainIDs\fR" 4
|
|
177 .IX Item "-m, --mode RenumberAtoms | RenumberResidues | RenumberWaters | RenameChainIDs"
|
|
178 Specify how to modify \fIPDBFile(s)\fR. Possible values: \fIRenumberAtoms | RenumberResidues
|
|
179 | RenumberWaters | RenameChainIDs\fR. Default: \fIRenumberResidues\fR.
|
|
180 .Sp
|
|
181 For \fIRenumberAtoms\fR mode, residue number in \s-1ATOM\s0 and \s-1HETATM\s0 records are reassigned
|
|
182 sequentially starting using value of \fB\-a, \-\-AtomNumberStart\fR option.
|
|
183 .Sp
|
|
184 For \fIRenumberResidues\fR mode, serial number in \s-1ATOM\s0 and \s-1HETATM\s0 records are reassigned
|
|
185 either sequentially or statring from specified values for \s-1ATOM\s0 and \s-1HETATM\s0 records in each
|
|
186 chain.
|
|
187 .Sp
|
|
188 For \fIRenumberWaters\fR mode, residue number for waters are reassigned starting from a specific
|
|
189 value.
|
|
190 .Sp
|
|
191 For \fIRenameChainIDs\fR mode, all the chain IDs are reassigned starting from a specific chain \s-1ID\s0.
|
|
192 .Sp
|
|
193 During the generation of new \s-1PDB\s0 files, unnecessary \s-1CONECT\s0 records are dropped.
|
|
194 .IP "\fB\-\-ModifyHeader\fR \fIyes | no\fR" 4
|
|
195 .IX Item "--ModifyHeader yes | no"
|
|
196 Specify whether to modify \s-1HEADER\s0 record during the generation of new \s-1PDB\s0 files
|
|
197 Possible values: \fIyes | no\fR. Default: \fIyes\fR. By defailt, Classification data is replaced
|
|
198 by \fIData modified using MayaChemTools\fR before writing out \s-1HEADER\s0 record.
|
|
199 .IP "\fB\-o, \-\-overwrite\fR" 4
|
|
200 .IX Item "-o, --overwrite"
|
|
201 Overwrite existing files
|
|
202 .IP "\fB\-\-ResidueNumberMode\fR \fISequential | PerChain\fR" 4
|
|
203 .IX Item "--ResidueNumberMode Sequential | PerChain"
|
|
204 Specify how to renumber residues: renumber residues sequentially across all the chains
|
|
205 or start from the begining for each chain. Possible values: \fISequential | PerChain\fR. Default:
|
|
206 \&\fIPerChain\fR.
|
|
207 .IP "\fB\-\-ResidueNumberStart\fR \fInumber\fR" 4
|
|
208 .IX Item "--ResidueNumberStart number"
|
|
209 Starting residue number to use for \s-1ATOM\s0 records in chains. Default: \fI1\fR. Valid values
|
|
210 positive integers.
|
|
211 .Sp
|
|
212 For \fISequential\fR value of \fB\-\-ResidueNumberMode\fR option, residue numbers are
|
|
213 assigned sequentially across all the chains starting from the specified value.
|
|
214 .Sp
|
|
215 For \fIPerChain\fR value of \fB\-\-ResidueNumberMode\fR option, residue numbers are
|
|
216 starting again from the specified value for each chain.
|
|
217 .Sp
|
|
218 \&\s-1HETATM\s0 residues with in the chains are numbered using this value as well
|
|
219 .IP "\fB\-\-ResidueNumberHetatmMode\fR \fIautomatic | specify\fR" 4
|
|
220 .IX Item "--ResidueNumberHetatmMode automatic | specify"
|
|
221 Specify how to start residue number for \s-1HETATM\s0 records: use the next sequential
|
|
222 residue number after the last residue number from \s-1ATOM\s0 records or start from a
|
|
223 specific residue number. Possible values: \fIautomatic | specify\fR. Default:
|
|
224 \&\fIautomatic\fR
|
|
225 .Sp
|
|
226 For \fIautomatic\fR , residue number after highest residue number of \s-1ATOM\s0
|
|
227 records is used as the starting residue number for \s-1HETATM\s0 records.
|
|
228 .Sp
|
|
229 For \fIspecify\fR, value of option \fB\-\-ResidueNumberStarHetatm\fR is used as the
|
|
230 starting residue number for \s-1HETATM\s0 records.
|
|
231 .Sp
|
|
232 This option along with \fB\-\-ResidueNumberStartHetatm\fR only applies to \s-1HETATM\s0 records
|
|
233 outside the chains.
|
|
234 .IP "\fB\-\-ResidueNumberStartHetatm\fR \fInumber\fR" 4
|
|
235 .IX Item "--ResidueNumberStartHetatm number"
|
|
236 Starting residue number to use for \s-1HETATM\s0 records. Default: \fI6000\fR. Valid values
|
|
237 positive integers.
|
|
238 .IP "\fB\-r, \-\-root\fR \fIrootname\fR" 4
|
|
239 .IX Item "-r, --root rootname"
|
|
240 New \s-1PDB\s0 and sequence file name is generated using the root: <Root><Mode>.<Ext>.
|
|
241 Default new file name: <PDBFileName><Mode>.pdb. This option is ignored for multiple
|
|
242 input files.
|
|
243 .ie n .IP "\fB\-\-WaterResidueNames\fR \fIAutomatic | ""ResidueName,[ResidueName,...]""\fR" 4
|
|
244 .el .IP "\fB\-\-WaterResidueNames\fR \fIAutomatic | ``ResidueName,[ResidueName,...]''\fR" 4
|
|
245 .IX Item "--WaterResidueNames Automatic | ResidueName,[ResidueName,...]"
|
|
246 Identification of water residues during \fIRenumberWaters\fR value of \fB\-m, \-\-mode\fR option. Possible
|
|
247 values: \fIAutomatic | \*(L"ResidueName,[ResidueName,...]\*(R"\fR. Default: \fIAutomatic\fR which corresponds
|
|
248 to \*(L"\s-1HOH\s0,WAT,H20\*(R". You can also specify a different comma delimited list of residue names
|
|
249 to use for water.
|
|
250 .IP "\fB\-\-WaterResidueStart\fR \fInumber\fR" 4
|
|
251 .IX Item "--WaterResidueStart number"
|
|
252 Starting water residue number to use during \fIRenumberWaters\fR \fB\-m, \-\-mode\fR value.
|
|
253 Default: \fI8000\fR. Valid values: positive integers.
|
|
254 .IP "\fB\-w, \-\-WorkingDir\fR \fIdirname\fR" 4
|
|
255 .IX Item "-w, --WorkingDir dirname"
|
|
256 Location of working directory. Default: current directory.
|
|
257 .SH "EXAMPLES"
|
|
258 .IX Header "EXAMPLES"
|
|
259 To renumber \s-1ATOM\s0 and \s-1HETATM\s0 residues starting from 1 for each chain with continuation to
|
|
260 \&\s-1HETATM\s0 residues outside \s-1TER\s0 records in Sample2.pdb and generate
|
|
261 Sample2RenumberResidues.pdb file, type:
|
|
262 .PP
|
|
263 .Vb 1
|
|
264 \& % ModifyPDBFiles.pl Sample1.pdb
|
|
265 .Ve
|
|
266 .PP
|
|
267 To renumber \s-1ATOM\s0 and \s-1HETATM\s0 residues sequentially across all chains starting from 1 with
|
|
268 continuation to \s-1HETATM\s0 residues outside \s-1TER\s0 records in Sample2.pdb and generate
|
|
269 Sample2RenumberResidues.pdb file, type:
|
|
270 .PP
|
|
271 .Vb 1
|
|
272 \& % ModifyPDBFiles.pl \-\-ResidueNumberMode Sequential \-o Sample1.pdb
|
|
273 .Ve
|
|
274 .PP
|
|
275 To renumber \s-1ATOM\s0 and \s-1HETATM\s0 residues sequentially across all chains starting from 1 and
|
|
276 \&\s-1HETATM\s0 residues outside \s-1TER\s0 records starting from 6000 in Sample2.pdb and generate
|
|
277 Sample2RenumberResidues.pdb file, type:
|
|
278 .PP
|
|
279 .Vb 2
|
|
280 \& % ModifyPDBFiles.pl \-\-ResidueNumberMode Sequential
|
|
281 \& \-\-ResidueNumberHetatmMode Specify \-o Sample1.pdb
|
|
282 .Ve
|
|
283 .PP
|
|
284 To renumber \s-1ATOM\s0 and \s-1HETATM\s0 residues sequentially across all chains starting from 100 for
|
|
285 \&\s-1ATOM/HETATM\s0 residues with in \s-1TER\s0 records and starting from 999 for \s-1HETATM\s0 residues
|
|
286 outside \s-1TER\s0 records in Sample2.pdb and generate Sample2RenumberResidues.pdb file, type:
|
|
287 .PP
|
|
288 .Vb 3
|
|
289 \& % ModifyPDBFiles.pl \-\-ResidueNumberMode Sequential
|
|
290 \& \-\-ResidueNumberHetatmMode Specify \-\-ResidueNumberStart 100
|
|
291 \& \-\-ResidueNumberStartHetatm 999 \-o Sample2.pdb
|
|
292 .Ve
|
|
293 .PP
|
|
294 To renumber \s-1ATOM\s0 and \s-1HETATM\s0 residues from 100 for each chain and starting from 999 for
|
|
295 \&\s-1HETATM\s0 residues outside \s-1TER\s0 records in Sample2.pdb and generate Sample2RenumberResidues.pdb
|
|
296 file, type:
|
|
297 .PP
|
|
298 .Vb 3
|
|
299 \& % ModifyPDBFiles.pl \-\-ResidueNumberMode PerChain
|
|
300 \& \-\-ResidueNumberHetatmMode Specify \-\-ResidueNumberStart 100
|
|
301 \& \-\-ResidueNumberStartHetatm 999 \-o Sample2.pdb
|
|
302 .Ve
|
|
303 .PP
|
|
304 To renumber \s-1ATOM\s0 serial numbers sequentially starting from 100 in Sample1.pdb file and generate
|
|
305 Sample1RenumberAtoms.pdb file, type:
|
|
306 .PP
|
|
307 .Vb 2
|
|
308 \& % ModifyPDBFiles.pl \-m RenumberAtoms \-\-AtomNumberStart 100
|
|
309 \& \-o Sample1.pdb
|
|
310 .Ve
|
|
311 .PP
|
|
312 To renumber water residues identified by \*(L"\s-1HOH\s0,WAT\*(R" starting from residue number 1000
|
|
313 in Sample2.pdb file and generate Sample2RenumberWaters.pdb file, type:
|
|
314 .PP
|
|
315 .Vb 2
|
|
316 \& % ModifyPDBFiles.pl \-m RenumberWaters \-\-WaterResidueNames "HOH,WAT"
|
|
317 \& \-o \-\-WaterResidueStart 950 Sample2.pdb
|
|
318 .Ve
|
|
319 .PP
|
|
320 To rename all chain IDs starting from A in Sample1.pdb file and generate
|
|
321 Sample1RenameChainIDs.pdb file, type:
|
|
322 .PP
|
|
323 .Vb 1
|
|
324 \& % ModifyPDBFiles.pl \-m RenameChainIDs \-o Sample1.pdb
|
|
325 .Ve
|
|
326 .PP
|
|
327 To rename all chain IDs starting from B without assigning any chain IDs to \s-1ATOM/HETATOM\s0
|
|
328 with no chain IDs in Sample2.pdb file and generate Sample2RenameChainIDs.pdb file, type:
|
|
329 .PP
|
|
330 .Vb 2
|
|
331 \& % ModifyPDBFiles.pl l \-m RenameChainIDs \-c B \-\-ChainIDRenameEmpty No
|
|
332 \& \-o Sample2.pdb
|
|
333 .Ve
|
|
334 .SH "AUTHOR"
|
|
335 .IX Header "AUTHOR"
|
|
336 Manish Sud <msud@san.rr.com>
|
|
337 .SH "SEE ALSO"
|
|
338 .IX Header "SEE ALSO"
|
|
339 ExtractFromPDBFiles.pl, InfoPDBFiles.pl
|
|
340 .SH "COPYRIGHT"
|
|
341 .IX Header "COPYRIGHT"
|
|
342 Copyright (C) 2015 Manish Sud. All rights reserved.
|
|
343 .PP
|
|
344 This file is part of MayaChemTools.
|
|
345 .PP
|
|
346 MayaChemTools is free software; you can redistribute it and/or modify it under
|
|
347 the terms of the \s-1GNU\s0 Lesser General Public License as published by the Free
|
|
348 Software Foundation; either version 3 of the License, or (at your option)
|
|
349 any later version.
|