Extended SMILES, SMARTS

Codename: cxsmiles,cxsmarts

Contents:

Extended SMILES, SMARTS format

ChemAxon Extended SMILES/SMARTS is used for storing special features of the molecules after the SMILES string. Any information can be stored after the SMILES string if it is separated by space or tab characters as the SMILES parsers ignore them or use them as comment. The extended features are stored in the following format:
SMILES_String |<feature1>,<feature2>,...|
The extended feature description is economic. If some feature is missing in the molecule, then the corresponding special characters are not written. (Eg: If the atoms of the molecule has no alias strings at all, no "$" and ";" characters are written.) Moreover, if no feature of the molecule to be written, the extended feature field is omitted.
Please note that the SMILES string part generated in cxsmiles format is not always the same as the one generated by smiles output. Eg: In case of Ferrocene the coordinate bonds are not exported to plain SMILES ([Fe].c1cccc1.c1cccc1), but they appear in the cxsmiles (c12c3c4c5c1[Fe]23451234c5c1c2c3c45 |C:4.5,0.6,1.7,2.8,3.9,7.12,6.10,9.16,10.18,8.14|).

In extended smiles export the following additional features are exported:

Import options

See SMILES import options.

Export options

Export options can be specified in the format string. The format descriptor and the options are separated by a colon. All options have default values (see below). Using the "+" or "-" sign the default export values can be changed to "true" or "false" respectively. If the option is given without "+" or "-" modifier then the default values are not used and only the specific feature is exported.
Examples:
"cxsmiles:" writes all default features (absolute stereoconfiguration, enhanced stereo features, atom labels, wiggly bond indexes, ring stereo bond info and reaction fragment level grouping),
"cxsmiles:lc" writes the atom labels and the atomic coordinates only,
"cxsmiles:+c" writes writes all default features and the atomic coordinates,
"cxsmiles:-le" writes absolute stereoconfiguration, enhanced stereo features, ring stereo bond info and reaction fragment level grouping but not atom labels and wiggly bond indexes.

e     Write relative stereo configuration and enhanced stereo features. Default value: true.
l Write atom labels / aliases / values. Default value: true.
w Write wiggly and in case of atomic coordinate export also UP and DOWN bond indexes. Default value: true.
d Write CIS, TRANS ring bond indexes. Default value: true.
f Reaction fragment level grouping. Default value: true.
p Write local parities. Default value: true.
R Write radical numbers. Default value: true.
L Write lone electron pairs. Default value: true.
m Write multicenter SGroups and coordinate bonds. Default value: true.
N Write link nodes. Default value: true.
c[p] Write atomic coordinates. p can optionally specify the coordinate precision. If p is not specified, the default value 2 is used. Default value: false.
D Write Data Sgroup information. Default value: true.

See also SMILES export options and basic export options.

See also