|
|
|
|
|
from modules.extract_signature import extract_signature |
|
|
from modules.fuse_perspectives import fuse_perspectives |
|
|
from modules.generate_binders import generate_binders |
|
|
from modules.run_simulations import run_simulations |
|
|
from modules.validate_ethics import validate_ethics |
|
|
from modules.personalize_binders import personalize_binders |
|
|
from modules.exporter import export_designs |
|
|
|
|
|
def codette_pipeline(target_input): |
|
|
|
|
|
sig = extract_signature(target_input) |
|
|
|
|
|
|
|
|
context = fuse_perspectives(sig) |
|
|
|
|
|
|
|
|
candidates = generate_binders(context) |
|
|
|
|
|
|
|
|
scored = run_simulations(candidates) |
|
|
|
|
|
|
|
|
ethics_checked = validate_ethics(scored) |
|
|
|
|
|
|
|
|
personalized = personalize_binders(ethics_checked, patient_data={ |
|
|
"immune_profile": ["A*24:02", "B*27:05"], |
|
|
"metabolic_rate": 1.2, |
|
|
"prior_exposure": ["SARS-CoV-2", "Influenza-B"], |
|
|
"ancestry_profile": ["Native", "Irish"] |
|
|
}) |
|
|
|
|
|
|
|
|
result = export_designs(personalized) |
|
|
return result |
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
|
test_seq = "MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHFD" |
|
|
output = codette_pipeline(test_seq) |
|
|
print(output) |
|
|
|