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
70362e4b
"vscode:/vscode.git/clone" did not exist on "20fbe840d387ed06fc5e9db34498db59689ff62c"
Commit
70362e4b
authored
Feb 05, 2022
by
Gustaf Ahdritz
Browse files
Fix bugs in chain data cache script
parent
3b82ddb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/generate_chain_data_cache.py
scripts/generate_chain_data_cache.py
+2
-2
No files found.
scripts/generate_chain_data_cache.py
View file @
70362e4b
...
@@ -11,7 +11,7 @@ sys.path.append(".") # an innocent hack to get this to run from the top level
...
@@ -11,7 +11,7 @@ sys.path.append(".") # an innocent hack to get this to run from the top level
from
tqdm
import
tqdm
from
tqdm
import
tqdm
from
openfold.data.mmcif_parsing
import
parse
from
openfold.data.mmcif_parsing
import
parse
from
openfold.np
import
protein
from
openfold.np
import
protein
,
residue_constants
def
parse_file
(
def
parse_file
(
...
@@ -50,7 +50,7 @@ def parse_file(
...
@@ -50,7 +50,7 @@ def parse_file(
with
open
(
os
.
path
.
join
(
args
.
data_dir
,
f
),
"r"
)
as
fp
:
with
open
(
os
.
path
.
join
(
args
.
data_dir
,
f
),
"r"
)
as
fp
:
pdb_string
=
fp
.
read
()
pdb_string
=
fp
.
read
()
protein_object
=
protein
.
from_pdb_string
(
pdb_str
,
chain_id
)
protein_object
=
protein
.
from_pdb_string
(
pdb_str
ing
,
None
)
chain_dict
=
{}
chain_dict
=
{}
chain_dict
[
"seq"
]
=
residue_constants
.
aatype_to_str_sequence
(
chain_dict
[
"seq"
]
=
residue_constants
.
aatype_to_str_sequence
(
...
...
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