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#include <stdexcept>
14namespace RDKit {
15class ROMol;
16} // namespace RDKit
17
18#include <string>
19#include <vector>
20#include <memory>
21#include <cstdint>
22#include <limits>
23
24namespace RDKit {
25
28 0, // when stereo groups are canonicalized, ABS groups are added only
29 // when other Stereo Groups are added this prevents a mol from having
30 // JUST an ABS stereo group
31 NeverInclude, // Abs groups are never included, Just AND and OR groups after
32 // stereo group canonicalization
33 AlwaysInclude // when stereo groups are canonicalized, ABS groups are added
34 // only when other Stereo Groups are added this prevents a mol
35 // from having JUST an ABS stereo group
36};
37
38class RigorousEnhancedStereoException : public std::runtime_error {
39 public:
40 explicit RigorousEnhancedStereoException(std::string message)
41 : std::runtime_error(message) {};
42};
43
45 std::unique_ptr<ROMol> &mol,
46 StereoGroupAbsOptions outputAbsoluteGroups =
48 unsigned int maxStereoGroups = 12);
49
50} // namespace RDKit
51
52#endif
#define RDKIT_SMILESPARSE_EXPORT
Definition export.h:681
Std stuff.
RDKIT_SMILESPARSE_EXPORT void canonicalizeStereoGroups(std::unique_ptr< ROMol > &mol, StereoGroupAbsOptions outputAbsoluteGroups=StereoGroupAbsOptions::OnlyIncludeWhenOtherGroupsExist, unsigned int maxStereoGroups=12)