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>
14
namespace
RDKit
{
15
class
ROMol
;
16
}
// namespace RDKit
17
18
#include <string>
19
#include <vector>
20
#include <memory>
21
#include <cstdint>
22
#include <limits>
23
24
namespace
RDKit
{
25
26
enum class
StereoGroupAbsOptions
{
27
OnlyIncludeWhenOtherGroupsExist
=
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
38
class
RigorousEnhancedStereoException
:
public
std::runtime_error {
39
public
:
40
explicit
RigorousEnhancedStereoException
(std::string message)
41
: std::runtime_error(message) {};
42
};
43
44
RDKIT_SMILESPARSE_EXPORT
void
canonicalizeStereoGroups
(
45
std::unique_ptr<ROMol> &mol,
46
StereoGroupAbsOptions
outputAbsoluteGroups =
47
StereoGroupAbsOptions::OnlyIncludeWhenOtherGroupsExist
,
48
unsigned
int
maxStereoGroups = 12);
49
50
}
// namespace RDKit
51
52
#endif
RDKit::ROMol
Definition
ROMol.h:344
RDKit::RigorousEnhancedStereoException::RigorousEnhancedStereoException
RigorousEnhancedStereoException(std::string message)
Definition
CanonicalizeStereoGroups.h:40
export.h
RDKIT_SMILESPARSE_EXPORT
#define RDKIT_SMILESPARSE_EXPORT
Definition
export.h:681
RDKit
Std stuff.
Definition
Abbreviations.h:19
RDKit::StereoGroupAbsOptions
StereoGroupAbsOptions
Definition
CanonicalizeStereoGroups.h:26
RDKit::StereoGroupAbsOptions::OnlyIncludeWhenOtherGroupsExist
@ OnlyIncludeWhenOtherGroupsExist
Definition
CanonicalizeStereoGroups.h:27
RDKit::StereoGroupAbsOptions::NeverInclude
@ NeverInclude
Definition
CanonicalizeStereoGroups.h:31
RDKit::StereoGroupAbsOptions::AlwaysInclude
@ AlwaysInclude
Definition
CanonicalizeStereoGroups.h:33
RDKit::canonicalizeStereoGroups
RDKIT_SMILESPARSE_EXPORT void canonicalizeStereoGroups(std::unique_ptr< ROMol > &mol, StereoGroupAbsOptions outputAbsoluteGroups=StereoGroupAbsOptions::OnlyIncludeWhenOtherGroupsExist, unsigned int maxStereoGroups=12)
GraphMol
SmilesParse
CanonicalizeStereoGroups.h
Generated on
for RDKit by
1.15.0