Interface IRGroupQuery
- All Superinterfaces:
Cloneable,ICDKObject,IChemObject
- All Known Implementing Classes:
RGroupQuery
Interface definition for Rgroup query classes. These must provide a root
structure, root attachment points and Rgroup definitions.
- Author:
- Mark Rijnbeek
- Keywords:
- Rgroup, R group, R-group
-
Field Summary
Fields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks validity of RGroupQuery.booleanChecks validity of the RGroupQuery.Produces all combinations of the root structure (scaffold) with the R-groups substituted in valid ways, using each R-group's definitions and conditions.intReturn the total number of atom containers (count the root plus all substituents).Getter for the R-group definitions (substituents).Getter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.Getter for the root structure of this R-Group.Return all the substituent atom containers, in other words the atom containers defined in this RGroupQuery except for the root structure.voidsetRGroupDefinitions(Map<Integer, IRGroupList> rGroupDefinitions) Setter for the R-group definitions (substituents).voidSetter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.voidsetRootStructure(IAtomContainer rootStructure) Setter for the root structure of this R-Group.Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilderMethods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, clear, clone, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
-
Method Details
-
setRootStructure
Setter for the root structure of this R-Group.- Parameters:
rootStructure- the root structure (or scaffold) container- See Also:
-
getRootStructure
IAtomContainer getRootStructure()Getter for the root structure of this R-Group.- Returns:
- the root structure (or scaffold) container
- See Also:
-
setRootAttachmentPoints
Setter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.- Parameters:
rootAttachmentPoints- Map with per R-group pseudo atom another map with an Integer and an IBond, the integer indicating 1st or 2nd attachment.- See Also:
-
getRootAttachmentPoints
Getter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.- Returns:
- Map with per R-group pseudo atom another map with an Integer and an IBond, the integer indicating 1st or 2nd attachment.
- See Also:
-
setRGroupDefinitions
Setter for the R-group definitions (substituents).- Parameters:
rGroupDefinitions- map with an Integer and an RGroupList (substituent list), the Integer being the R-Group number (1..32).- See Also:
-
getRGroupDefinitions
Map<Integer,IRGroupList> getRGroupDefinitions()Getter for the R-group definitions (substituents).- Returns:
- rGroupDefinitions Map with an Integer and an RGroupList (substituent list), the Integer being the R-Group number (1..32).
- See Also:
-
getAtomContainerCount
int getAtomContainerCount()Return the total number of atom containers (count the root plus all substituents).- Returns:
- count.
-
getSubstituents
List<IAtomContainer> getSubstituents()Return all the substituent atom containers, in other words the atom containers defined in this RGroupQuery except for the root structure.- Returns:
- list with all substituents
-
areSubstituentsDefined
boolean areSubstituentsDefined()Checks validity of the RGroupQuery. Each distinct R# in the root must have a a correspondingRGroupListdefinition.
In file terms: $RGP blocks must be defined for each R-group number.- Returns:
- true when valid
-
areRootAtomsDefined
boolean areRootAtomsDefined()Checks validity of RGroupQuery. EachRGroupListdefinition must have one or more corresponding R# atoms in the root block.- Returns:
- true when valid
-
getAllConfigurations
Produces all combinations of the root structure (scaffold) with the R-groups substituted in valid ways, using each R-group's definitions and conditions.- Returns:
- all valid combinations of the root structure (scaffold) with the R-groups substituted.
- Throws:
Exception
-