12#ifndef RD_RDFINGERPRINTGEN_H_2018_07
13#define RD_RDFINGERPRINTGEN_H_2018_07
51 bool branchedPaths,
bool useBondOrder,
bool countSimulation,
52 const std::vector<std::uint32_t> countBounds,
53 std::uint32_t fpSize, std::uint32_t numBitsPerFeature);
60 const ROMol &mol)
const override;
66template <
typename OutputType>
69 const OutputType d_bitId;
70 const boost::dynamic_bitset<> d_atomsInPath;
76 const std::vector<std::uint32_t> *atomInvariants,
77 const std::vector<std::uint32_t> *bondInvariants,
79 bool hashResults =
false,
80 const std::uint64_t fpSize = 0
83 size_t bitId)
const override;
96 d_atomsInPath(std::move(atomsInPath)),
97 d_bondPath(std::move(bondPath)) {}
100template <
typename OutputType>
106 const std::vector<std::uint32_t> *fromAtoms,
107 const std::vector<std::uint32_t> *ignoreAtoms,
int confId,
109 const std::vector<std::uint32_t> *atomInvariants,
110 const std::vector<std::uint32_t> *bondInvariants,
111 bool hashResults =
false)
const override;
151template <
typename OutputType>
157 const std::vector<std::uint32_t>
countBounds = {1, 2, 4, 8},
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
RDKitFPArguments(unsigned int minPath, unsigned int maxPath, bool useHs, bool branchedPaths, bool useBondOrder, bool countSimulation, const std::vector< std::uint32_t > countBounds, std::uint32_t fpSize, std::uint32_t numBitsPerFeature)
Construct a new RDKitFPArguments object.
std::string infoString() const override
method that returns information string about the fingerprint specific argument set and the arguments ...
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)