Class RGroup
java.lang.Object
org.openscience.cdk.isomorphism.matchers.RGroup
- All Implemented Interfaces:
IRGroup
Represents a single substitute structure in an
RGroupList. The order of attachment points is provided (first and second only, conform RGFile spec). This order is relevant when the structure connects to the root with more than one bond.
See also RGroupList and RGroupQuery.
- Author:
- Mark Rijnbeek
- Keywords:
- Rgroup, R group, R-group
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStandard label/title to be used for the root atom container. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the first attachment point of the RGroup.getGroup()Get the connection table of atoms/bonds for this Rgroup.Get the optional second attachment point of the RGroup.static StringmakeLabel(int rgroupNum) Makes a label/title to be used for a substituent.voidsetFirstAttachmentPoint(IAtom firstAttachmentPoint) Deprecated.use IPseudoAtom with attachNum to explicitly indicate attachmentvoidsetGroup(IAtomContainer group) voidsetSecondAttachmentPoint(IAtom secondAttachmentPoint) Deprecated.use IPseudoAtom with attachNum to explicitly indicate attachment
-
Field Details
-
ROOT_LABEL
Standard label/title to be used for the root atom container.- See Also:
-
-
Constructor Details
-
RGroup
public RGroup()
-
-
Method Details
-
makeLabel
Makes a label/title to be used for a substituent.- Parameters:
rgroupNum- R-Group number (1..32)- Returns:
- label for substituent, like "R3"
-
setFirstAttachmentPoint
Deprecated.use IPseudoAtom with attachNum to explicitly indicate attachmentThis function is used to set/move the attachment point on an RGroup. It does not set coordinates or adjust hydrogen counts and will modifying the underlying structure add/move bonds and atoms.- Parameters:
firstAttachmentPoint- the atom ato attach to
-
getFirstAttachmentPoint
Description copied from interface:IRGroupGet the first attachment point of the RGroup.- Specified by:
getFirstAttachmentPointin interfaceIRGroup- Returns:
- the first attachment point
-
setSecondAttachmentPoint
Deprecated.use IPseudoAtom with attachNum to explicitly indicate attachmentThis function is used to set/move the attachment point on an RGroup. It does not set coordinates or adjust hydrogen counts and will modifying the underlying structure add/move bonds and atoms.- Parameters:
secondAttachmentPoint- the atom ato attach to
-
getSecondAttachmentPoint
Description copied from interface:IRGroupGet the optional second attachment point of the RGroup.- Specified by:
getSecondAttachmentPointin interfaceIRGroup- Returns:
- the second attachment point or null.
-
setGroup
-
getGroup
Description copied from interface:IRGroupGet the connection table of atoms/bonds for this Rgroup.
-