From 47ac38ae6568026c181be408e0b5e7b3d50bd040 Mon Sep 17 00:00:00 2001
From: Tim O'Donnell <timodonnell@gmail.com>
Date: Mon, 30 Sep 2019 21:26:39 -0400
Subject: [PATCH] fix

---
 downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py b/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
index 8eeb45f2..435a6046 100644
--- a/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
+++ b/downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
@@ -108,7 +108,7 @@ def run(argv=sys.argv[1:]):
 
     peptides = pandas.read_csv(args.input_peptides).peptide.drop_duplicates()
     print("Filtering to valid peptides. Starting at: ", len(peptides))
-    peptides = peptides[peptides.str.match("[ACDEFGHIKLMNPQRSTVWY]+")]
+    peptides = peptides[peptides.str.match("^[ACDEFGHIKLMNPQRSTVWY]+$")]
     print("Filtered to: ", len(peptides))
     peptides = peptides.unique()
     num_peptides = len(peptides)
-- 
GitLab