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

protein_mpnn_utils.py cleanup #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Seanny123
Copy link

Cleanup a few issues detected by pylint and refactored parse_PDB to be more succinct. This MR does increase the requirements to Python 3.10, but I can remove the type annotations if you want more version flexibility.

I can also provide further refactorings, if desired, such as:

  • Making this a Python package using Poetry, allowing for protein_mpnn_utils.py to be imported in the helper scripts
  • Splitting up protein_mpnn_utils.py into utils.py and models.py
  • Auto-formatting the code with Black
  • Resolving all other pylint warnings, such as unused variables and imports

Sean Aubin added 4 commits September 14, 2022 14:17
atoms shouldn't have a list as a default arg, since it's mutable
and could cause problems. also added type annotations
- use string instead of manually defining alphabet
- remove unused loop
- use isinstance instead of type()
- rename my_dict -> pdb_dict
- remove unused variables
- use f-string instead of str concat
- use join instead of iterative string concat
- add type annotation
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.

1 participant