Package org.openscience.cdk.smiles
Class SmiFlavor
java.lang.Object
org.openscience.cdk.smiles.SmiFlavor
Flags for customising SMILES generation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOutput canonical SMILES with stereochemistry, atomic masses.static final intOutput atom-atom mapping for reactions and atom classes for molecules.static final intRenumber AtomAtomMaps during canonical generationstatic final intOutput atomic mass on atoms.static final intDeprecated.no longer needed, default CDK behaviour is now to pass through mass numbers if non-nullstatic final intOutput SMILES in a canonical order.static final intOutput 2D coordinates.static final intOutput 3D coordinates.static final intOutput atom labels, atom labels are specified byIPseudoAtom.getLabel().static final intOutput atom values, atom values are specified by the propertyCDKConstants.COMMENTusingIChemObject.setProperty(Object, Object)static final intOutput either 2D/3D coordinates.static final intOutput data Sgroups.static final intOutput enhanced stereo.static final intOutput fragment grouping for reactions.static final intOutput ligand order information.static final intOutput multicenter bonds, positional variation is specified withSgroups of the typeSgroupType.ExtMulticenter.static final intOutput polymer repeat units is specified withSgroups.static final intOutput radicals, radicals are specified byIAtomContainer.getConnectedSingleElectronsCount(IAtom)static final intOutput CXSmiles Rgroupsstatic final intOutput CXSMILES layers.static final intOutput CXSMILES layers and coordinates.static final intDefault SMILES output write Stereochemistry, Atomic Mass, and CXSMILES layers.static final intOutput non-canonical SMILES without stereochemistry, atomic masses.static final intOutput SMILES in a canonical order using the InChI labelling algorithm.static final intOutput non-canonical SMILES with stereochemistry, atomic masses.static final intOutput supported stereochemistry types.static final intOutput cis-trans stereochemistry specified by directional\of/bonds.static final intstatic final intOutput extended tetrahedral stereochemistry on atoms as@and@@.static final intstatic final intstatic final intOutput tetrahedral stereochemistry on atoms as@and@@.static final intstatic final intOutput canonical SMILES without stereochemistry, atomic masses.static final intOutput canonical SMILES with stereochemistry and atomic masses, This output uses the InChI labelling algorithm to generate a 'Universal SMILES' [O'Boyle, Noel. Journal of Cheminformatics. 2012. 4].static final intWrites aromatic atoms as lower case letters. -
Method Summary
-
Field Details
-
Canonical
public static final int CanonicalOutput SMILES in a canonical order. The order is not guaranteed to be equivalent between releases.- See Also:
-
InChILabelling
public static final int InChILabellingOutput SMILES in a canonical order using the InChI labelling algorithm.- See Also:
-
AtomAtomMap
public static final int AtomAtomMapOutput atom-atom mapping for reactions and atom classes for molecules. The map index is set on an atom with propertyCDKConstants.ATOM_ATOM_MAPPINGusingIChemObject.setProperty(Object, Object).- See Also:
-
AtomicMass
public static final int AtomicMassOutput atomic mass on atoms. For historical reasons the atomic mass is often set on all atoms in a CDK molecule. Therefore to avoid SMILES like[12CH3][12CH2][16OH]major isotopes are not generated. If you wish to generate SMILES with the major isotopes please use the flagAtomicMassStrictthis will output all mass numbers and only be omitted when the mass is unset (null).- See Also:
-
UseAromaticSymbols
public static final int UseAromaticSymbolsWrites aromatic atoms as lower case letters. For portability this option is not recommended.- See Also:
-
StereoTetrahedral
public static final int StereoTetrahedralOutput tetrahedral stereochemistry on atoms as@and@@.- See Also:
-
StereoCisTrans
public static final int StereoCisTransOutput cis-trans stereochemistry specified by directional\of/bonds.- See Also:
-
StereoExTetrahedral
public static final int StereoExTetrahedralOutput extended tetrahedral stereochemistry on atoms as@and@@. Extended tetrahedral captures rotations around a cumulated carbon:CC=[C@]=CC.- See Also:
-
StereoExCisTrans
public static final int StereoExCisTrans- See Also:
-
StereoSquarePlanar
public static final int StereoSquarePlanar- See Also:
-
StereoTrigonalBipyramidal
public static final int StereoTrigonalBipyramidal- See Also:
-
StereoOctahedral
public static final int StereoOctahedral- See Also:
-
AtomicMassStrict
Deprecated.no longer needed, default CDK behaviour is now to pass through mass numbers if non-nullGenerate SMILES with the major isotopes, only omit mass numbers when it is unset.- See Also:
-
Stereo
public static final int StereoOutput supported stereochemistry types. -
Cx2dCoordinates
public static final int Cx2dCoordinatesOutput 2D coordinates.- See Also:
-
Cx3dCoordinates
public static final int Cx3dCoordinatesOutput 3D coordinates.- See Also:
-
CxCoordinates
public static final int CxCoordinatesOutput either 2D/3D coordinates.- See Also:
-
CxAtomLabel
public static final int CxAtomLabelOutput atom labels, atom labels are specified byIPseudoAtom.getLabel().- See Also:
-
CxAtomValue
public static final int CxAtomValueOutput atom values, atom values are specified by the propertyCDKConstants.COMMENTusingIChemObject.setProperty(Object, Object)- See Also:
-
CxRadical
public static final int CxRadicalOutput radicals, radicals are specified byIAtomContainer.getConnectedSingleElectronsCount(IAtom)- See Also:
-
CxMulticenter
public static final int CxMulticenterOutput multicenter bonds, positional variation is specified withSgroups of the typeSgroupType.ExtMulticenter.- See Also:
-
CxPolymer
public static final int CxPolymerOutput polymer repeat units is specified withSgroups.- See Also:
-
CxFragmentGroup
public static final int CxFragmentGroupOutput fragment grouping for reactions.- See Also:
-
CxLigandOrder
public static final int CxLigandOrderOutput ligand order information.- See Also:
-
AtomAtomMapRenumber
public static final int AtomAtomMapRenumberRenumber AtomAtomMaps during canonical generation- See Also:
-
CxDataSgroups
public static final int CxDataSgroupsOutput data Sgroups.- See Also:
-
CxEnhancedStereo
public static final int CxEnhancedStereoOutput enhanced stereo.- See Also:
-
CxRgroups
public static final int CxRgroupsOutput CXSmiles Rgroups- See Also:
-
CxSmiles
public static final int CxSmilesOutput CXSMILES layers.- See Also:
-
CxSmilesWithCoords
public static final int CxSmilesWithCoordsOutput CXSMILES layers and coordinates.- See Also:
-
Generic
public static final int GenericOutput non-canonical SMILES without stereochemistry, atomic masses.- See Also:
-
Unique
public static final int UniqueOutput canonical SMILES without stereochemistry, atomic masses.- See Also:
-
Isomeric
public static final int IsomericOutput non-canonical SMILES with stereochemistry, atomic masses.- See Also:
-
Absolute
public static final int AbsoluteOutput canonical SMILES with stereochemistry, atomic masses.- See Also:
-
Default
public static final int DefaultDefault SMILES output write Stereochemistry, Atomic Mass, and CXSMILES layers. The ordering is not canonical.- See Also:
-
UniversalSmiles
public static final int UniversalSmilesOutput canonical SMILES with stereochemistry and atomic masses, This output uses the InChI labelling algorithm to generate a 'Universal SMILES' [O'Boyle, Noel. Journal of Cheminformatics. 2012. 4].
Unfortunately there are several issues and general use is not recommended:- MAJOR: Molecules with delocalised charges are generally non-canonical, e.g.
C(\C=C\N1CCCC1)=C/c2[n+](c3c(n2CC)nc4ccccc4n3)CCwill generate two different SMILES depending on input order - MINOR: Double bond '/' '\' assignment is different from the original paper (O'Boyle) and will not match universal SMILES generated by Open Babel
- MINOR: SMILES with '*' atoms can not be canonicalised by default, to avoid this we use the 'Rf' atom as a substitute. Structures with an 'Rf' atom can still be generated providing there are no '*' atoms.
- MINOR: The InChI library (v1.03) is not thread safe
- See Also:
- MAJOR: Molecules with delocalised charges are generally non-canonical, e.g.
-