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
749d736f
Commit
749d736f
authored
Jul 08, 2022
by
Gustaf Ahdritz
Browse files
Fix structure index bug
parent
a35a41ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
openfold/data/data_modules.py
openfold/data/data_modules.py
+4
-1
No files found.
openfold/data/data_modules.py
View file @
749d736f
...
@@ -203,13 +203,16 @@ class OpenFoldSingleDataset(torch.utils.data.Dataset):
...
@@ -203,13 +203,16 @@ class OpenFoldSingleDataset(torch.utils.data.Dataset):
path
,
alignment_dir
,
alignment_index
,
path
,
alignment_dir
,
alignment_index
,
)
)
elif
(
ext
==
".pdb"
):
elif
(
ext
==
".pdb"
):
structure_index
=
None
if
(
self
.
_structure_index
is
not
None
):
structure_index
=
self
.
_structure_index
[
name
]
data
=
self
.
data_pipeline
.
process_pdb
(
data
=
self
.
data_pipeline
.
process_pdb
(
pdb_path
=
path
,
pdb_path
=
path
,
alignment_dir
=
alignment_dir
,
alignment_dir
=
alignment_dir
,
is_distillation
=
self
.
treat_pdb_as_distillation
,
is_distillation
=
self
.
treat_pdb_as_distillation
,
chain_id
=
chain_id
,
chain_id
=
chain_id
,
alignment_index
=
alignment_index
,
alignment_index
=
alignment_index
,
_structure_index
=
self
.
_
structure_index
[
name
]
,
_structure_index
=
structure_index
,
)
)
else
:
else
:
raise
ValueError
(
"Extension branch missing"
)
raise
ValueError
(
"Extension branch missing"
)
...
...
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