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
699f23fd
"tools/vscode:/vscode.git/clone" did not exist on "e1bfcecbf4966fe417bf56fa60d6e177a1909724"
Commit
699f23fd
authored
Nov 30, 2021
by
Gustaf Ahdritz
Browse files
Add option to select chains in PDB files
parent
5161c0f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openfold/data/data_pipeline.py
openfold/data/data_pipeline.py
+3
-2
No files found.
openfold/data/data_pipeline.py
View file @
699f23fd
...
...
@@ -472,7 +472,8 @@ class DataPipeline:
self
,
pdb_path
:
str
,
alignment_dir
:
str
,
is_distillation
:
bool
=
True
is_distillation
:
bool
=
True
,
chain_id
:
Optional
[
str
]
=
None
,
)
->
FeatureDict
:
"""
Assembles features for a protein in a PDB file.
...
...
@@ -480,7 +481,7 @@ class DataPipeline:
with
open
(
pdb_path
,
'r'
)
as
f
:
pdb_str
=
f
.
read
()
protein_object
=
protein
.
from_pdb_string
(
pdb_str
)
protein_object
=
protein
.
from_pdb_string
(
pdb_str
,
chain_id
)
input_sequence
=
_aatype_to_str_sequence
(
protein_object
.
aatype
)
description
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
pdb_path
))[
0
].
upper
()
pdb_feats
=
make_pdb_features
(
...
...
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