From 63771a22691149e46ed6836d052afecd8c113f4d Mon Sep 17 00:00:00 2001
From: Tim O'Donnell <timodonnell@gmail.com>
Date: Tue, 1 Oct 2019 17:32:07 -0400
Subject: [PATCH] fix

---
 .../data_mass_spec_benchmark/run_mhcflurry.py              | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py b/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
index 5f0235cb..ebc06df8 100644
--- a/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
+++ b/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
@@ -246,14 +246,15 @@ def do_predictions(chunk_index, peptides, alleles, constant_data=None):
     start = time.time()
     results = {}
     peptides = EncodableSequences.create(peptides)
-    for allele in alleles:
+    for (i, allele) in enumerate(alleles):
+        print("Processing allele %d / %d: %0.2f sec elapsed" % (
+            i + 1, len(alleles), time.time() - start))
         results[allele] = predictor.predict(
             peptides=peptides,
             allele=allele,
             throw=False,
             model_kwargs=model_kwargs).astype('float32')
-    if verbose:
-        print("Done predicting in", time.time() - start, "sec")
+    print("Done predicting in", time.time() - start, "sec")
     return (chunk_index, results)
 
 
-- 
GitLab