RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
MMPA.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2015 Novartis Institutes for BioMedical Research
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
#pragma once
12
#include <vector>
13
#include <string>
14
#include <stdexcept>
15
#include "../RDKitBase.h"
16
17
namespace
RDKit
{
18
19
namespace
MMPA {
20
//! fragments a Molecule for processing with the Matched Molecular Pairs
21
//! MMPA algorithm (Hussain et al)
22
/*!
23
\param mol Molecule to fragment
24
\param result Vector of Core and Sidechain results from the various
25
cuts
26
\param maxCuts Maximum number of times to cut the molecule to generate
27
fragments. A max cut of 3 will fragment with 1,2 and 3
28
cuts.
29
\param maxCutBonds Set the bond limit for determining which molecules
30
to analyze. If a molecule has more than
31
this number of cutabble bonds, ignore.
32
33
\return true if the molecule was fragmented, false otherwise.
34
*/
35
36
RDKIT_MMPA_EXPORT
bool
fragmentMol
(
37
const
ROMol
&mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>> &
result
,
38
unsigned
int
maxCuts
= 3,
unsigned
int
maxCutBonds
= 20,
39
const
std::string &
pattern
=
"[#6+0;!$(*=,#[!#6])]!@!=!#[*]"
);
40
41
//! fragments a Molecule for processing with the Matched Molecular Pairs
42
//! MMPA algorithm (Hussain et al)
43
/*!
44
\param mol Molecule to fragment
45
\param result Vector of Core and Sidechain results from the various
46
cuts
47
\param minCuts Minimum number of times to cut the molecule to generate
48
fragments.
49
\param maxCuts Maximum number of times to cut the molecule to generate
50
fragments.
51
\param maxCutBonds Set the bond limit for determining which molecules
52
to analyze. If a molecule has more than
53
this number of cutabble bonds, ignore.
54
55
\return true if the molecule was fragmented, false otherwise.
56
*/
57
RDKIT_MMPA_EXPORT
bool
fragmentMol
(
58
const
ROMol
&mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>> &
result
,
59
unsigned
int
minCuts
,
unsigned
int
maxCuts
,
unsigned
int
maxCutBonds
,
60
const
std::string &
pattern
=
"[#6+0;!$(*=,#[!#6])]!@!=!#[*]"
);
61
62
//! fragments a Molecule for processing with the Matched Molecular Pairs
63
//! MMPA algorithm (Hussain et al)
64
/*!
65
\param mol Molecule to fragment
66
\param result Vector of Core and Sidechain results from the various
67
cuts
68
\param bondsToCut Vector of bond indices to use as cut points
69
\param minCuts Minimum number of times to cut the molecule to generate
70
fragments.
71
\param maxCuts Maximum number of times to cut the molecule to generate
72
fragments.
73
\return true if the molecule was fragmented, false otherwise.
74
*/
75
RDKIT_MMPA_EXPORT
bool
fragmentMol
(
76
const
ROMol
&mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>> &
result
,
77
const
std::vector<unsigned int> &
bondsToCut
,
unsigned
int
minCuts
= 1,
78
unsigned
int
maxCuts
= 3);
79
80
}
// namespace MMPA
81
}
// namespace RDKit
RDKit::ROMol
Definition
ROMol.h:199
export.h
RDKIT_MMPA_EXPORT
#define RDKIT_MMPA_EXPORT
Definition
export.h:257
RDKit::MMPA::fragmentMol
RDKIT_MMPA_EXPORT bool fragmentMol(const ROMol &mol, std::vector< std::pair< ROMOL_SPTR, ROMOL_SPTR > > &result, unsigned int maxCuts=3, unsigned int maxCutBonds=20, const std::string &pattern="[#6+0;!$(*=,#[!#6])]!@!=!#[*]")
RDKit
Std stuff.
Definition
Abbreviations.h:19
RDKit::rdvalue_is
bool rdvalue_is(const RDValue_cast_t)
Definition
RDValue-doublemagic.h:372
GraphMol
MMPA
MMPA.h
Generated on Mon Sep 30 2024 05:19:34 for RDKit by
1.9.8