Skip to content

Instantly share code, notes, and snippets.

View nboyd's full-sized avatar

Nick Boyd nboyd

View GitHub Profile
#########
#
# Low-hanging fruit:
# 1. Epitope selection! E.g. using Pesto-style predictor or something simple (SASA + charge?)
# 2. Cropping! Could be sped up by a factor of 5-10 by cropping the target properly
# 3. Early stopping. Kill runs that are going poorly in early stages
# 4. Filtering + ranking with more models
# 5. Different design models, hyperparameter tuning etc. E.g. Boltz2 + templates
#
import modal
@nboyd
nboyd / hack.py
Last active December 7, 2024 01:34
t2j + randomness
class FunctionWrapperContextManager:
def __init__(self, module, function_names, callback):
"""
Create a context manager that wraps multiple functions in a module.
Calls to those functions are dispatched to a callback.
Args:
module (module): The module containing the functions to wrap
function_names (list): List of function names to wrap