Class RGroupQueryManipulator
java.lang.Object
org.openscience.cdk.isomorphism.matchers.RGroupQueryManipulator
Functions for working with
IRGroupQuerys - specifically it provides
the ability to flatten/unflatten as a single IAtomContainer. When- Author:
- John Mayfield
-
Method Summary
Modifier and TypeMethodDescriptionstatic IAtomContainerFlatten an RGroupQuery into an IAtomContainer making it easier to work with for some situations.static IRGroupQueryUnpack a flattened RGroupQuery from an IAtomContainer into an RGroupQuery making it easier to work with for some situations.
-
Method Details
-
toAtomContainer
Flatten an RGroupQuery into an IAtomContainer making it easier to work with for some situations. Note currently any RGroup logic is lost during the conversion.- Parameters:
rgq- the RGroup Query- Returns:
- the flattened Markush structure
-
toRgroupQuery
Unpack a flattened RGroupQuery from an IAtomContainer into an RGroupQuery making it easier to work with for some situations.- Parameters:
mol- the molecule- Returns:
- the unpacked Markush structure
- Throws:
CDKException
-