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
b76228cb
Commit
b76228cb
authored
Sep 01, 2015
by
Chodera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaner building of mutation list.
parent
eed66441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pdbfixer/pdbfixer.py
+4
-2
No files found.
pdbfixer/pdbfixer.py
View file @
b76228cb
...
@@ -742,13 +742,15 @@ class PDBFixer(object):
...
@@ -742,13 +742,15 @@ class PDBFixer(object):
index_to_old_name
=
dict
((
r
.
index
,
r
.
name
)
for
r
in
self
.
topology
.
residues
())
index_to_old_name
=
dict
((
r
.
index
,
r
.
name
)
for
r
in
self
.
topology
.
residues
())
index_to_new_residues
=
{}
index_to_new_residues
=
{}
# Retrieve all residues that match the specified chain_id.
# NOTE: Multiple chains may have the same chainid, but must have unique resSeq entries.
# NOTE: Multiple chains may have the same chainid, but must have unique resSeq entries.
resSeq_to_residue
=
dict
()
# resSeq_to_residue[resid] is the residue in the requested chain corresponding to residue identifier 'resid'
resSeq_to_residue
=
dict
()
# resSeq_to_residue[resid] is the residue in the requested chain corresponding to residue identifier 'resid'
for
(
chain_number
,
chain
)
in
enumerate
(
self
.
topology
.
chains
()
):
for
chain
in
self
.
topology
.
chains
(
):
if
chain
.
id
==
chain_id
:
if
chain
.
id
==
chain_id
:
for
(
residue_number
,
residue
)
in
enumerate
(
chain
.
residues
()
):
for
residue
in
chain
.
residues
(
):
resSeq_to_residue
[
int
(
residue
.
id
)]
=
residue
resSeq_to_residue
[
int
(
residue
.
id
)]
=
residue
# Make a map of residues to mutate based on requested mutation list.
residue_map
=
dict
()
# residue_map[residue] is the name of the new residue to mutate to, if a mutation is desired
residue_map
=
dict
()
# residue_map[residue] is the name of the new residue to mutate to, if a mutation is desired
for
mut_str
in
mutations
:
for
mut_str
in
mutations
:
old_name
,
resSeq
,
new_name
=
mut_str
.
split
(
"-"
)
old_name
,
resSeq
,
new_name
=
mut_str
.
split
(
"-"
)
...
...
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