-
Notifications
You must be signed in to change notification settings - Fork 50
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
Easy creation of ResidueChemTemplates #223
Conversation
templates = ResidueChemTemplates.create_from_defaults() templates.add_json_file("NAKB_templates")
Additionally, this PR deletes old data files that are no longer in use. It also deletes a few methods in "PDBQTReceptor.py" that were used for receptor preparation before the chorizos (now polymers) were created. I tested adding interaction fingerprints to vina results with ringtail, and that worked. I tested ringtail because ringtail depends on PDBQTReceptor.py to add interactions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks!
Works for Python3.10. There's a small problem with
bfc2a2e uses the |
--write_pdb uses only first character of filename
|
It didn't work on Mac with Python 3.9.20. Maybe it's OS specific. Is the backport not a default library on Linux? importlib.resources is introduced in Py3.9. It also won't work with earlier python. |
importlib_resources is not standard on linux. At least not with python packaged by conda-forge, I don't know if that makes a difference. So on a Mac, Python3.9 comes with try:
from importlib.resources import files
except:
from importlib_resources import files |
The default dict from the meeko data folder ("residue_chem_templates.json") can be loaded with
Additional templates can be added with
it looks for files in the current working directory, and in the meeko data folder where "residue_chem_templates.json" and "NAKB_templates.json" are currently located. For files in the meeko data folder the ".json" suffix is optional, as per the example above.