Package org.openscience.cdk.smirks
Enum Class SmirksOption
- All Implemented Interfaces:
Serializable,Comparable<SmirksOption>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not allow '[*:1].[*:2]' to match the same fragment.Preprocessing - Automatically convert implicit hydrogens to explicit hydrogens when the pattern contains a '*'.Do not allow the implicit hydrogen count to be set.Do not allow the atomic number to be changed.Do not allow the total hydrogen count to be set.Do not allow the total hydrogen count to be set if it is 0.If a bond already exists where a new one is to be created update the bond order as required.Additional check and warnings when parsing SMIRKS.Postprocessing - Recompute the implicit hydrogen count on changed atoms that has not had its hydrogen count explicitly set.Postprocessing - Remove any disconnected fragments that were not matched by the transformed.Run the reaction backwards (retro synthesis). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<SmirksOption>static final Set<SmirksOption>Align closer with RDKit's "Reaction SMARTS" semantics. -
Method Summary
Modifier and TypeMethodDescriptionstatic SmirksOptionReturns the enum constant of this class with the specified name.static SmirksOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PEDANTIC
Additional check and warnings when parsing SMIRKS. -
REVERSE
Run the reaction backwards (retro synthesis). The right-hand-side is now matched as a query. Note that not all SMIRKS are reversible and good form is usually write separate forward/backwards transformations. -
DIFF_PART
Do not allow '[*:1].[*:2]' to match the same fragment. The preferred way to do this component grouping '([*:1]).([*:2])' but if you are only performing reactions it is reasonable that you expect the parts to be different and some toolkits only have this as an option. -
IGNORE_SET_ELEM
Do not allow the atomic number to be changed.[Pb:1]>>[Au:1]will do nothing. -
IGNORE_IMPL_H
Do not allow the implicit hydrogen count to be set.[Ch4:1]>>[Ch3:1]does nothing. -
IGNORE_TOTAL_H
Do not allow the total hydrogen count to be set.[CH4:1]>>[CH3:1]does nothing. -
IGNORE_TOTAL_H0
Do not allow the total hydrogen count to be set if it is 0.[CH4:1]>>[CH3:1]works but[CH4:1]>>[CH0:1]does not. -
OVERWRITE_BOND
If a bond already exists where a new one is to be created update the bond order as required. -
REMOVE_UNMAPPED_FRAGMENTS
Postprocessing - Remove any disconnected fragments that were not matched by the transformed. -
RECOMPUTE_HYDROGENS
Postprocessing - Recompute the implicit hydrogen count on changed atoms that has not had its hydrogen count explicitly set. -
EXPAND_HYDROGENS
Preprocessing - Automatically convert implicit hydrogens to explicit hydrogens when the pattern contains a '*'.
-
-
Field Details
-
RDKIT
Align closer with RDKit's "Reaction SMARTS" semantics. -
DAYLIGHT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-