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

Separate environment for T018 #416

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

AAriam
Copy link
Collaborator

@AAriam AAriam commented Feb 15, 2024

A separate environment is added to T018:

  • all dependencies are pinned exactly (i.e., major.minor.patch) to their latest working versions.
  • For all dependencies except pandas, this version is the latest version resolved by conda.
  • pandas is pinned to 2.1.4 (i.e., the latest 2.1.x version) instead of 2.2.0 (i.e., the latest resolvable version) because the latest RDKit version (i.e., 2023.09.5) does not work with pandas 2.2.0. I fixed the issue in RDKit and submitted a PR. Once a new RDKit release with this fix is released, we can update the pandas dependency to the latest version.

In addition, the following changes are applied to the utils subpackage in T018 (i.e., the backend of T018):

  • DeprecationWarning and FutureWarning notifications are suppressed to not show up in notebook outputs. These are all due to our dependencies not having updated their codes to adopt to newer versions of their own dependencies.
  • The opencadd dependency is removed, and replaced with MDAnalysis: The utility we used in OpenCADD (i.e. opencadd.structure.core.Structure) is just a wrapper around MDAnalysis.Universe with no added functionalities. Therefore, the opencadd dependency was removed and MDAnalysis was used directly instead, in order to avoid version pinning problems in opencadd.

Lastly the notebook is rerun:

  • This caused some slight (numerical) changes (e.g. calculated binding affinities by smina, calculated interactions by plip) in the outputs, which were mentioned in the text. Therefore, the text was also edited to reflect the new results.

The utility used in OpenCADD (i.e. `opencadd.structure.core.Structure`) is just a wrapper around `MDAnalysis.Universe` with no added functionalities. Therefore, the `opencadd` dependency was removed and `MDAnalysis` was used directly instead, in order to avoid version pinning problems in `opencadd`.
plip has not updated its code with regard to new numpy versions, and thus the explicit casting `np.uint32(i)` in line 361 of `plip.basic.supplemental` (function `int32_to_negative`) throws thousands of warnings. These are suppressed here, as the warning suppression in our `util.__init__` is not catching these, probably due to setting of the logging level at the top of this module.
The nootebook is re-run with the added environment. This caused some slight (numerical) changes (e.g. calculated binding affinities by `smina`, calculated interactions by `plip`) in the outputs, which were mentioned in the text. Therefore, the text was also edited to reflect the new results.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mbackenkoehler mbackenkoehler changed the base branch from dev to separate-environments February 28, 2024 08:58
@mbackenkoehler
Copy link
Collaborator

Thank you, great work!

@mbackenkoehler mbackenkoehler merged commit 092174c into volkamerlab:separate-environments Feb 28, 2024
1 of 7 checks passed
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