Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusting to rdkit fp generator changes #54

Merged
merged 26 commits into from
Nov 24, 2024

Conversation

EBjerrum
Copy link
Owner

Maintenance update, with a transition from soon deprecated RDKit fingerprint calls to the newer generator based calls for Morgan, AtomPair, TopologicalTorsion and RDKitFP.

Deprecation warnings and transparent handling of deprecated keywords has been put in place, and will easen the transition for users. Most notably is the change of the nBits to fpSize keyword throughout the library. e.g. MorganFingerprintTransformer(nBits=256) will work for now but give a warning, and should be changed to MorganFingerprintTransformer(fpSize=256)

The abstract class FpsTransformer is now sharing a base class BaseFpsTransformer with the new abstract class FpsGeneratorTransformer that supports creation, pickling and automatic update of an internal generator object.

fingerprints.py has for better overview been changed to a module with single files for related fingerprints. All fingerprints can still be imported from scikit_mol,fingerprints.

RiesBen and others added 26 commits September 13, 2024 17:12
- nBits->fpSize
- remove properties / overwrite setattr
- adapt tests.
- moving code around for easier oversight
- adding nicer dpecrecation warnings.
- add new generator functions to transformer test
- add DeprecationWarnings to not harmonized fpSize bits.
…r_changes

adapting to new rdkit fingerprint generators.
…roper deprecation warnings. Only implemented in the MorganFP so far
@EBjerrum EBjerrum merged commit 43ce292 into main Nov 24, 2024
16 checks passed
@EBjerrum EBjerrum deleted the 41_adjusting_to_rdkit_fp_generator_changes branch November 24, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants