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
1c3d31bb
Commit
1c3d31bb
authored
Jan 03, 2022
by
Gustaf Ahdritz
Browse files
Add else branch to data module
parent
14cce39a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
openfold/data/data_modules.py
openfold/data/data_modules.py
+3
-1
No files found.
openfold/data/data_modules.py
View file @
1c3d31bb
...
...
@@ -170,13 +170,15 @@ class OpenFoldSingleDataset(torch.utils.data.Dataset):
data
=
self
.
data_pipeline
.
process_core
(
path
+
".core"
,
alignment_dir
)
el
se
:
el
if
(
os
.
path
.
exists
(
path
+
".pdb"
))
:
data
=
self
.
data_pipeline
.
process_pdb
(
pdb_path
=
path
+
".pdb"
,
alignment_dir
=
alignment_dir
,
is_distillation
=
self
.
treat_pdb_as_distillation
,
chain_id
=
chain_id
,
)
else
:
raise
ValueError
(
"Invalid file type"
)
else
:
path
=
os
.
path
.
join
(
name
,
name
+
".fasta"
)
data
=
self
.
data_pipeline
.
process_fasta
(
...
...
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