public class RGroupQuery extends QueryChemObject implements IChemObject, Serializable, IRGroupQuery
This class can also be used to produce all the valid configurations for the combination of its root,definitions and conditions.
This Javadoc does not contain a code sample how to create a new RGroupQuery
from scratch, because a sensible RGroupQuery has quite a few attributes to be set
including a root plus a bunch of substituents, which are all atom containers.
So that would be a lot of sample code here.
The best way to get a feel for the way the RGroup objects are populated is to
run the RGroupQueryReaderTest and look at the sample
input RGroup query files contained in the CDK and how they translate into
RGroupXX objects. The JChempaint application can visualize the input files for you.
| Constructor and Description |
|---|
RGroupQuery(IChemObjectBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areRootAtomsDefined()
Checks validity of RGroupQuery.
|
boolean |
areSubstituentsDefined()
Checks validity of the RGroupQuery.
|
List<IAtomContainer> |
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.
|
List<IAtom> |
getAllRgroupQueryAtoms()
Returns all R# type atoms (pseudo atoms) found in the root structure.
|
int |
getAtomContainerCount()
Return the total number of atom containers (count the root plus all substituents).
|
Map<Integer,RGroupList> |
getRGroupDefinitions()
Getter for the R-group definitions (substituents).
|
List<IAtom> |
getRgroupQueryAtoms(Integer rgroupNumber)
Returns all R# type atoms (pseudo atoms) found in the root structure
for a certain provided RGgroup number.
|
Map<IAtom,Map<Integer,IBond>> |
getRootAttachmentPoints()
Getter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.
|
IAtomContainer |
getRootStructure()
Getter for the root structure of this R-Group.
|
List<IAtomContainer> |
getSubstituents()
Return all the substituent atom containers, in other words the atom containers
defined in this RGroupQuery except for the root structure.
|
static boolean |
isValidRgroupQueryLabel(String Rxx)
Validates a Pseudo atom's label to be valid RGroup query label (R1..R32).
|
void |
setRGroupDefinitions(Map<Integer,RGroupList> rGroupDefinitions)
Setter for the R-group definitions (substituents).
|
void |
setRootAttachmentPoints(Map<IAtom,Map<Integer,IBond>> rootAttachmentPoints)
Setter for root attachment points = bonds that connect R pseudo-atoms to the scaffold.
|
void |
setRootStructure(IAtomContainer rootStructure)
Setter for the root structure of this R-Group.
|
addListener, addProperties, clone, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, matches, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, addProperties, clone, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toStringgetBuilderpublic RGroupQuery(IChemObjectBuilder builder)
public List<IAtom> getRgroupQueryAtoms(Integer rgroupNumber)
rgroupNumber - R# number, 1..32public List<IAtom> getAllRgroupQueryAtoms()
public static boolean isValidRgroupQueryLabel(String Rxx)
Rxx - R-group label like R1 or R10public boolean areSubstituentsDefined()
IRGroupQueryRGroupList definition.areSubstituentsDefined in interface IRGroupQuerypublic boolean areRootAtomsDefined()
IRGroupQueryRGroupList definition must have one or more corresponding
R# atoms in the root block.areRootAtomsDefined in interface IRGroupQuerypublic List<IAtomContainer> getAllConfigurations() throws CDKException
IRGroupQuerygetAllConfigurations in interface IRGroupQueryCDKExceptionpublic int getAtomContainerCount()
IRGroupQuerygetAtomContainerCount in interface IRGroupQuerypublic List<IAtomContainer> getSubstituents()
IRGroupQuerygetSubstituents in interface IRGroupQuerypublic void setRootStructure(IAtomContainer rootStructure)
IRGroupQuerysetRootStructure in interface IRGroupQueryrootStructure - the root structure (or scaffold) containerIRGroupQuery.getRootStructure()public IAtomContainer getRootStructure()
IRGroupQuerygetRootStructure in interface IRGroupQueryIRGroupQuery.setRootStructure(org.openscience.cdk.interfaces.IAtomContainer)public void setRootAttachmentPoints(Map<IAtom,Map<Integer,IBond>> rootAttachmentPoints)
IRGroupQuerysetRootAttachmentPoints in interface IRGroupQueryrootAttachmentPoints - Map with per R-group pseudo atom another map with an Integer and an IBond, the integer indicating 1st or 2nd attachment.IRGroupQuery.getRootAttachmentPoints()public Map<IAtom,Map<Integer,IBond>> getRootAttachmentPoints()
IRGroupQuerygetRootAttachmentPoints in interface IRGroupQueryIRGroupQuery.setRootAttachmentPoints(Map)public void setRGroupDefinitions(Map<Integer,RGroupList> rGroupDefinitions)
IRGroupQuerysetRGroupDefinitions in interface IRGroupQueryrGroupDefinitions - map with an Integer and an RGroupList (substituent list), the Integer being the R-Group number (1..32).IRGroupQuery.getRGroupDefinitions()public Map<Integer,RGroupList> getRGroupDefinitions()
IRGroupQuerygetRGroupDefinitions in interface IRGroupQueryIRGroupQuery.setRGroupDefinitions(java.util.Map<java.lang.Integer, org.openscience.cdk.isomorphism.matchers.RGroupList>)Copyright © 2017. All rights reserved.