RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
CanonicalizeStereoGroups.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2024 RDKit contributors
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#include <RDGeneral/export.h>
11#ifndef RD_CANONICALIZESTEROGROUPS_H
12#define RD_CANONICALIZESTEROGROUPS_H
13
14#include <string>
15#include <vector>
16#include <memory>
17#include <cstdint>
18#include <limits>
19
20namespace RDKit {
21
24 0, // when stereo groups are canonicalized, ABS groups are added only
25 // when other Stereo Groups are added this prevents a mol from having
26 // JUST an ABS stereo group
27 NeverInclude, // Abs groups are never included, Just AND and OR groups after
28 // stereo group canonicalization
29 AlwaysInclude // when stereo groups are canonicalized, ABS groups are added
30 // only when other Stereo Groups are added this prevents a mol
31 // from having JUST an ABS stereo group
32};
33
34class RigorousEnhancedStereoException : public std::runtime_error {
35 public:
37 : std::runtime_error(message) {};
38};
39
41 std::unique_ptr<ROMol> &mol,
44
45} // namespace RDKit
46
47#endif
#define RDKIT_SMILESPARSE_EXPORT
Definition export.h:505
Std stuff.
bool rdvalue_is(const RDValue_cast_t)
RDKIT_SMILESPARSE_EXPORT void canonicalizeStereoGroups(std::unique_ptr< ROMol > &mol, StereoGroupAbsOptions outputAbsoluteGroups=StereoGroupAbsOptions::OnlyIncludeWhenOtherGroupsExist)