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
54164fe8
Commit
54164fe8
authored
Mar 14, 2022
by
Gustaf Ahdritz
Browse files
Multimer WIP
parent
0434866f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
33 deletions
+3
-33
openfold/model/structure_module.py
openfold/model/structure_module.py
+2
-2
openfold/utils/argparse.py
openfold/utils/argparse.py
+0
-30
train_openfold.py
train_openfold.py
+1
-1
No files found.
openfold/model/structure_module.py
View file @
54164fe8
...
...
@@ -184,7 +184,7 @@ class PointProjection(nn.Module):
return
points_global
# WEIGHTS CHANGED
class
InvariantPointAttention
(
nn
.
Module
):
"""
Implements Algorithm 22.
...
...
@@ -578,7 +578,7 @@ class StructureModule(nn.Module):
self
.
dropout_rate
,
)
self
.
bb_update
=
BackboneUpdate
(
self
.
c_s
)
self
.
bb_update
=
QuatRigid
(
self
.
c_s
,
full_quat
=
False
)
self
.
angle_resnet
=
AngleResnet
(
self
.
c_s
,
...
...
openfold/utils/argparse.py
deleted
100644 → 0
View file @
0434866f
from
argparse
import
HelpFormatter
from
operator
import
attrgetter
class
ArgparseAlphabetizer
(
HelpFormatter
):
"""
Sorts the optional arguments of an argparse parser alphabetically
"""
@
staticmethod
def
sort_actions
(
actions
):
return
sorted
(
actions
,
key
=
attrgetter
(
"option_strings"
))
# Formats the help message
def
add_arguments
(
self
,
actions
):
actions
=
ArgparseAlphabetizer
.
sort_actions
(
actions
)
super
(
ArgparseAlphabetizer
,
self
).
add_arguments
(
actions
)
# Formats the usage message
def
add_usage
(
self
,
usage
,
actions
,
groups
,
prefix
=
None
):
actions
=
ArgparseAlphabetizer
.
sort_actions
(
actions
)
args
=
usage
,
actions
,
groups
,
prefix
super
(
ArgparseAlphabetizer
,
self
).
add_usage
(
*
args
)
def
remove_arguments
(
parser
,
args
):
for
arg
in
args
:
for
action
in
parser
.
_actions
:
opts
=
vars
(
action
)[
"option_strings"
]
if
(
arg
in
opts
):
parser
.
_handle_conflict_resolve
(
None
,
[(
arg
,
action
)])
train_openfold.py
View file @
54164fe8
...
...
@@ -31,7 +31,7 @@ from openfold.utils.callbacks import (
EarlyStoppingVerbose
,
)
from
openfold.utils.exponential_moving_average
import
ExponentialMovingAverage
from
openfold.utils.argparse
import
remove_arguments
from
openfold.utils.argparse
_utils
import
remove_arguments
from
openfold.utils.loss
import
AlphaFoldLoss
,
lddt_ca
,
compute_drmsd
from
openfold.utils.seed
import
seed_everything
from
openfold.utils.superimposition
import
superimpose
...
...
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