-
Notifications
You must be signed in to change notification settings - Fork 70
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
Saving the fp object #40
Comments
Hi @ale94mleon and thanks! I'll have a look into exporting the fingerprint object as a pickle in the future. In the meantime, you can convert the fingerprint to a dataframe, and then export the dataframe to a pickle object : df = fp.to_dataframe()
df.to_pickle("dataframe.pkl") Upon converting the fingerprint to a dataframe, you have several options available to include or exclude some info (namely So to be safe I would suggest saving both Hope that helps, Cédric |
Thanks for the advice! That is a good idea. |
## [1.0.0] - 2022-06-07 ### Added - Support for multiprocessing, enabled by default (Issue #46). The number of processes can be controlled through `n_jobs` in `fp.run` and `fp.run_from_iterable`. - New interaction: van der Waals contact, based on the sum of vdW radii of two atoms. - Saving/loading the fingerprint object as a pickle with `fp.to_pickle` and `Fingerprint.from_pickle` (Issue #40). ### Changed - Molecule suppliers can now be indexed, reused and can return their length, instead of being single-use generators. ### Fixed - ProLIF can now be installed through pip and conda (Issue #6). - If no interaction is detected in the first frame, `to_dataframe` will not complain about a `KeyError` anymore (Issue #44). - When creating a `plf.Fingerprint`, unknown interactions will no longer fail silently.
Hello, excelent work!
I am trying to save the fingerprint (becasue the calculation is expensive). I tried with:
However, I got the error:
Any idea why this? Or even better, how to save the fp for future works?
The text was updated successfully, but these errors were encountered: