Skip to content
Snippets Groups Projects
Commit 3fe18db1 authored by Alex Rubinsteyn's avatar Alex Rubinsteyn
Browse files

forgot that Pandas str helpers are implicitly regexes

parent 3b83c2bd
No related branches found
No related tags found
No related merge requests found
......@@ -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"] = \
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment