12#ifndef RD_RDFINGERPRINTGEN_H_2018_07
13#define RD_RDFINGERPRINTGEN_H_2018_07
22 unsigned int d_minPath = 1;
23 unsigned int d_maxPath = 7;
25 bool df_branchedPaths =
true;
26 bool df_useBondOrder =
true;
51 bool useHs =
true,
bool branchedPaths =
true,
52 bool useBondOrder =
true,
bool countSimulation =
false,
53 const std::vector<std::uint32_t> countBounds = {1, 2, 4, 8},
54 std::uint32_t fpSize = 2048,
55 std::uint32_t numBitsPerFeature = 2);
62 const ROMol &mol)
const override;
68template <
typename OutputType>
71 const OutputType d_bitId;
72 const boost::dynamic_bitset<> d_atomsInPath;
78 const std::vector<std::uint32_t> *atomInvariants,
79 const std::vector<std::uint32_t> *bondInvariants,
81 bool hashResults =
false,
82 const std::uint64_t fpSize = 0
85 size_t bitId)
const override;
98 d_atomsInPath(std::move(atomsInPath)),
99 d_bondPath(std::move(bondPath)) {}
102template <
typename OutputType>
108 const std::vector<std::uint32_t> *fromAtoms,
109 const std::vector<std::uint32_t> *ignoreAtoms,
int confId,
111 const std::vector<std::uint32_t> *atomInvariants,
112 const std::vector<std::uint32_t> *bondInvariants,
113 bool hashResults =
false)
const override;
153template <
typename OutputType>
159 const std::vector<std::uint32_t>
countBounds = {1, 2, 4, 8},
163template <
typename OutputType>
abstract base class that generates atom-environments from a molecule
abstract base class that holds atom-environments that will be hashed to generate the fingerprint
abstract base class for atom invariants generators
Abstract base class that holds molecule independent arguments that are common amongst all fingerprint...
class that generates same fingerprint style for different output formats
std::string infoString() const override
method that returns information string about the fingerprint specific argument set and the arguments ...
RDKitFPArguments(unsigned int minPath=1, unsigned int maxPath=7, bool useHs=true, bool branchedPaths=true, bool useBondOrder=true, bool countSimulation=false, const std::vector< std::uint32_t > countBounds={1, 2, 4, 8}, std::uint32_t fpSize=2048, std::uint32_t numBitsPerFeature=2)
Construct a new RDKitFPArguments object.
RDKitFPAtomEnv(const OutputType bitId, boost::dynamic_bitset<> atomsInPath, INT_VECT bondPath)
Construct a new RDKitFPAtomEnv object.
OutputType getBitId(FingerprintArguments *arguments, const std::vector< std::uint32_t > *atomInvariants, const std::vector< std::uint32_t > *bondInvariants, AdditionalOutput *additionalOutput, bool hashResults=false, const std::uint64_t fpSize=0) const override
calculates and returns the bit id to be set for this atom-environment
void updateAdditionalOutput(AdditionalOutput *output, size_t bitId) const override
std::vector< std::uint32_t > * getAtomInvariants(const ROMol &mol) const override
get atom invariants from a molecule
std::string infoString() const override
method that returns information about this /c AtomInvariantsGenerator and its arguments
RDKitFPAtomInvGenerator * clone() const override
OutputType getResultSize() const override
Returns the size of the fingerprint based on arguments.
std::vector< AtomEnvironment< OutputType > * > getEnvironments(const ROMol &mol, FingerprintArguments *arguments, const std::vector< std::uint32_t > *fromAtoms, const std::vector< std::uint32_t > *ignoreAtoms, int confId, const AdditionalOutput *additionalOutput, const std::vector< std::uint32_t > *atomInvariants, const std::vector< std::uint32_t > *bondInvariants, bool hashResults=false) const override
generate and return all atom-envorinments from a molecule
std::string infoString() const override
method that returns information about this /c AtomEnvironmentGenerator and its arguments if any
#define RDKIT_FINGERPRINTS_EXPORT
RDKIT_FINGERPRINTS_EXPORT FingerprintGenerator< OutputType > * getRDKitFPGenerator(unsigned int minPath=1, unsigned int maxPath=7, bool useHs=true, bool branchedPaths=true, bool useBondOrder=true, AtomInvariantsGenerator *atomInvariantsGenerator=nullptr, bool countSimulation=false, const std::vector< std::uint32_t > countBounds={1, 2, 4, 8}, std::uint32_t fpSize=2048, std::uint32_t numBitsPerFeature=2, bool ownsAtomInvGen=false)
Get a RDKit fingerprint generator with given parameters.
std::vector< int > INT_VECT
bool rdvalue_is(const RDValue_cast_t)