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
4a66504c
"...src/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "73c10ae90aa51b85eaba35cdcf60e58b272bec46"
Commit
4a66504c
authored
Jun 22, 2023
by
Geoffrey Yu
Browse files
fixed downstream greedy align
parent
a0f8a057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
tests/unifold_permutation.py
tests/unifold_permutation.py
+3
-7
No files found.
tests/unifold_permutation.py
View file @
4a66504c
...
@@ -120,13 +120,9 @@ def multi_chain_perm_align(out, batch, labels, shuffle_times=2):
...
@@ -120,13 +120,9 @@ def multi_chain_perm_align(out, batch, labels, shuffle_times=2):
for
cur_asym_id
in
unique_asym_ids
:
for
cur_asym_id
in
unique_asym_ids
:
asym_mask
=
(
batch
[
"asym_id"
]
==
cur_asym_id
).
bool
()
asym_mask
=
(
batch
[
"asym_id"
]
==
cur_asym_id
).
bool
()
per_asym_residue_index
[
int
(
cur_asym_id
)]
=
batch
[
"residue_index"
][
asym_mask
]
per_asym_residue_index
[
int
(
cur_asym_id
)]
=
batch
[
"residue_index"
][
asym_mask
]
# anchor_gt_asym, anchor_pred_asym = get_anchor_candidates(
# batch, per_asym_residue_index, true_ca_masks
# )
anchor_gt_asym
,
anchor_pred_asym
=
get_least_asym_entity_or_longest_length
(
batch
)
anchor_gt_asym
,
anchor_pred_asym
=
get_least_asym_entity_or_longest_length
(
batch
)
print
(
f
"anchor_gt_asym is
{
anchor_gt_asym
}
"
)
print
(
f
"anchor_gt_asym is
{
anchor_gt_asym
}
"
)
import
sys
sys
.
exit
()
anchor_gt_idx
=
int
(
anchor_gt_asym
)
-
1
anchor_gt_idx
=
int
(
anchor_gt_asym
)
-
1
best_rmsd
=
1e9
best_rmsd
=
1e9
...
@@ -244,9 +240,9 @@ def greedy_align(
...
@@ -244,9 +240,9 @@ def greedy_align(
continue
continue
i
=
int
(
cur_asym_id
-
1
)
i
=
int
(
cur_asym_id
-
1
)
asym_mask
=
batch
[
"asym_id"
]
==
cur_asym_id
asym_mask
=
batch
[
"asym_id"
]
==
cur_asym_id
num_sym
=
batch
[
"
num_sym
"
][
asym_mask
][
0
]
entity_id
=
batch
[
"
entity_id
"
][
asym_mask
][
0
]
# don't need to align
# don't need to align
if
(
num_sym
)
==
1
:
if
(
entity_id
)
==
1
:
align
.
append
((
i
,
i
))
align
.
append
((
i
,
i
))
assert
used
[
i
]
==
False
assert
used
[
i
]
==
False
used
[
i
]
=
True
used
[
i
]
=
True
...
...
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