-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow chain id to be assigned with chainid!() (#35)
* Allow chain id to be assigned with chainid!() Adds two function for assigning the chainid, chainid!(chain, new_id) and chainid!(residue, new_id). For GitHub issue #22. * Create a PDBConsistencyException - Throw PDBConsistencyException when trying to change a chain's ID to an ID that already exists. - Throw PDBConsistencyException when moving a residue to a chain that already has a residue with that number. - Update the model's chain dictionary when changing a chain ID. * Rename PDBConsistencyException to PDBConsistencyError - Added a test for ensuring KeyError thrown when ChainID changed to something else.
- Loading branch information
Showing
2 changed files
with
106 additions
and
4 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
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