15 #include "../RDKitBase.h"
41 bool MatchValences =
false;
42 bool MatchChiralTag =
false;
43 bool MatchFormalCharge =
false;
44 bool RingMatchesRingOnly =
false;
45 bool MatchIsotope =
false;
49 bool RingMatchesRingOnly =
false;
50 bool CompleteRingsOnly =
false;
51 bool MatchFusedRings =
false;
52 bool MatchFusedRingsStrict =
false;
53 bool MatchStereo =
false;
57 const std::uint32_t c1[],
const std::uint32_t c2[],
const ROMol& mol1,
61 const ROMol& mol1,
unsigned int atom1,
62 const ROMol& mol2,
unsigned int atom2,
65 const ROMol& mol1,
unsigned int bond1,
66 const ROMol& mol2,
unsigned int bond2,
71 const ROMol& mol1,
unsigned int atom1,
75 const ROMol& mol1,
unsigned int atom1,
76 const ROMol& mol2,
unsigned int atom2);
78 const ROMol& mol1,
unsigned int atom1,
83 const ROMol& mol1,
unsigned int atom1,
84 const ROMol& mol2,
unsigned int atom2,
88 const ROMol& mol2,
unsigned int atom2,
void* userData);
92 const ROMol& mol2,
unsigned int atom2,
void* userData);
95 const ROMol& mol2,
unsigned int atom2,
void* userData);
98 const ROMol& mol1,
unsigned int bond1,
99 const ROMol& mol2,
unsigned int bond2);
101 const ROMol& mol1,
unsigned int bond1,
102 const ROMol& mol2,
unsigned int bond2,
103 void* v_ringMatchMatrixSet);
106 const ROMol& mol1,
unsigned int bond1,
107 const ROMol& mol2,
unsigned int bond2,
111 const ROMol& mol2,
unsigned int bond2,
115 const ROMol& mol2,
unsigned int bond2,
void* userData);
118 unsigned NumAtoms{0};
119 unsigned NumBonds{0};
120 unsigned SeedProcessed{0};
134 bool MaximizeBonds =
true;
135 double Threshold = 1.0;
136 unsigned Timeout = -1;
137 bool Verbose =
false;
142 void* CompareFunctionsUserData =
nullptr;
145 void* ProgressCallbackUserData =
nullptr;
148 std::string InitialSeed =
"";
156 unsigned NumAtoms{0};
157 unsigned NumBonds{0};
159 bool Canceled{
false};
174 const char* params_json);
177 const std::vector<ROMOL_SPTR>& mols,
bool maximizeBonds,
double threshold,
178 unsigned timeout,
bool verbose,
bool matchValences,
179 bool ringMatchesRingOnly,
bool completeRingsOnly,
bool matchChiralTag,
182 findMCS(
const std::vector<ROMOL_SPTR>& mols,
bool maximizeBonds,
183 double threshold = 1.0,
unsigned timeout = 3600,
bool verbose =
false,
184 bool matchValences =
false,
bool ringMatchesRingOnly =
false,
185 bool completeRingsOnly =
false,
bool matchChiralTag =
false,
#define RDKIT_FMCS_EXPORT
bool(* MCSAtomCompareFunction)(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
RDKIT_FMCS_EXPORT MCSResult findMCS_P(const std::vector< ROMOL_SPTR > &mols, const char *params_json)
RDKIT_FMCS_EXPORT bool MCSAtomCompareAnyHeavyAtom(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
@ AtomCompareAnyHeavyAtom
RDKIT_FMCS_EXPORT bool MCSAtomCompareElements(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
RDKIT_FMCS_EXPORT bool checkBondStereo(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2)
RDKIT_FMCS_EXPORT void parseMCSParametersJSON(const char *json, MCSParameters *params)
RDKIT_FMCS_EXPORT bool MCSBondCompareAny(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
RDKIT_FMCS_EXPORT MCSResult findMCS(const std::vector< ROMOL_SPTR > &mols, const MCSParameters *params=nullptr)
RDKIT_FMCS_EXPORT bool MCSAtomCompareAny(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
RDKIT_FMCS_EXPORT bool MCSBondCompareOrder(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
RDKIT_FMCS_EXPORT bool checkAtomRingMatch(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2)
RDKIT_FMCS_EXPORT bool checkAtomCharge(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2)
RDKIT_FMCS_EXPORT bool MCSAtomCompareIsotopes(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
RDKIT_FMCS_EXPORT bool checkBondRingMatch(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *v_ringMatchMatrixSet)
boost::shared_ptr< ROMol > ROMOL_SPTR
bool(* MCSBondCompareFunction)(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
RDKIT_FMCS_EXPORT bool checkAtomChirality(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2)
bool(* MCSProgressCallback)(const MCSProgressData &stat, const MCSParameters ¶ms, void *userData)
RDKIT_FMCS_EXPORT bool MCSProgressCallbackTimeout(const MCSProgressData &stat, const MCSParameters ¶ms, void *userData)
bool(* MCSFinalMatchCheckFunction)(const std::uint32_t c1[], const std::uint32_t c2[], const ROMol &mol1, const FMCS::Graph &query, const ROMol &mol2, const FMCS::Graph &target, const MCSParameters *p)
RDKIT_FMCS_EXPORT bool MCSBondCompareOrderExact(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
void setMCSBondTyperFromEnum(BondComparator bondComp)
void setMCSBondTyperFromConstChar(const char *bondComp)
void setMCSAtomTyperFromConstChar(const char *atomComp)
void setMCSAtomTyperFromEnum(AtomComparator atomComp)
MCSAtomCompareParameters AtomCompareParameters
MCSBondCompareParameters BondCompareParameters