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
26b4bf9a
Commit
26b4bf9a
authored
Aug 09, 2014
by
John Chodera (MSKCC)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfixes.
parent
06cca8af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pdbfixer/pdbfixer.py
+3
-2
tests/test_removechains.py
+1
-1
No files found.
pdbfixer/pdbfixer.py
View file @
26b4bf9a
...
...
@@ -413,10 +413,11 @@ class PDBFixer(object):
chainIndices
=
list
()
if
chainIds
!=
None
:
# Convert chain ids to chain indices
which_model
=
0
chain_id_to_chain_number
=
dict
((
c
.
chain_id
,
k
)
for
k
,
c
in
enumerate
(
self
.
structure
.
models
[
which_model
]
.
chains
))
for
chainId
in
chainIds
:
chainNumber
=
chain_id_to_chain_number
[
chainId
]
chainIndices
.
append
(
chainNumber
)
chainNumber
=
chain_id_to_chain_number
[
chainId
]
chainIndices
.
append
(
chainNumber
)
# Ensure only unique entries remain.
chainIndices
=
list
(
set
(
chainIndices
))
...
...
tests/test_removechains.py
View file @
26b4bf9a
...
...
@@ -5,7 +5,7 @@ import tempfile
def
remove_chainids_and_verify
(
pdbid
,
chain_ids_to_remove
,
expected_chain_ids_remaining
):
# Create a PDBFixer instance for the given pdbid
fixer
=
PDBFixer
(
pdbid
=
pdbid
)
fixer
=
pdbfixer
.
PDBFixer
(
pdbid
=
pdbid
)
# Remove specified chains.
fixer
.
removeChains
(
chainIds
=
chain_ids_to_remove
)
# Check to make sure asserted chains remain.
...
...
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