mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
* preliminary first pass at SRU enumeration * handle HH * working plus add a missing file... <doh!> * passes basic tests for enumeration of multiple non-overlapping SRUs * more SRU testing * explore combining the SRU enumeration with enumerate() * first step towards RepeatUnit in the python interface * first pass at directly connected SRUs * Fixes #4561 * make sure we don't try to enumeration SRU + LINKNODE update python docs * exception for ladders * get a bit smarter about rejecting linknode enumerations * turns out we actually *can* do ladders pretty easily * update java wrappers * make sure we can input from CXSMILES too * some cleanup/documentation * some refactoring * response to review
46 lines
1.4 KiB
OpenEdge ABL
46 lines
1.4 KiB
OpenEdge ABL
/*
|
|
*
|
|
* Copyright (c) 2020-2021, Greg Landrum and T5 Informatics GmbH
|
|
* All rights reserved.
|
|
*
|
|
* This file is part of the RDKit.
|
|
* The contents are covered by the terms of the BSD license
|
|
* which is included in the file license.txt, found at the root
|
|
* of the RDKit source tree.
|
|
*
|
|
*/
|
|
%{
|
|
#include <GraphMol/MolEnumerator/MolEnumerator.h>
|
|
%}
|
|
|
|
|
|
%ignore RDKit::MolEnumerator::detail::idxPropName;
|
|
%ignore RDKit::MolEnumerator::detail::preserveOrigIndices;
|
|
%ignore RDKit::MolEnumerator::detail::removeOrigIndices;
|
|
|
|
%ignore RDKit::MolEnumerator::MolEnumeratorOp;
|
|
%ignore RDKit::MolEnumerator::PositionVariationOp;
|
|
%ignore RDKit::MolEnumerator::LinkNodeOp;
|
|
%ignore RDKit::MolEnumerator::RepeatUnitOp;
|
|
|
|
%inline %{
|
|
|
|
RDKit::MolEnumerator::MolEnumeratorParams getLinkNodeParams(){
|
|
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
res.dp_operation.reset(new RDKit::MolEnumerator::LinkNodeOp());
|
|
return res;
|
|
}
|
|
RDKit::MolEnumerator::MolEnumeratorParams getPositionVariationParams(){
|
|
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
res.dp_operation.reset(new RDKit::MolEnumerator::PositionVariationOp());
|
|
return res;
|
|
}
|
|
RDKit::MolEnumerator::MolEnumeratorParams getRepeatUnitParams(){
|
|
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
res.dp_operation.reset(new RDKit::MolEnumerator::RepeatUnitOp());
|
|
return res;
|
|
}
|
|
|
|
%}
|
|
%include<GraphMol/MolEnumerator/MolEnumerator.h>
|