RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
SynthonSpaceRascalSearcher.h
Go to the documentation of this file.
1//
2// Copyright (C) David Cosgrove 2024.
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10
11// This file declares a concrete class derived from SynthonSpaceSearcher
12// that does RASCAL similarity searching of the SynthonSpace.
13
14#ifndef SYNTHONSPACERASCALSEARCHER_H
15#define SYNTHONSPACERASCALSEARCHER_H
16
17#include <RDGeneral/export.h>
18
21
22namespace RDKit::RascalMCES {
23struct RascalOptions;
24}
25
27
29 public:
32 const RascalMCES::RascalOptions &options,
33 const SynthonSpaceSearchParams &params,
34 SynthonSpace *space);
35
36 std::vector<std::unique_ptr<SynthonSpaceHitSet>> searchFragSet(
37 const std::vector<std::shared_ptr<ROMol>> &fragSet,
38 const SynthonSet &reaction) const override;
39
40 bool verifyHit(ROMol &hit, const std::string &rxnId,
41 const std::vector<const std::string *> &synthNames) override;
42
43 protected:
44 bool quickVerify(const SynthonSpaceHitSet *hitset,
45 const std::vector<size_t> &synthNums) const override;
47 const std::vector<size_t> &synthNums) const override;
48
49 private:
50 bool extraSearchSetup(
51 std::vector<std::vector<std::shared_ptr<ROMol>>> &fragSets,
52 const TimePoint *endTime) override;
53
54 const RascalMCES::RascalOptions &d_rascalOptions;
55 RascalMCES::RascalOptions d_rascalFragOptions;
56};
57
58} // namespace RDKit::SynthonSpaceSearch
59
60#endif // SYNTHONSPACERASCALSEARCHER_H
std::chrono::time_point< Clock > TimePoint
SynthonSpaceRascalSearcher(const ROMol &query, const RascalMCES::RascalOptions &options, const SynthonSpaceSearchParams &params, SynthonSpace *space)
double approxSimilarity(const SynthonSpaceHitSet *hitset, const std::vector< size_t > &synthNums) const override
std::vector< std::unique_ptr< SynthonSpaceHitSet > > searchFragSet(const std::vector< std::shared_ptr< ROMol > > &fragSet, const SynthonSet &reaction) const override
bool verifyHit(ROMol &hit, const std::string &rxnId, const std::vector< const std::string * > &synthNames) override
bool quickVerify(const SynthonSpaceHitSet *hitset, const std::vector< size_t > &synthNums) const override