"babel -x..." Command - Extra Output Writing Options

Q

How to pass extra options for "babel" to write output data of a specific format?

✍: FYIcenter.com

A

If you want to pass extra options for "babel" to write output data of a specific format, you need to use one or more "-x..." options in the "babel" command line as shown in the following syntax:

babel input_section output_section [-xA...] [-xB...] ...

# "A..." and "B..." are extra options for writing output data. 

For example, when "babel" is writing output data in "svg" format, it supports an option called "t", which tells "babel" to write thicker lines for bonds. To specify this "t" option for writing data, you can enter it as "-xt" in the command line as shown below:

fyicenter$ babel molecule.sdf molecule.svg -xt 

1 molecule converted
29 audit log messages 

If you view "molecule.svg" in a Web browser, bonds will be diplayed in thicker lines.

 

"babel" vs. "obabel" Commands

"babel -a..." Command - Extra Input Reading Options

Understanding "babel" Command Line Syntax

⇑⇑ Open Babel Tutorials

2020-07-15, 243👍, 0💬