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
a22bf8e7
Commit
a22bf8e7
authored
Sep 13, 2013
by
Peter Eastman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor improvements to correctly handle more PDB files
parent
a078b0ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pdbfixer.py
+6
-3
No files found.
pdbfixer.py
View file @
a22bf8e7
...
...
@@ -46,13 +46,13 @@ import math
substitutions
=
{
'2AS'
:
'ASP'
,
'3AH'
:
'HIS'
,
'5HP'
:
'GLU'
,
'ACL'
:
'ARG'
,
'AGM'
:
'ARG'
,
'AIB'
:
'ALA'
,
'ALM'
:
'ALA'
,
'ALO'
:
'THR'
,
'ALY'
:
'LYS'
,
'ARM'
:
'ARG'
,
'ASA'
:
'ASP'
,
'ASB'
:
'ASP'
,
'ASK'
:
'ASP'
,
'ASL'
:
'ASP'
,
'ASQ'
:
'ASP'
,
'AYA'
:
'ALA'
,
'BCS'
:
'CYS'
,
'BHD'
:
'ASP'
,
'BMT'
:
'THR'
,
'BNN'
:
'ALA'
,
'BUC'
:
'CYS'
,
'BUG'
:
'LEU'
,
'C5C'
:
'CYS'
,
'C6C'
:
'CYS'
,
'CCS'
:
'CYS'
,
'CEA'
:
'CYS'
,
'CGU'
:
'GLU'
,
'CHG'
:
'ALA'
,
'CLE'
:
'LEU'
,
'CME'
:
'CYS'
,
'BUC'
:
'CYS'
,
'BUG'
:
'LEU'
,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'LTR'
:
'TRP'
,
'LYM'
:
'LYS'
,
'LYZ'
:
'LYS'
,
'MAA'
:
'ALA'
,
'MEN'
:
'ASN'
,
'I
AS'
:
'ASP'
,
'I
IL'
:
'ILE'
,
'IYR'
:
'TYR'
,
'KCX'
:
'LYS'
,
'LLP'
:
'LYS'
,
'LLY'
:
'LYS'
,
'LTR'
:
'TRP'
,
'LYM'
:
'LYS'
,
'LYZ'
:
'LYS'
,
'MAA'
:
'ALA'
,
'MEN'
:
'ASN'
,
'MHS'
:
'HIS'
,
'MIS'
:
'SER'
,
'MLE'
:
'LEU'
,
'MPQ'
:
'GLY'
,
'MSA'
:
'GLY'
,
'MSE'
:
'MET'
,
'MVA'
:
'VAL'
,
'NEM'
:
'HIS'
,
'NEP'
:
'HIS'
,
'NLE'
:
'LEU'
,
'NLN'
:
'LEU'
,
'NLP'
:
'LEU'
,
'NMC'
:
'GLY'
,
'OAS'
:
'SER'
,
'OCS'
:
'CYS'
,
'OMT'
:
'MET'
,
'PAQ'
:
'TYR'
,
'PCA'
:
'GLU'
,
'PEC'
:
'CYS'
,
'PHI'
:
'PHE'
,
'PHL'
:
'PHE'
,
'PR3'
:
'CYS'
,
'PRR'
:
'ALA'
,
'PTR'
:
'TYR'
,
'PYX'
:
'CYS'
,
'SAC'
:
'SER'
,
'SAR'
:
'GLY'
,
'SCH'
:
'CYS'
,
'SCS'
:
'CYS'
,
'SCY'
:
'CYS'
,
...
...
@@ -145,8 +145,11 @@ class PDBFixer(object):
# Create the new residue and add existing heavy atoms.
newResidue
=
newTopology
.
addResidue
(
residue
.
name
,
newChain
)
addResiduesAfter
=
(
residue
==
chainResidues
[
-
1
]
and
(
chain
.
index
,
indexInChain
+
1
)
in
self
.
missingResidues
)
for
atom
in
residue
.
atoms
():
if
not
heavyAtomsOnly
or
(
atom
.
element
is
not
None
and
atom
.
element
!=
hydrogen
):
if
atom
.
name
==
'OXT'
and
(
chain
.
index
,
indexInChain
+
1
)
in
self
.
missingResidues
:
continue
# Remove terminal oxygen, since we'll add more residues after this one
newAtom
=
newTopology
.
addAtom
(
atom
.
name
,
atom
.
element
,
newResidue
)
existingAtomMap
[
atom
]
=
newAtom
newPositions
.
append
(
self
.
positions
[
atom
.
index
])
...
...
@@ -417,7 +420,7 @@ class PDBFixer(object):
for
i
in
range
(
10
):
context
.
setParameter
(
'C'
,
0.15
*
(
i
+
1
))
integrator
.
step
(
10
00
)
integrator
.
step
(
2
00
)
d
=
self
.
_findNearestDistance
(
context
,
newTopology
,
newAtoms
)
if
d
>
nearest
:
nearest
=
d
...
...
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