"...llm/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "45b3505c8b6e0cd87bf2f7b6c9450e7c0516a97b"
Commit 54164fe8 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Multimer WIP

parent 0434866f
...@@ -184,7 +184,7 @@ class PointProjection(nn.Module): ...@@ -184,7 +184,7 @@ class PointProjection(nn.Module):
return points_global return points_global
# WEIGHTS CHANGED
class InvariantPointAttention(nn.Module): class InvariantPointAttention(nn.Module):
""" """
Implements Algorithm 22. Implements Algorithm 22.
...@@ -578,7 +578,7 @@ class StructureModule(nn.Module): ...@@ -578,7 +578,7 @@ class StructureModule(nn.Module):
self.dropout_rate, 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.angle_resnet = AngleResnet(
self.c_s, self.c_s,
......
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)])
...@@ -31,7 +31,7 @@ from openfold.utils.callbacks import ( ...@@ -31,7 +31,7 @@ from openfold.utils.callbacks import (
EarlyStoppingVerbose, EarlyStoppingVerbose,
) )
from openfold.utils.exponential_moving_average import ExponentialMovingAverage 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.loss import AlphaFoldLoss, lddt_ca, compute_drmsd
from openfold.utils.seed import seed_everything from openfold.utils.seed import seed_everything
from openfold.utils.superimposition import superimpose from openfold.utils.superimposition import superimpose
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment