FragmentGenerator.
More...
◆ __init__()
Initializes a copy of the FragmentGenerator instance gen.
- Parameters
-
gen | The FragmentGenerator instance to copy. |
◆ getObjectID()
int CDPL.Chem.FragmentGenerator.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FragmentGenerator instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two FragmentGenerator instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ assign()
Replaces the current state of self with a copy of the state of the FragmentGenerator instance gen.
- Parameters
-
gen | The FragmentGenerator instance to copy. |
- Returns
- self
◆ addFragmentationRule() [1/2]
None CDPL.Chem.FragmentGenerator.addFragmentationRule |
( |
MolecularGraph |
match_ptn, |
|
|
int |
rule_id |
|
) |
| |
◆ addFragmentationRule() [2/2]
◆ removeFragmentationRule()
None CDPL.Chem.FragmentGenerator.removeFragmentationRule |
( |
int |
idx | ) |
|
◆ getFragmentationRule()
◆ getNumFragmentationRules()
int CDPL.Chem.FragmentGenerator.getNumFragmentationRules |
( |
| ) |
|
◆ addExcludePattern() [1/2]
None CDPL.Chem.FragmentGenerator.addExcludePattern |
( |
MolecularGraph |
match_ptn, |
|
|
int |
rule_id |
|
) |
| |
◆ addExcludePattern() [2/2]
None CDPL.Chem.FragmentGenerator.addExcludePattern |
( |
ExcludePattern |
excl_ptn | ) |
|
◆ removeExcludePattern()
None CDPL.Chem.FragmentGenerator.removeExcludePattern |
( |
int |
idx | ) |
|
◆ getExcludePattern()
ExcludePattern CDPL.Chem.FragmentGenerator.getExcludePattern |
( |
int |
idx | ) |
|
◆ getNumExcludePatterns()
int CDPL.Chem.FragmentGenerator.getNumExcludePatterns |
( |
| ) |
|
◆ setFragmentFilterFunction()
◆ getFragmentFilterFunction()
◆ generate()
- Parameters
-
molgraph | |
frag_list | |
append | |
◆ getFragmentLink()
FragmentLink CDPL.Chem.FragmentGenerator.getFragmentLink |
( |
int |
idx | ) |
|
◆ getNumFragmentLinks()
int CDPL.Chem.FragmentGenerator.getNumFragmentLinks |
( |
| ) |
|
◆ includeSplitBonds()
None CDPL.Chem.FragmentGenerator.includeSplitBonds |
( |
bool |
include | ) |
|