17#ifndef RDKIT_SYNTHONSPACE_H
18#define RDKIT_SYNTHONSPACE_H
34#include <boost/dynamic_bitset.hpp>
157 const std::shared_ptr<SynthonSet>
getReaction(std::string reactionName);
296 void readDBFile(
const std::string &inFilename,
int numThreads = 1);
336 const std::string &reactionName);
342 std::string d_fileName;
345 std::vector<std::pair<std::string, std::shared_ptr<SynthonSet>>> d_reactions;
350 unsigned int d_maxNumSynthons{0};
351 std::uint64_t d_numProducts{0};
355 std::int32_t d_fileMajorVersion{-1};
361 std::vector<std::pair<std::string, std::unique_ptr<Synthon>>> d_synthonPool;
365 std::string d_fpType;
367 SearchResults extendedSearch(
const MolBundle &query,
368 const SubstructMatchParameters &matchParams,
369 const SynthonSpaceSearchParams ¶ms);
370 SearchResults extendedSearch(
371 const GeneralizedSubstruct::ExtendedQueryMol::TautomerBundle_T &query,
372 const SubstructMatchParameters &matchParams,
373 const SynthonSpaceSearchParams ¶ms);
374 SearchResults extendedSearch(
const TautomerQuery &query,
375 const SubstructMatchParameters &matchParams,
376 const SynthonSpaceSearchParams ¶ms);
390 const std::string &inFilename,
const std::string &outFilename,
class that generates same fingerprint style for different output formats
std::string getSynthonFingerprintType() const
friend class SynthonSpaceSearcher
void readTextFile(const std::string &inFilename, bool &cancelled)
bool hasAddAndSubstractFingerprints() const
SearchResults substructureSearch(const GeneralizedSubstruct::ExtendedQueryMol &query, const SubstructMatchParameters &matchParams=SubstructMatchParameters(), const SynthonSpaceSearchParams ¶ms=SynthonSpaceSearchParams())
std::string getInputFileName() const
const std::shared_ptr< SynthonSet > getReaction(std::string reactionName)
friend class SynthonSpaceRascalSearcher
unsigned int getMaxNumSynthons() const
SearchResults rascalSearch(const ROMol &query, const RascalMCES::RascalOptions &rascalOptions, const SynthonSpaceSearchParams ¶ms=SynthonSpaceSearchParams())
Synthon * addSynthonToPool(const std::string &smiles)
SynthonSpace & operator=(const SynthonSpace &other)=delete
void summarise(std::ostream &os)
SynthonSpace(const SynthonSpace &other)=delete
bool hasFingerprints() const
void writeEnumeratedFile(const std::string &outFilename) const
std::uint64_t getNumProducts() const
void writeDBFile(const std::string &outFilename) const
size_t getNumReactions() const
void enumerateToStream(std::ostream &os) const
SearchResults fingerprintSearch(const ROMol &query, const FingerprintGenerator< std::uint64_t > &fpGen, const SynthonSpaceSearchParams ¶ms=SynthonSpaceSearchParams())
std::shared_ptr< SynthonSet > addReactionToPool(const std::string &reactionName)
unsigned int getFPSize() const
void readDBFile(const std::string &inFilename, int numThreads=1)
SearchResults substructureSearch(const ROMol &query, const SubstructMatchParameters &matchParams=SubstructMatchParameters(), const SynthonSpaceSearchParams ¶ms=SynthonSpaceSearchParams())
Synthon * getSynthonFromPool(const std::string &smiles) const
std::vector< std::string > getReactionNames() const
friend class SynthonSpaceFingerprintSearcher
void buildSynthonFingerprints(const FingerprintGenerator< std::uint64_t > &fpGen)
void readStream(std::istream &is, bool &cancelled)
unsigned int getPatternFPSize() const
#define RDKIT_SYNTHONSPACESEARCH_EXPORT
RDKIT_SYNTHONSPACESEARCH_EXPORT void convertTextToDBFile(const std::string &inFilename, const std::string &outFilename, bool &cancelled, const FingerprintGenerator< std::uint64_t > *fpGen=nullptr)
RDKIT_SYNTHONSPACESEARCH_EXPORT std::string formattedIntegerString(std::int64_t value)
constexpr unsigned int MAX_CONNECTOR_NUM
const std::vector< std::string > CONNECTOR_SYMBOLS
std::int64_t toTryChunkSize
unsigned int minHitChiralAtoms
std::uint64_t maxNumFragSets
double approxSimilarityAdjuster
double fragSimilarityAdjuster
unsigned int minHitHeavyAtoms