Collections:
"babel" Command Option Argument Syntax
How to write "babel" command option argument properly? What's the difference between "-isdf" and "-i sdf"?
✍: FYIcenter.com
There is no difference between "-isdf" and "-i sdf".
Both are valid "babel" option "-i" with an argument of "sdf".
If a "babel" command option takes an argument, you can specify the argument in two ways:
If an option argument contains special characters, you should place it in double quotes or single quotes to protect it. Here are some examples:
fyicenter$ babel tyrosine.sdf -o smiles -s c(C)c
-bash: syntax error near unexpected token `('
fyicenter$ # using double quotes to protect ()
fyicenter$ babel tyrosine.sdf -o smiles -s "c(C)c"
c1cc(ccc1CC(C(=O)O)N)O
1 molecule converted
43 audit log messages
fyicenter$ # using single quotes to protect ()
fyicenter$ babel tyrosine.sdf -o smiles -s 'c(C)c'
c1cc(ccc1CC(C(=O)O)N)O
1 molecule converted
43 audit log messages
fyicenter$ # putting option flag and argument together
fyicenter$ babel tyrosine.sdf -o smiles "-sc(C)c"
c1cc(ccc1CC(C(=O)O)N)O
1 molecule converted
43 audit log messages
fyicenter$ # putting option flag and argument together
fyicenter$ babel tyrosine.sdf -o smiles "-s c(C)c"
c1cc(ccc1CC(C(=O)O)N)O
1 molecule converted
43 audit log messages
fyicenter$ # using double quotes to protect ' and space
fyicenter$ babel tyrosine.sdf -o smiles --title "John's molecule"
c1cc(ccc1CC(C(=O)O)N)O John's molecule
1 molecule converted
43 audit log messages
⇒ "babel ... -f # -l #" - Split Large Molecule File
⇐ "babel -... --..." Command - Generic Conversion Options
2020-12-26, 1508🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1002074 Names: InChIKey: BPXRCZAENSPPPK-OWOJBTEDS A-NSMILES: F/C=C/[F+]F R...
Molecule Summary: ID: FYI-1003851 Names: InChIKey: QSPPGNXCKDRWNC-UHFFFAOYS A-NSMILES: Cc1cc(CCC(=O)...
Molecule Summary: ID: FYI-1000180 SMILES: O=C1N[C@H](C)CNC2=C1SC(C =C3)=C2C4=C3N=C(OC5=NC(C l)=NC=C5CO...
Molecule Summary: ID: FYI-1005605 Names: InChIKey: UAAYANCJZUULAF-POHAHGRES A-NSMILES: COc2ccc(C=c1s...
Molecule Summary: ID: FYI-1001007 SMILES: CC1N=C(c2cc3ccccc3o2)N=C 1c1ccco1Received at FYIcenter.com...