Commit Graph

6 Commits

Author SHA1 Message Date
David Cosgrove
21b3c4e6f1 Shape overlay initial start aligned to principal axes (#8999)
* Add MolTransforms library.

* Transform to inertial frame of reference before overlay.

* Vital fix of typo in comment.

* Tidy up debugging cruft.

* Comment in CMakeLists.txt.

* Fix python wrappers.

* Extra tidy.

* Response to review.

* Tidy includes.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-12-20 08:35:28 +01:00
David Cosgrove
2c3010d5ce Add function to compute shape scores without overlay. (#8950)
* Add function to compute shape scores without overlay.

* Update docstrings.

* Rename function to ScoreMolecule/ScoreMol.
Add extra functions analogous to the overlay ones.

* Windows export crap.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-11-19 17:02:38 +01:00
Greg Landrum
a5bcf726e1 allow custom shape points (#8799)
* support providing custom features

* expose that to python

* switch to tuples (on get) and objects (on set) for attributes

* allow aligning mols directly with ShapeInputOptions

* changes for review

* add warning
2025-09-23 18:56:03 +02:00
David Cosgrove
2de1dabdc1 ShapeInput from subset of atoms in molecule (#8449)
* Make shape on subset of atoms in molecule.
Optional radius for dummy atoms.

* Re-factor.
Add ShapeInputOptions.

* Python wrapper for options.

* Add non-standard radii option.
Add function to align a shape on a shape.
Add function to align conformer based on shape-shape transformation.

* Python wrappers for AlignShapes and TransformConformer.

* Add the new thing for Python options.

* Add option for excluding atoms from color features.
No partial color features if using atomSubset.

* In AlignShapes, don't change the fit shape (apart from transforming it) in case it will be used again.

* Rename it AlignShape to be consistent with AlignMolecule.

* Response to review.

* Undo clang-format

* Fix botched merge.

* Typo.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-04-27 06:51:53 +02:00
Greg Landrum
112fc3e453 improve defaults for the shape-based alignment (#8029) 2024-11-23 03:58:04 +01:00
Greg Landrum
da2a9242bf Provide an RDKit wrapper around pubchem-align3d (#7798)
* initial support for pubchem-align3d

* works, passes the tests

* bump commit we are using

* update readme

* disable pubchem shape for limited depedencies build

* comment from review

* get windows dll builds working

* stupid oversight

* changes in response to review
get rid of the "using namespace std"
test that the alignment is re-entrant
2024-09-14 06:08:24 +02:00