18#include <boost/smart_ptr.hpp>
35 const char *
what() const noexcept
override {
return _msg.c_str(); }
52setRingSystemTemplates(const std::
string templatePath);
65addRingSystemTemplates(const std::
string templatePath);
77 bool canonOrient =
false;
79 bool clearConfs =
true;
82 unsigned int nFlipsPerSample = 0;
84 unsigned int nSamples = 0;
86 bool permuteDeg4Nodes =
false;
89 bool forceRDKit =
false;
91 bool useRingTemplates =
false;
150 bool canonOrient =
false,
bool clearConfs =
true,
151 unsigned int nFlipsPerSample = 0,
unsigned int nSamples = 0,
152 int sampleSeed = 0,
bool permuteDeg4Nodes =
false,
bool forceRDKit =
false,
153 bool useRingTemplates =
false);
209 bool canonOrient =
true,
bool clearConfs =
true,
double weightDistMat = 0.5,
210 unsigned int nFlipsPerSample = 3,
unsigned int nSamples = 100,
211 int sampleSeed = 25,
bool permuteDeg4Nodes =
true,
bool forceRDKit =
false);
217 bool acceptFailure =
false;
220 bool forceRDKit =
false;
224 bool allowRGroups =
false;
231 bool alignOnly =
false;
235 bool adjustMolBlockWedging =
true;
241 int existingConfId = -1;
387 const RDKit::ROMol *referencePattern,
bool acceptFailure,
388 bool forceRDKit =
false,
bool allowOptionalAttachments =
false);
416 RDKit::ROMol *referencePattern =
nullptr,
bool acceptFailure =
false,
417 bool forceRDKit =
false);
436 bool minimizeRotation =
false);
466 int canonicalize = 1,
467 double scaleFactor = -1.0);
DepictException(const char *msg)
~DepictException() noexcept override=default
DepictException(const std::string msg)
const char * what() const noexcept override
#define RDKIT_DEPICTOR_EXPORT
boost::shared_array< double > DOUBLE_SMART_PTR
RDKIT_DEPICTOR_EXPORT void generateDepictionMatching2DStructure(RDKit::ROMol &mol, const RDKit::ROMol &reference, const RDKit::MatchVectType &refMatchVect, int confId=-1, const ConstrainedDepictionParams ¶ms=ConstrainedDepictionParams())
Compute 2D coordinates where a piece of the molecule is constrained to have the same coordinates as a...
RDKIT_DEPICTOR_EXPORT void generateDepictionMatching3DStructure(RDKit::ROMol &mol, const RDKit::ROMol &reference, int confId=-1, RDKit::ROMol *referencePattern=nullptr, bool acceptFailure=false, bool forceRDKit=false)
Generate a 2D depiction for a molecule where all or part of it mimics the coordinates of a 3D referen...
RDKIT_DEPICTOR_EXPORT double normalizeDepiction(RDKit::ROMol &mol, int confId=-1, int canonicalize=1, double scaleFactor=-1.0)
Normalizes the 2D depiction.
RDKIT_DEPICTOR_EXPORT unsigned int compute2DCoords(RDKit::ROMol &mol, const Compute2DCoordParameters ¶ms)
Generate 2D coordinates (a depiction) for a molecule.
RDKIT_DEPICTOR_EXPORT void straightenDepiction(RDKit::ROMol &mol, int confId=-1, bool minimizeRotation=false)
Rotate the 2D depiction such that the majority of bonds have an angle with the X axis which is a mult...
RDKIT_DEPICTOR_EXPORT unsigned int compute2DCoordsMimicDistMat(RDKit::ROMol &mol, const DOUBLE_SMART_PTR *dmat=nullptr, bool canonOrient=true, bool clearConfs=true, double weightDistMat=0.5, unsigned int nFlipsPerSample=3, unsigned int nSamples=100, int sampleSeed=25, bool permuteDeg4Nodes=true, bool forceRDKit=false)
Compute the 2D coordinates such the interatom distances mimic those in a distance matrix.
RDKIT_DEPICTOR_EXPORT bool preferCoordGen
std::map< int, Point2D > INT_POINT2D_MAP
std::vector< std::pair< int, int > > MatchVectType
used to return matches from substructure searching, The format is (queryAtomIdx, molAtomIdx)
Compute2DCoordParameters()=default