Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
0f54f679
Commit
0f54f679
authored
Jun 22, 2022
by
Gustaf Ahdritz
Browse files
Fix PDB parsing bug
parent
99cdb062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/np/protein.py
openfold/np/protein.py
+1
-1
No files found.
openfold/np/protein.py
View file @
0f54f679
...
@@ -254,7 +254,7 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
...
@@ -254,7 +254,7 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
parents_per_chain
=
None
parents_per_chain
=
None
if
(
prot
.
parents
is
not
None
):
if
(
prot
.
parents
is
not
None
):
parents_per_chain
=
[]
parents_per_chain
=
[]
if
(
prot
.
parents_chain_index
is
not
None
):
if
(
prot
.
parents_chain_index
is
not
None
and
len
(
prot
.
parents_chain_index
)
>
0
):
cur_chain
=
prot
.
parents_chain_index
[
0
]
cur_chain
=
prot
.
parents_chain_index
[
0
]
parent_dict
=
{}
parent_dict
=
{}
for
p
,
i
in
zip
(
prot
.
parents
,
prot
.
parents_chain_index
):
for
p
,
i
in
zip
(
prot
.
parents
,
prot
.
parents_chain_index
):
...
...
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