From a9b7f383b6554a03255bc4da50914fda05162e36 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Tue, 31 Oct 2023 10:37:14 -0500 Subject: [PATCH] Fix bug that resulted in the TSL getting incorrectly evaluated when determining the best peptide --- pvactools/lib/aggregate_all_epitopes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvactools/lib/aggregate_all_epitopes.py b/pvactools/lib/aggregate_all_epitopes.py index c4b37a97a..9fffc7be2 100644 --- a/pvactools/lib/aggregate_all_epitopes.py +++ b/pvactools/lib/aggregate_all_epitopes.py @@ -334,7 +334,7 @@ def get_best_binder(self, df): #subset protein_coding dataframe to only include entries with a TSL < maximum_transcript_support_level tsl_df = biotype_df[biotype_df['Transcript Support Level'] != 'NA'] tsl_df = tsl_df[tsl_df['Transcript Support Level'] != 'Not Supported'] - tsl_df = tsl_df[tsl_df['Transcript Support Level'] < self.maximum_transcript_support_level] + tsl_df = tsl_df[tsl_df['Transcript Support Level'] <= self.maximum_transcript_support_level] #if this results in an empty dataframe, reset to previous dataframe if tsl_df.shape[0] == 0: tsl_df = biotype_df