12 Commits

Author SHA1 Message Date
David Cosgrove
44fbe4a409 SA Score updates (#7928)
* Use new Morgan fingerprint generator.

* Add script to build fragments database and amend score script to use it.

* Remove redundant imports.

* Response to review.

---------

Co-authored-by: Dave Cosgrove <david@cozchemix.co.uk>
2024-10-29 06:51:22 +01:00
François Bérenger
75771be090 Update SA score to use FingerprintGenerators (#7795)
* modernize Contrib/SA_Score/sascorer.py

this is impacted by some new deprecation warning:
we need to use rdFingerprintGenerator

* we need to use the "legacy" Morgan fingerprint length
to keep the obtained scores invariant

* Update Contrib/SA_Score/sascorer.py

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

* Update Contrib/SA_Score/sascorer.py

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

---------

Co-authored-by: Francois Berenger <ligand@free.fr>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2024-09-17 12:19:23 +02:00
Ric
880a8e5725 Reformat Python code for 2023.03 release (#6294)
* run yapf

* run isort

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2023-04-28 06:53:56 +02:00
Steven Kearnes
263095950c Fix data race in sascorer.py (#2744) 2019-10-31 07:53:17 +01:00
Greg Landrum
24f1737839 Remove a bunch of Python2-related warts (#2315)
* remove all of the "from __future__" imports

* remove the first batch of rdkit.six imports/uses

* next step of rdkit.six removal

* removing xrange, range, and some maps

* next round of removals

* next round of cleanups

* fix inchi test

* last bits of "from rdkit.six" are gone

* and the last of the six stuff is gone

* strange importlib problem
2019-03-06 20:43:49 -05:00
gedeck
e9af48ffd7 Issue1071/yapf (#1078)
* Issue #1071: add yapf configuration file

* yapf formatting of Code directory

* yapf formatting of Contrib directory

* yapf formatting of Data directory

* yapf formatting of Docs directory

* yapf formatting of External directory

* yapf formatting of Projects directory

* yapf formatting of Regress directory

* yapf formatting of Scripts directory

* yapf formatting of Web directory

* yapf formatting of rdkit directory
2016-09-23 04:58:46 +02:00
Greg Landrum
26b3722e7b move SA_scorer over to using the C++ defns 2015-09-21 13:50:55 +02:00
Greg Landrum
e28ff48100 remove the outf parameter 2015-08-19 06:15:51 +02:00
Axel Pahl
c7778cb52c - changed sascorer.py to enable import from different location 2015-08-18 17:58:50 +02:00
Riccardo Vianello
95f60d21bc python3 portability fixes for pandas and the ipython notebook 2014-09-11 23:49:45 +02:00
Greg Landrum
4081cb51e5 efficiency patch for the sa score code from Nick Firth 2013-10-05 07:40:34 +02:00
Greg Landrum
740da0d0b9 add sa score 2013-10-02 04:55:34 +02:00