Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
2842dd7c
Commit
2842dd7c
authored
Sep 23, 2017
by
João Rodrigues
Browse files
Fixed chain labeling in mmCIF files IO.
parent
74ad9a16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/pdbxfile.py
wrappers/python/simtk/openmm/app/pdbxfile.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/pdbxfile.py
View file @
2842dd7c
...
...
@@ -86,7 +86,7 @@ class PDBxFile(object):
resIdCol
=
atomData
.
getAttributeIndex
(
'label_seq_id'
)
resNumCol
=
atomData
.
getAttributeIndex
(
'auth_seq_id'
)
asymIdCol
=
atomData
.
getAttributeIndex
(
'label_asym_id'
)
chainIdCol
=
atomData
.
getAttributeIndex
(
'
label_entity
_id'
)
chainIdCol
=
atomData
.
getAttributeIndex
(
'
auth_asym
_id'
)
elementCol
=
atomData
.
getAttributeIndex
(
'type_symbol'
)
altIdCol
=
atomData
.
getAttributeIndex
(
'label_alt_id'
)
modelCol
=
atomData
.
getAttributeIndex
(
'pdbx_PDB_model_num'
)
...
...
@@ -115,7 +115,7 @@ class PDBxFile(object):
if
lastChainId
!=
row
[
chainIdCol
]:
# The start of a new chain.
chain
=
top
.
addChain
(
row
[
asym
IdCol
])
chain
=
top
.
addChain
(
row
[
chain
IdCol
])
lastChainId
=
row
[
chainIdCol
]
lastResId
=
None
lastAsymId
=
None
...
...
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