It is possible to extend the name to structure conversion by putting structures with their name in a custom dictionary file. Names present in the custom dictionary will be converted to the corresponding structure. The custom dictionary has precedence over the standard name to structure conversion.
Default path: CHEMAXON_DIR/custom_names.smi where CHEMAXON_DIR is located at:
For performance reasons, the dictionary has to be in SMILES format. To use a dictionary in another format, it can be converted to SMILES using molconvert or mview (Save As). In the same way, several dictionaries should be merged into a single dictionary file in SMILES format.
The dictionary file can be represented in 2 different ways. In the most simple and usual one, each line contains a SMILES and a name field, separated by a tab character. For instance:
C\C=C\CCC(O)=O gamma-hexenoic acid
If there are named properties in the file, the NAME field will be used. For instance:
#SMILES EXACT_MASS NAME C\C=C\CCC(O)=O 114.1424 gamma-hexenoic acid
[IGNORE] ATP
dict
property:
Molecule mol = MolImporter.importMol("CUSTOMNAME", "name:dict=PATH");
molconvert smiles -s CUSTOMNAME{name:dict=PATH}