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
939fd0aa
Commit
939fd0aa
authored
Feb 20, 2024
by
Geoffrey Yu
Committed by
Jennifer Wei
May 13, 2024
Browse files
make sure no padded features are going to be selected as anchors
parent
9f964fe3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/utils/multi_chain_permutation.py
openfold/utils/multi_chain_permutation.py
+1
-1
No files found.
openfold/utils/multi_chain_permutation.py
View file @
939fd0aa
...
@@ -120,7 +120,7 @@ def get_least_asym_entity_or_longest_length(batch:dict, input_asym_id:list)->Tup
...
@@ -120,7 +120,7 @@ def get_least_asym_entity_or_longest_length(batch:dict, input_asym_id:list)->Tup
anchor_pred_asym_ids: list(Tensor(int)) a list of all possible pred anchor candidates
anchor_pred_asym_ids: list(Tensor(int)) a list of all possible pred anchor candidates
"""
"""
entity_2_asym_list
=
get_entity_2_asym_list
(
batch
)
entity_2_asym_list
=
get_entity_2_asym_list
(
batch
)
unique_entity_ids
=
torch
.
unique
(
batch
[
"entity_id"
])
unique_entity_ids
=
[
i
for
i
in
torch
.
unique
(
batch
[
"entity_id"
])
if
i
!=
0
]
# if entity_id is 0, that means this entity_id comes from padding
entity_asym_count
=
{}
entity_asym_count
=
{}
entity_length
=
{}
entity_length
=
{}
...
...
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