Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
b81a9e42
Commit
b81a9e42
authored
Aug 19, 2016
by
peastman
Committed by
GitHub
Aug 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #140 from peastman/bonds
Preserve bonds within heterogens
parents
1bec1b7c
580d08cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pdbfixer/pdbfixer.py
+6
-0
No files found.
pdbfixer/pdbfixer.py
View file @
b81a9e42
...
...
@@ -464,6 +464,12 @@ class PDBFixer(object):
newTopology
.
createStandardBonds
()
newTopology
.
createDisulfideBonds
(
newPositions
)
# Add the bonds between atoms in heterogens.
for
a1
,
a2
in
self
.
topology
.
bonds
():
if
a1
in
existingAtomMap
and
a2
in
existingAtomMap
and
(
a1
.
residue
.
name
not
in
app
.
Topology
.
_standardBonds
or
a2
.
residue
.
name
not
in
app
.
Topology
.
_standardBonds
):
newTopology
.
addBond
(
existingAtomMap
[
a1
],
existingAtomMap
[
a2
])
# Return the results.
return
(
newTopology
,
newPositions
,
newAtoms
,
existingAtomMap
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment