Class StereoisomerSettings
java.lang.Object
com.chemaxon.calculations.stereoisomers.StereoisomerSettings
Settings class for
StereoisomerEnumeration.
Usage example:
// create and set a new instance
StereoisomerSettings settings = StereoisomerSettings.create()
.setStereoisomerType(EnumSet.of(StereoisomerType.CISTRANS)) // only double bond stereoisomers are generated
.setProtectTetrahedralStereo(true) // protect tetrahedral stereocenters
.setVerify3d(true); // invalid 3D structures are fitered
// use these settings when a new enumeration is constructed
StereoisomerEnumeration enumeration = new StereoisomerEnumeration(molecule, settings);
- Since:
- Marvin 14.12.15
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of stereoisomers. -
Method Summary
Modifier and TypeMethodDescriptionstatic StereoisomerSettingscreate()Constructs a newStereoisomerSettingsobject with default settings.Returns the adjusted maximum number of generated stereoisomers or.invalid reference
Optional#absent()booleanReturns true if 3D structures will be generated.booleanReturns the adjusted double bond stereo protection flag.booleanReturns the adjusted tetrahedral stereo protection flag.setMaxStereoisomerCount(int maxStereoisomerCount) Sets the maxinum number of stereoisomers to be generated.setOutputIn3d(boolean outputIn3d) 3D structures are generated (invalid 3D structure are filtered)setProtectDoubleBondStereo(boolean protectDoubleBondStereo) Sets double bond stereo protection.setProtectTetrahedralStereo(boolean protectTetrahedralStereo) Sets the protection of tetrahedral stereo centers.Sets which types of stereoisomers should be generated.setVerify3d(boolean verify3d) Invalid 3D structures of generated stereoisomers are filtered.Returns the type of generated stereoisomers.toString()booleanverify3d()Returns true if 3D structure will be checked for a valid stereo conformation.
-
Method Details
-
create
Constructs a newStereoisomerSettingsobject with default settings.Defaults:
Types: EnumSet.allOf(StereoisomerType.class) Protect tetrahedral stereo: false Protect double bond stereo: false Max stereoisomer count: Optional.empty() 3D verify: false 3D output: false
- Returns:
- a new
StereoisomerSettingsobject
-
stereoisomerTypes
Returns the type of generated stereoisomers.- Returns:
- an
EnumSetwhich contains the stereoisomerism types - See Also:
-
protectTetrahedralStereo
public boolean protectTetrahedralStereo()Returns the adjusted tetrahedral stereo protection flag.- Returns:
- true if protects the tetrahedral stereo centers
-
protectDoubleBondStereo
public boolean protectDoubleBondStereo()Returns the adjusted double bond stereo protection flag.- Returns:
- true if protects the double bond stereo centers
-
maxStereoisomerCount
Returns the adjusted maximum number of generated stereoisomers or.invalid reference
Optional#absent()- Returns:
- an
Optionalobject which contains the adjusted value
-
verify3d
public boolean verify3d()Returns true if 3D structure will be checked for a valid stereo conformation.- Returns:
- the adjusted value
-
outputIn3d
public boolean outputIn3d()Returns true if 3D structures will be generated.- Returns:
- the adjusted value
-
setStereoisomerType
public StereoisomerSettings setStereoisomerType(EnumSet<StereoisomerSettings.StereoisomerType> types) Sets which types of stereoisomers should be generated.Available values:
StereoisomerSettings.StereoisomerType.TETRAHEDRAL: tetrahedral stereoisomers are generatedStereoisomerSettings.StereoisomerType.CISTRANS: double bond stereoisomers are generated
- Parameters:
types- are the stereoisomerism types (represented by an enumset)- Returns:
- a
StereoisomerSettingsformed from this and the specified settings - See Also:
-
setProtectTetrahedralStereo
Sets the protection of tetrahedral stereo centers.If
truethen stereo configuration of tetrahedral stereo centers with preset stereo information will not be changed.- Parameters:
protectTetrahedralStereo- istrueif preset tetrahedral stereo centers should be protected- Returns:
- a
StereoisomerSettingsformed from this and the specified settings
-
setProtectDoubleBondStereo
Sets double bond stereo protection.If
truethen the stereo configuration of double bonds with preset stereo information will not be changed.- Parameters:
protectDoubleBondStereo- istrueif preset double bond stereo information should be protected- Returns:
- a
StereoisomerSettingsformed from this and the specified settings
-
setMaxStereoisomerCount
Sets the maxinum number of stereoisomers to be generated.If not set the
StereoisomerEnumerationgenerates all stereoisomers of the molecule. It is recommended to use when there are too much stereoisomers to fit to the memory.- Parameters:
maxStereoisomerCount- the number of stereoisomers to be generated- Returns:
- a
StereoisomerSettingsformed from this and the specified settings
-
setVerify3d
Invalid 3D structures of generated stereoisomers are filtered.- Returns:
- a
StereoisomerSettingsformed from this and the specified settings
-
setOutputIn3d
3D structures are generated (invalid 3D structure are filtered)- Returns:
- a
StereoisomerSettingsformed from this and the specified settings
-
toString
-