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
ab8f4a5b
Commit
ab8f4a5b
authored
Jul 11, 2023
by
Geoffrey Yu
Browse files
add ground truth feature processing
parent
ca340ce8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
openfold/data/data_modules.py
openfold/data/data_modules.py
+6
-3
No files found.
openfold/data/data_modules.py
View file @
ab8f4a5b
...
...
@@ -504,12 +504,14 @@ class OpenFoldSingleMultimerDataset(torch.utils.data.Dataset):
data
=
self
.
_parse_mmcif
(
path
,
mmcif_id
,
chain
,
alignment_dir
,
alignment_index
,
)
ground_truth
.
append
(
data
)
ground_truth_feats
=
self
.
feature_pipeline
.
process_features
(
data
,
self
.
mode
)
ground_truth
.
append
(
ground_truth_feats
)
elif
(
ext
==
".core"
):
data
=
self
.
data_pipeline
.
process_core
(
path
,
alignment_dir
,
alignment_index
,
)
ground_truth
.
append
(
data
)
ground_truth_feats
=
self
.
feature_pipeline
.
process_features
(
data
,
self
.
mode
)
ground_truth
.
append
(
ground_truth_feats
)
elif
(
ext
==
".pdb"
):
structure_index
=
None
data
=
self
.
data_pipeline
.
process_pdb
(
...
...
@@ -520,7 +522,8 @@ class OpenFoldSingleMultimerDataset(torch.utils.data.Dataset):
alignment_index
=
alignment_index
,
_structure_index
=
structure_index
,
)
ground_truth
.
append
(
data
)
ground_truth_feats
=
self
.
feature_pipeline
.
process_features
(
data
,
self
.
mode
)
ground_truth
.
append
(
ground_truth_feats
)
else
:
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