-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Neutralise systems with formal charges from the PDB (#301)
* Add API to download formal charges for missing templates * Use formal charges in _createForceField * Add tests for formal charges * Download charges from CCD when attempting to solvate * Fix charges for default ion atom names * Simplify formal charges logic * Expose downloadFormalCharges and remove getAllFormalCharges * Unify and cache CCD lookups * Fix bugs * Cache a failed CCD download * Remove old formalCharges argument from registerTemplate * Only attempt to download formal charges if they will be used * Add SMILES to CCD cache * Clean up new code and add docstrings * Only apply formal charges when all and only atom names match between the CCD and PDB * Allow formal charges to be set with or without leaving atoms * Address concerns from code review * Remove leftover reference to checkCache * Do not cap chains in test_charge_and_solvate * Add forceField optional argument to addSolvent * Cap with glycine in tests * Add another test with a charged ligand * Cosmetic commit to re-trigger tests * Update pdbfixer/pdbfixer.py
- Loading branch information
1 parent
f9aae0b
commit 2744212
Showing
2 changed files
with
259 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.