11#ifndef RD_ABBREVIATIONS_H
12#define RD_ABBREVIATIONS_H
23namespace Abbreviations {
29 std::shared_ptr<ROMol>
mol;
36 return !(*
this == other);
44 : match(std::move(matchArg)), abbrev(std::move(abbrevArg)) {}
47 return abbrev == other.
abbrev && match == other.
match;
50 return !(*
this == other);
53namespace common_properties {
96 const std::string &text) {
110 const ROMol &mol,
const std::vector<AbbreviationDefinition> &
abbrevs,
115 RWMol &mol,
const std::vector<AbbreviationMatch> &matches);
118 RWMol &mol,
const std::vector<AbbreviationMatch> &matches);
122 RWMol &mol,
const std::vector<AbbreviationDefinition> &
abbrevs,
127 RWMol &mol,
const std::vector<AbbreviationDefinition> &
abbrevs,
RWMol is a molecule class that is intended to be edited.
#define RDKIT_ABBREVIATIONS_EXPORT
std::vector< AbbreviationDefinition > parseLinkers(const std::string &text)
equivalent to calling parseAbbreviations(text,true,true)
RDKIT_ABBREVIATIONS_EXPORT std::vector< AbbreviationDefinition > getDefaultLinkers()
returns the default set of linker definitions
RDKIT_ABBREVIATIONS_EXPORT std::vector< AbbreviationDefinition > parseAbbreviations(const std::string &text, bool removeExtraDummies=false, bool allowConnectionToDummies=false)
parses a string describing abbreviation matches and returns the result
RDKIT_ABBREVIATIONS_EXPORT std::vector< AbbreviationDefinition > getDefaultAbbreviations()
returns the default set of abbreviation definitions
RDKIT_ABBREVIATIONS_EXPORT const std::string origAtomMapping
RDKIT_ABBREVIATIONS_EXPORT const std::string origBondMapping
RDKIT_ABBREVIATIONS_EXPORT const std::string numDummies
RDKIT_ABBREVIATIONS_EXPORT void applyMatches(RWMol &mol, const std::vector< AbbreviationMatch > &matches)
RDKIT_ABBREVIATIONS_EXPORT void condenseAbbreviationSubstanceGroups(RWMol &mol)
RDKIT_ABBREVIATIONS_EXPORT void labelMolAbbreviations(RWMol &mol, const std::vector< AbbreviationDefinition > &abbrevs, double maxCoverage=0.4)
RDKIT_ABBREVIATIONS_EXPORT void condenseMolAbbreviations(RWMol &mol, const std::vector< AbbreviationDefinition > &abbrevs, double maxCoverage=0.4, bool sanitize=true)
RDKIT_ABBREVIATIONS_EXPORT void labelMatches(RWMol &mol, const std::vector< AbbreviationMatch > &matches)
creates "SUP" SubstanceGroups on the molecule describing the abbreviation
RDKIT_ABBREVIATIONS_EXPORT std::vector< AbbreviationMatch > findApplicableAbbreviationMatches(const ROMol &mol, const std::vector< AbbreviationDefinition > &abbrevs, double maxCoverage=0.4)
returns all matches for the abbreviations across the molecule
std::vector< std::pair< int, int > > MatchVectType
used to return matches from substructure searching, The format is (queryAtomIdx, molAtomIdx)
bool rdvalue_is(const RDValue_cast_t)
std::vector< unsigned int > extraAttachAtoms
optional
bool operator==(const AbbreviationDefinition &other) const
std::shared_ptr< ROMol > mol
optional
bool operator!=(const AbbreviationDefinition &other) const
std::string displayLabelW
AbbreviationMatch(std::vector< std::pair< int, int > > matchArg, AbbreviationDefinition abbrevArg)
bool operator!=(const AbbreviationMatch &other) const
AbbreviationDefinition abbrev
bool operator==(const AbbreviationMatch &other) const