Files
rdkit/Code/JavaWrappers
Brian Kelley 48e1fc2b8d Add extract mol fragment api (#8811)
* Create a function to extract some specified atoms from a ROMol as a new ROMol by creating new graph (#8742)

This adds a new api, `RDKit::MolOps::ExtractMolFragment`, to allow efficient
extractions of mol fragments from large mols. Compared to the approach where
we delete "unwanted" atoms/bonds from the input mol, this api is faster for
small mols (about 2x faster) and at least 3x faster for big mols
(was 10x faster for "CCC"*1000).

* clang-format

* review comments

* cleanup

* Consolidate copying subsets of molecules

* Readd missing tests

* Update comment to restart build

* Remove missing test

* Remove debugging comment, fix warnings

* Fix warnings on gcc11

* Add docs

* Make vector<bool> dynamic_bitset<>

* Update copyright

* Add swig wrappers

* Use new designated constructor API

* Fix windows builds

* Change enum values from unsigned int to integer

* Fix unsigned int variable

* Update Code/GraphMol/Wrap/test_subset.py

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

* Update Code/GraphMol/Subset.cpp

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

* Update Code/JavaWrappers/gmwrapper/src-test/org/RDKit/ChemTransformsTests.java

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

* Reponse to review

* Fix documentation

* Remove comments

* Remove unnecessary comments

* Fix one liners

* Change assertion to be clearer (and not one-liners)

* Run clang-format

---------

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Hussein Faara <hussein.faara@schrodinger.com>
Co-authored-by: Brian Kelley <bkelley@glysade.com>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2025-12-30 07:07:50 +01:00
..
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-10-10 20:18:43 +09:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
add
2011-04-08 02:48:25 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2022-09-28 05:49:27 +02:00
2011-07-01 04:43:39 +00:00
2019-04-16 12:05:47 -04:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-12-31 06:43:27 +01:00
2019-12-31 06:43:27 +01:00
2015-09-10 11:34:41 -04:00
2024-11-20 09:09:56 +01:00
2011-07-01 04:43:39 +00:00
2019-10-03 18:07:26 -04:00
2023-09-15 08:59:56 +02:00
2025-02-25 16:58:19 +01:00
2011-07-01 04:43:39 +00:00
2013-10-11 18:06:09 +02:00
2019-05-27 14:29:09 +02:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-12-31 06:43:27 +01:00
2018-03-20 10:10:40 -04:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-10-17 17:45:50 +09:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-12-31 06:43:27 +01:00
2025-07-30 05:56:52 +02:00
2011-07-01 04:43:39 +00:00
2025-12-30 07:07:50 +01:00
2020-06-24 17:27:40 +02:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00
2019-12-31 06:43:27 +01:00
2011-07-01 04:43:39 +00:00
2011-07-01 04:43:39 +00:00