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, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addProperties, clone, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
getBuilder
public 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()
IRGroupQuery
RGroupList
definition.areSubstituentsDefined
in interface IRGroupQuery
public boolean areRootAtomsDefined()
IRGroupQuery
RGroupList
definition must have one or more corresponding
R# atoms in the root block.areRootAtomsDefined
in interface IRGroupQuery
public List<IAtomContainer> getAllConfigurations() throws CDKException
IRGroupQuery
getAllConfigurations
in interface IRGroupQuery
CDKException
public int getAtomContainerCount()
IRGroupQuery
getAtomContainerCount
in interface IRGroupQuery
public List<IAtomContainer> getSubstituents()
IRGroupQuery
getSubstituents
in interface IRGroupQuery
public void setRootStructure(IAtomContainer rootStructure)
IRGroupQuery
setRootStructure
in interface IRGroupQuery
rootStructure
- the root structure (or scaffold) containerIRGroupQuery.getRootStructure()
public IAtomContainer getRootStructure()
IRGroupQuery
getRootStructure
in interface IRGroupQuery
IRGroupQuery.setRootStructure(org.openscience.cdk.interfaces.IAtomContainer)
public void setRootAttachmentPoints(Map<IAtom,Map<Integer,IBond>> rootAttachmentPoints)
IRGroupQuery
setRootAttachmentPoints
in interface IRGroupQuery
rootAttachmentPoints
- 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()
IRGroupQuery
getRootAttachmentPoints
in interface IRGroupQuery
IRGroupQuery.setRootAttachmentPoints(Map)
public void setRGroupDefinitions(Map<Integer,RGroupList> rGroupDefinitions)
IRGroupQuery
setRGroupDefinitions
in interface IRGroupQuery
rGroupDefinitions
- 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()
IRGroupQuery
getRGroupDefinitions
in interface IRGroupQuery
IRGroupQuery.setRGroupDefinitions(java.util.Map<java.lang.Integer, org.openscience.cdk.isomorphism.matchers.RGroupList>)
Copyright © 2021. All rights reserved.