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
170d9c55
"vscode:/vscode.git/clone" did not exist on "bd9f2c46e7105de6ac7a4e6dd9247ea0f204cd42"
Commit
170d9c55
authored
Feb 20, 2024
by
Geoffrey Yu
Browse files
make sure no padded features are going to be selected as anchors
parent
7df201e5
Changes
1
Hide 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 @
170d9c55
...
...
@@ -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
"""
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_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