From 3fe18db1ec922446b2589c1e874b4bdd1eabcfeb Mon Sep 17 00:00:00 2001 From: Alex Rubinsteyn <alex.rubinsteyn@gmail.com> Date: Fri, 24 Jun 2016 09:48:08 -0400 Subject: [PATCH] forgot that Pandas str helpers are implicitly regexes --- mhcflurry/plotting.py | 2 +- script/create-combined-class1-dataset.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mhcflurry/plotting.py b/mhcflurry/plotting.py index 6be12a41..c1ce28ca 100644 --- a/mhcflurry/plotting.py +++ b/mhcflurry/plotting.py @@ -34,7 +34,7 @@ def plot_nsamples_vs_metrics_with_imputation( seaborn.set_style("whitegrid") for (j, score_name) in enumerate(metrics): - ax = pyplot.subplot2grid((1, 4), (0, j)) + pyplot.subplot2grid((1, 4), (0, j)) groups = results_df.groupby(groupby_columns) groups_score = groups[score_name].mean().to_frame().reset_index() groups_score["std_error"] = \ diff --git a/script/create-combined-class1-dataset.py b/script/create-combined-class1-dataset.py index b75fbca6..e51b4601 100755 --- a/script/create-combined-class1-dataset.py +++ b/script/create-combined-class1-dataset.py @@ -171,7 +171,7 @@ if __name__ == "__main__": # filter out post-translation modifications and peptides with unknown # residues - modified_peptide_mask = combined_df.peptide.str.contains("+") + modified_peptide_mask = combined_df.peptide.str.contains("\+") n_modified = modified_peptide_mask.sum() if n_modified > 0: print("Dropping %d modified peptides" % n_modified) -- GitLab