Collections:
"babel ... -o svg -xS" - Ball/Stick Depiction in SVG
How to generate a ball and stick depiction of a molecule in SVG with the "babel" command?
✍: FYIcenter.com
If you want to a ball and stick depiction of a molecule in SVG format,
you can use the "-o svg -xS" option with the "babel" command.
For example, the following command generate a ball and stick depiction of of the tyrosine molecule in SVG format:
fyicenter$ obabel "-:c1cc(ccc1CC(C(=O)O)N)O" -O tyrosine-ball-stick.svg -xS 1 molecule converted
As a comparison, running the following command generates a normal skeleton depiction of of the same molecule in SVG format:
fyicenter$ obabel "-:c1cc(ccc1CC(C(=O)O)N)O" -O tyrosine-skeleton.svg 1 molecule converted
Open both output files, tyrosine-skeleton.svg and tyrosine-ball-stick.svg, in a Web browser, you see the differences:
Note that "-xS" option was added in Open Babel 2.4 for SVG format.
⇒ "babel ... -o svg -xX" - Hide Implicit H in SVG
⇐ "babel ... -o svg -xi" - Show Atom Indices in SVG
2020-07-15, 1436🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1000459 SMILES: CC(=O)NC1=CC=C(C=C1)O Received at FYIcenter.com on: 2021-0...
Molecule Summary: ID: FYI-1001430 SMILES: FC(F)(F)OC1=CC(=CC(Br)=C 1)C(=O)N[C@@H](C)C2N(N=C N=2)C3C=C(...
Molecule Summary: ID: FYI-1002281 Names: InChIKey: GYGRDHRFWPYKTF-UHFFFAOYS A-NSMILES: COc2c(O)c(C)c...
Molecule Summary: ID: FYI-1005531 Names: InChIKey: KVYWDANIDGXUSK-UHFFFAOYS A-NSMILES: c1cc2cc3c1cc2...
Molecule Summary: ID: FYI-1003979 Names: InChIKey: VYPUSPCBGYPBAR-UHFFFAOYS A-NSMILES: c4cnc3ccc(c2n...