Skip to content

Commit

Permalink
Merge pull request #71 from superrino130/master
Browse files Browse the repository at this point in the history
typo?
  • Loading branch information
levitsky authored Feb 16, 2022
2 parents 2ac9e6d + 2d901a9 commit 10b12ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyteomics/tandem.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def filter_df(*args, **kwargs):
if sep is not None:
if 'decoy_suffix' in kwargs:
kwargs['is_decoy'] = df['protein_label'].str.split(sep).apply(
lambda s: all(x.endtswith(kwargs['decoy_suffix']) for x in s))
lambda s: all(x.endswith(kwargs['decoy_suffix']) for x in s))
else:
kwargs['is_decoy'] = df['protein_label'].str.split(sep).apply(
lambda s: all(x.startswith(kwargs.get('decoy_prefix', 'DECOY_')) for x in s))
Expand Down

0 comments on commit 10b12ac

Please sign in to comment.