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
830d6c7f
Commit
830d6c7f
authored
Sep 18, 2013
by
Peter Eastman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved handling of nonstandard nucleotides
parent
8d902d07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
pdbfixer.py
+6
-2
ui.py
+6
-1
No files found.
pdbfixer.py
View file @
830d6c7f
...
...
@@ -273,8 +273,12 @@ class PDBFixer(object):
for
structChain
,
topChain
in
zip
(
self
.
structureChains
,
self
.
topology
.
chains
()):
for
structResidue
,
topResidue
in
zip
(
structChain
.
iter_residues
(),
topChain
.
residues
()):
key
=
(
structChain
.
chain_id
,
structResidue
.
number
,
structResidue
.
name
)
if
key
in
modres
and
modres
[
key
]
in
self
.
templates
:
nonstandard
[
topResidue
]
=
modres
[
key
]
if
key
in
modres
:
replacement
=
modres
[
key
]
if
replacement
==
'DU'
:
replacement
=
'DT'
if
replacement
in
self
.
templates
:
nonstandard
[
topResidue
]
=
replacement
self
.
nonstandardResidues
=
[(
r
,
nonstandard
[
r
])
for
r
in
sorted
(
nonstandard
,
key
=
lambda
r
:
r
.
index
)]
def
replaceNonstandardResidues
(
self
):
...
...
ui.py
View file @
830d6c7f
...
...
@@ -134,10 +134,15 @@ def displayConvertResiduesPage():
for
structResidue
,
topResidue
in
zip
(
structChain
.
iter_residues
(),
topChain
.
residues
()):
indexInChain
[
topResidue
]
=
structResidue
.
number
table
=
''
nucleotides
=
[
'DA'
,
'DC'
,
'DG'
,
'DT'
,
'A'
,
'C'
,
'G'
,
'T'
]
for
i
in
range
(
len
(
fixer
.
nonstandardResidues
)):
residue
,
replaceWith
=
fixer
.
nonstandardResidues
[
i
]
if
replaceWith
in
proteinResidues
:
replacements
=
proteinResidues
else
:
replacements
=
nucleotides
options
=
''
for
res
in
proteinResidue
s
:
for
res
in
replacement
s
:
selected
=
''
if
res
==
replaceWith
:
selected
=
' selected'
...
...
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