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
a4c5dacb
Commit
a4c5dacb
authored
Nov 13, 2021
by
Gustaf Ahdritz
Browse files
Merge branch 'main' of
ssh://github.com/aqlaboratory/openfold
into main
parents
3260242f
84ac2ec9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
openfold/data/templates.py
openfold/data/templates.py
+8
-0
No files found.
openfold/data/templates.py
View file @
a4c5dacb
...
...
@@ -798,6 +798,8 @@ def _process_single_hit(
hit
:
parsers
.
TemplateHit
,
mmcif_dir
:
str
,
max_template_date
:
datetime
.
datetime
,
release_dates
:
Mapping
[
str
,
datetime
.
datetime
],
obsolete_pdbs
:
Mapping
[
str
,
str
],
kalign_binary_path
:
str
,
strict_error_check
:
bool
=
False
,
)
->
SingleHitResult
:
...
...
@@ -805,6 +807,10 @@ def _process_single_hit(
# Fail hard if we can't get the PDB ID and chain name from the hit.
hit_pdb_code
,
hit_chain_id
=
_get_pdb_id_and_chain
(
hit
)
if
hit_pdb_code
not
in
release_dates
:
if
hit_pdb_code
in
obsolete_pdbs
:
hit_pdb_code
=
obsolete_pdbs
[
hit_pdb_code
]
mapping
=
_build_query_to_hit_index_mapping
(
hit
.
query
,
hit
.
hit_sequence
,
...
...
@@ -1054,6 +1060,8 @@ class TemplateHitFeaturizer:
hit
=
hit
,
mmcif_dir
=
self
.
_mmcif_dir
,
max_template_date
=
template_cutoff_date
,
release_dates
=
self
.
_release_dates
,
obsolete_pdbs
=
self
.
_obsolete_pdbs
,
strict_error_check
=
self
.
_strict_error_check
,
kalign_binary_path
=
self
.
_kalign_binary_path
,
)
...
...
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