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
6da2cdaf
Commit
6da2cdaf
authored
Jun 22, 2022
by
Gustaf Ahdritz
Browse files
Fix another PDB parsing bug
parent
0f54f679
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openfold/np/protein.py
openfold/np/protein.py
+2
-2
No files found.
openfold/np/protein.py
View file @
6da2cdaf
...
@@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
...
@@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
out_pdb_lines
.
append
(
f
"REMARK
{
remark
}
"
)
out_pdb_lines
.
append
(
f
"REMARK
{
remark
}
"
)
parents_per_chain
=
None
parents_per_chain
=
None
if
(
prot
.
parents
is
not
None
):
if
(
prot
.
parents
is
not
None
and
len
(
prot
.
parents
)
>
0
):
parents_per_chain
=
[]
parents_per_chain
=
[]
if
(
prot
.
parents_chain_index
is
not
None
and
len
(
prot
.
parents_chain_index
)
>
0
):
if
(
prot
.
parents_chain_index
is
not
None
):
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