Class RGroupQueryManipulator

java.lang.Object
org.openscience.cdk.isomorphism.matchers.RGroupQueryManipulator

public class RGroupQueryManipulator extends Object
Functions for working with IRGroupQuerys - specifically it provides the ability to flatten/unflatten as a single IAtomContainer. When
Author:
John Mayfield
  • Method Details

    • toAtomContainer

      public static IAtomContainer toAtomContainer(IRGroupQuery rgq)
      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

      public static IRGroupQuery toRgroupQuery(IAtomContainer mol) throws CDKException
      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