Collections:
"babel ... -o svg -xd -xP300" Bug - Option -d takes a parameter
Why "babel ... -o svg -xd -xP300" command is giving the "Option -d takes a parameter" error in Open Babel 2.4?
✍: FYIcenter.com
It seems to be another code bug in the "babel" command in Open Babel 2.4 release.
"-xd" option for "svg" output format should not require any parameters according the help document: "d - do not display molecule name."
If you use "-xd" option and follow by another option, the "babel -o svg" command will gives you an error.
fyicenter$ obabel -:CCCCCCC -O carbon-chain.sdf --gen2D 1 molecule converted fyicenter$ babel carbon-chain.sdf carbon-chain.svg -xd -xP300 Option -d takes a parameter
The workaround is to put the "-xd" option at the end of the command line as shown below:
fyicenter$ babel carbon-chain.sdf carbon-chain.svg -xP300 -xd 1 molecule converted 20 audit log messages
However, the "obabel -o svg -xd -xP300" works perfectly in Open Babel 2.4 release.
fyicenter$ obabel -:CCCCCC -o svg -O carbon-chain.svg -xd -xP300 1 molecule converted
So we should use "obabel" instead of "babel", since "babel" is deprecated now and will be removed in a future release.
⇒ "-o svg -xd -d" Bug in Open Babel 3.1.1
⇐ "babel ... -o svg -xP300" Bug - width="px" height="px"
2020-07-15, 1130🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1014509 Names: InChIKey: ZNOYSGHPKOLDRJ-QZTJIDSGS A-NSMILES: OC[C@@H](O)CO...
Molecule Summary: ID: FYI-1001898 SMILES: CC(=CC1COC23CC4(CO2)C(C3 C1(C)O)CCC5C4(CCC6C5(CCC (C6(C)C)OC...
Molecule Summary: ID: FYI-1000963 SMILES: CN(C)CCN1C(=O)CSC1=S Received at FYIcenter.com on: 2021-08...
Reaction Summary: ID: FYI-1005062 Formula: [C2 H4 O]+[C H5 N] > [C3 H9 N O] SMILES: [CH2:1]1[O:2]C1....
Molecule Summary: ID: FYI-1003956 Names: InChIKey: KLALVMPTCMWTDI-UHFFFAOYS A-NSMILES: CCc4nc(C(N)=O...