File: babel.1

package info (click to toggle)
openbabel 2.4.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 58,308 kB
  • sloc: cpp: 459,210; ansic: 90,514; php: 13,963; python: 7,899; perl: 6,518; pascal: 793; sh: 179; xml: 97; ruby: 64; makefile: 46; java: 23; cs: 14
file content (394 lines) | stat: -rw-r--r-- 10,040 bytes parent folder | download | duplicates (3)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
.Dd July 4, 2008
.Os "Open Babel" 2.2
.Dt babel 1 URM
.Sh NAME
.Nm babel , obabel
.Nd "a converter for chemistry and molecular modeling data files"
.Sh SYNOPSIS
.Nm
.Op Fl H Ar help-options
.Nm
.Op Ar OPTIONS
.Op Fl i Ar input-type
.Ar infile
.Op Fl o Ar output-type
.Ar outfile
.Pp
.Nm obabel
.Op Fl H Ar help-options
.Nm obabel
.Op Ar OPTIONS
.Op Fl i Ar input-type | Fl : Qo Ar SMILES-string Qc
.Ar infile
.Op Fl o Ar output-type
.Fl O Ar outfile
.Sh DESCRIPTION
.Nm
is a cross-platform program designed to interconvert
between many file formats used in molecular modeling and computational
chemistry and related areas.
.Pp
.Nm obabel
and
.Nm
are slightly different. The first is closer to the normal Unix convention
for commandline programs and more flexible when the user needs to specify
parameter values on options. With
.Nm babel
this only works when the option is the last on the line; with
.Nm obabel
no such restriction applies. It further has a shortcut for entering SMILES
strings, which can be used in place of an input file.
.Pp
Open Babel is also a complete programmers toolkit for developing 
chemistry software. For more information, se the Open Babel web pages
\%<\fBhttp://openbabel.org/\fR>.
.Sh OPTIONS
If only input and output files are given, Open Babel will guess the
file type from the filename extension.
.Bl -tag -width flag
.It Fl : Qo Ar SMILES-string Qc
Enter SMILES string and use it in place of an input file. The SMILES string
should be enclosed in quotation marks. More than one can be used, and a molecule
title can be included if enclosed in quotes.
.It Fl a Ar options
Format-specific input options. See 
.Fl H Ar format-ID 
for options allowed by a particular format
.It Fl -addtotitle
Append text to the current molecule title
.It Fl -addformula
Append the molecular formula after the current molecule title
.It Fl b
Convert dative bonds: e.g., [N+]([O-])=O to N(=O)=O
.It Fl c
Center atomic coordinates at (0,0,0) 
.It Fl C
Combine molecules in first file with others having the same name
.It Fl e
Continue after errors
.It Fl d
Delete Hydrogens 
.It Fl --errorlevel Ar 2
Filter the level of errors and warnings displayed:
.br
       1 = critical errors only
       2 = include warnings too (default)
       3 = include informational messages too
       4 = include "audit log" messages of changes to data
       5 = include debugging messages too
.It Fl f Ar #
For multiple entry input, start import with molecule # as the first entry
.It Fl F
Output the available fingerprint types
.It Fl h
Add hydrogens 
.It Fl H
Output usage information 
.It Fl H Ar format-ID
Output formatting information and options for format specified
.It Fl Hall
Output formatting information and options for all formats
.It Fl i<format-ID>
Specifies input format, see below for the available formats 
.It Fl j
.It Fl -join
Join all input molecules into a single output molecule entry
.It Fl k
Translate computational chemistry modeling keywords (e.g., GAMESS and Gaussian)
.It Fl m
Produce multiple output files, to allow:
.Bl -dash -offset indent -compact
.It
Splitting one input file - put each molecule into consecutively
numbered output files
.It
Batch conversion - convert each of multiple input files into a
specified output format
.El
.It Fl l Ar #
For multiple entry input, stop import with molecule # as the last entry
.It Fl o Ar format-ID
Specifies output format, see below for the available formats 
.It Fl O Ar outfile
Specify the output file. This option applies to
.Nm obabel
only.
.It Fl p
Add Hydrogens appropriate for pH (use transforms in phmodel.txt)
.It Fl -property 
Add or replace a property (e.g., in an MDL SD file) 
.It Fl s Ar SMARTS
Convert only molecules matching the SMARTS pattern specified 
.It Fl -separate
Separate disconnected fragments into individual molecular records
.It Fl t
All input files describe a single molecule 
.It Fl -title Ar title
Add or replace molecular title
.It Fl x Ar options
Format-specific output options. See 
.Fl H Ar format-ID
for options allowed by a particular format
.It Fl v Ar SMARTS
Convert only molecules \fBNOT\fP matching SMARTS pattern specified 
.It Fl V
Output version number and exit 
.It Fl z
Compress the output with gzip
.El
.Sh "FILE FORMATS"
The following formats are currently supported by Open Babel: 
.Bl -item -offset indent -compact
.It
acr -- Carine ASCI Crystal
.It
alc -- Alchemy format
.It
arc -- Accelrys/MSI Biosym/Insight II CAR format [Read-only]
.It
bgf -- MSI BGF format
.It
box -- Dock 3.5 Box format
.It
bs -- Ball and Stick format
.It
c3d1 -- Chem3D Cartesian 1 format
.It
c3d2 -- Chem3D Cartesian 2 format
.It
caccrt -- Cacao Cartesian format
.It
cache -- CAChe MolStruct format [Write-only]
.It
cacint -- Cacao Internal format [Write-only]
.It
can -- Canonical SMILES format
.It
car -- Accelrys/MSI Biosym/Insight II CAR format [Read-only]
.It
ccc -- CCC format [Read-only]
.It
cdx -- ChemDraw binary format [Read-only]
.It
cdxml -- ChemDraw CDXML format
.It
cht -- Chemtool format [Write-only]
.It
cif -- Crystallographic Information File
.It
cml --  Chemical Markup Language
.It
cmlr --  CML Reaction format
.It
com -- Gaussian 98/03 Cartesian Input [Write-only]
.It
copy -- Copies raw text [Write-only]
.It
crk2d -- Chemical Resource Kit 2D diagram format
.It
crk3d -- Chemical Resource Kit 3D format
.It
csr -- Accelrys/MSI Quanta CSR format [Write-only]
.It
cssr -- CSD CSSR format [Write-only]
.It
ct -- ChemDraw Connection Table format 
.It
dmol -- DMol3 coordinates format
.It
ent -- Protein Data Bank format
.It 
fa -- FASTA format [Write-only]
.It
fasta -- FASTA format [Write-only]
.It
fch -- Gaussian formatted checkpoint file format [Read-only]
.It
fchk -- Gaussian formatted checkpoint file format [Read-only]
.It
fck -- Gaussian formatted checkpoint file format [Read-only]
.It
feat -- Feature format
.It
fh -- Fenske-Hall Z-Matrix format [Write-only]
.It
fix -- SMILES FIX format [Write-only]
.It
fpt -- Fingerprint format [Write-only]
.It
fract -- Free Form Fractional format
.It
fs -- Open Babel FastSearching database
.It
fsa -- FASTA format [Write-only]
.It
g03 -- Gaussian 98/03 Output [Read-only]
.It
g98 -- Gaussian 98/03 Output [Read-only]
.It
gam -- GAMESS Output [Read-only]
.It
gamin -- GAMESS Input [Write-only]
.It
gamout -- GAMESS Output [Read-only]
.It
gau -- Gaussian 98/03 Cartesian Input [Write-only]
.It
gjc -- Gaussian 98/03 Cartesian Input [Write-only]
.It
gjf -- Gaussian 98/03 Cartesian Input [Write-only]
.It
gpr -- Ghemical format
.It
gr96 -- GROMOS96 format [Write-only]
.It
hin -- HyperChem HIN format
.It
inchi -- IUPAC InChI [Write-only]
.It
inp -- GAMESS Input [Write-only]
.It
ins -- ShelX format [Read-only]
.It
jin -- Jaguar input format [Write-only]
.It
jout -- Jaguar output format [Read-only]
.It
mdl -- MDL MOL format
.It
mmd -- MacroModel format
.It
mmod -- MacroModel format
.It
mol -- MDL MOL format
.It
mol2 -- Sybyl Mol2 format
.It
molreport -- Open Babel molecule report [Write-only]
.It
moo -- MOPAC Output format [Read-only]
.It
mop -- MOPAC Cartesian format
.It
mopcrt -- MOPAC Cartesian format
.It
mopin -- MOPAC Internal
.It
mopout -- MOPAC Output format [Read-only]
.It
mpc -- MOPAC Cartesian format
.It
mpd -- Sybyl descriptor format [Write-only]
.It
mpqc -- MPQC output format [Read-only]
.It
mpqcin -- MPQC simplified input format [Write-only]
.It
nw -- NWChem input format [Write-only]
.It
nwo -- NWChem output format [Read-only]
.It
pc --  PubChem format  [Read-only]
.It
pcm --  PCModel format
.It
pdb -- Protein Data Bank format
.It
pov -- POV-Ray input format [Write-only]
.It
pqs -- Parallel Quantum Solutions format
.It
prep -- Amber Prep format [Read-only]
.It
qcin -- Q-Chem input format [Write-only]
.It
qcout -- Q-Chem output format [Read-only]
.It
report -- Open Babel report format [Write-only]
.It
res -- ShelX format [Read-only]
.It
rxn -- MDL RXN format
.It
sd -- MDL MOL format
.It
sdf -- MDL MOL format
.It
smi -- SMILES format
.It
sy2 -- Sybyl Mol2 format
.It
tdd -- Thermo format
.It
test -- Test format [Write-only]
.It
therm -- Thermo format
.It
tmol -- TurboMole Coordinate format
.It
txyz -- Tinker MM2 format [Write-only]
.It
unixyz -- UniChem XYZ format
.It
vmol -- ViewMol format
.It
xed -- XED format [Write-only]
.It
xml --  General XML format [Read-only]
.It
xyz -- XYZ cartesian coordinates format
.It
yob -- YASARA.org YOB format
.It
zin -- ZINDO input format [Write-only]
.El
.Sh "FORMAT OPTIONS"
Individual file formats may have additional formatting options. 
.Pp
Input format options are preceded by 'a', e.g. \-as 
.Pp
Output format options are preceded by 'x', e.g. \-xn 
.Pp
For further specific information and options, use \-H<format-type>
.br
 e.g., \-Hcml
.Sh EXAMPLES
Standard conversion:
.Dl "babel \-ixyz ethanol.xyz \-opdb ethanol.pdb"
Conversion from a SMI file in STDIN to a Mol2 file written to STDOUT:
.Dl "babel \-ismi \-omol2"
Split a multi-molecule file into new1.smi, new2.smi, etc.:
.Dl "babel infile.mol new.smi \-m"
.Sh SEE ALSO
.Xr obenergy 1 ,
.Xr obfit 1 ,
.Xr obgrep 1 , 
.Xr obminimize 1 , 
.Xr obprop 1 , 
.Xr obrotate 1 ,
.Xr obrotamer 1 .
The web pages for Open Babel can be found at:
\%<\fBhttp://openbabel.org/\fR> 
.Sh AUTHORS
.An -nosplit
A cast of many, including the currrent maintainers
.An Geoff Hutchison ,
.An Chris Morley ,
.An Michael Banck , 
and innumerable others who have contributed fixes and additions. 
For more contributors to Open Babel, see 
\%<\fBhttp://openbabel.org/wiki/THANKS\fR>
.Sh COPYRIGHT
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc. 
.br
Some portions Copyright (C) 2001-2007 by Geoffrey R. Hutchison 
.Pp
 This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
.Pp
 This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.