SMILES and SMARTS import and export options
Import options
Codename |
Explanation |
f |
Import data fields from a multi-column file. The fields should be separated by tab character. The first column contains the SMILES/SMARTS strings, the second may contain the molecule name or the data field called FIELD1, the following columns contain the other fields. molconvert sdf "foo.smi{fname,fID}" reads the smiles string, the name and the ID from the foo.smi file and converts it to SDF format. |
d |
Import with Daylight compatibility for query H. |
c |
Ignore fixing of double bond stereo information in small rings, also ignore fixing of aromatic bonds to aliphatic if necessary. |
Z |
Import compressed smiles. The compressed format must be specified explicitly, as it is not recognized by the importer automatically. |
After importing SMILES, invoking of MoleculeGraph.clearCashedInfo method is recommended in order to remove cashed information which results increased molecule size.
Export options
Export options can be specified in the format string. The format descriptor and the options are separated by a colon.
Codename |
Explanation |
|
|
0 |
Do not include chirality (parity) and double bond stereo (cis/trans) information. |
q |
Obsolete option. |
ri |
Smiles export rigorousness (i with the following values):
Example: Let molecule.mrv file contain the molecule CC=CC=CC=CC where the two side double bonds are in TRANS configuration but the middle one has no CIS, TRANS information (crossed double bond, or double bond with wiggly bond). |
s |
Write query smarts. (See query SMARTS for details.) |
u |
Write unique smiles (considering chirality info also [2]). Note: Use this option if you want unique smiles export. |
h |
Convert explicit H atoms to query hydrogen count. |
Tf1:f2:... |
Export f1, f2 ... SDF fields. The fields are separated by tab character. |
t |
Export terminal atom with single_or_aromatic bond. |
n |
Export molecule name (the first line of an MDL molfile). |
Z |
Use compressed format, and compress the SMILES string. Note that the compressed format is not recognized by the import, so it should be specified explicitly. |
BOM |
Write the UTF-8 byte order mark (BOM), if the given or the system's encoding is UTF-8. |