From 4386f37cd7bc60587b1d65ba03f1a9a1b07b1741 Mon Sep 17 00:00:00 2001 From: Shariq Mobin Date: Wed, 4 Dec 2024 14:01:09 -0800 Subject: [PATCH] refactor to put insulin first which works better --- 06_gpu_and_ml/protein_fold/protein_fold.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/06_gpu_and_ml/protein_fold/protein_fold.py b/06_gpu_and_ml/protein_fold/protein_fold.py index 02b4a366b..4eb95e46c 100644 --- a/06_gpu_and_ml/protein_fold/protein_fold.py +++ b/06_gpu_and_ml/protein_fold/protein_fold.py @@ -242,8 +242,8 @@ def run_esm(sequence, maybe_stale_pdb_id): ) maybe_stale_pdb_id = maybe_stale_pdb_id.strip() - pdb_sequence = get_sequence(maybe_stale_pdb_id) - if pdb_sequence == sequence: + maybe_stale_sequence = get_sequence(maybe_stale_pdb_id) + if maybe_stale_sequence == sequence: pdb_id = maybe_stale_pdb_id L.info(f"Constructing HTML for RCSB entry for {pdb_id}") pdb_string, residue_id_to_sse = extract_pdb_and_residues(pdb_id) @@ -280,8 +280,8 @@ async def background(): ) example_pdbs = [ - "Insulin [1ZNI]", "Myoglobin [1MBO]", + "Insulin [1ZNI]", "Hemoglobin [1GZX]", "GFP [1EMA]", "Collagen [1CGD]",