Skip to content

Commit

Permalink
Fix output stat -- order of operations (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
sminot authored Nov 2, 2022
1 parent 87b0ed3 commit 3406fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/merge-counts-stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def num(s):
sample_table = sample_table.assign(
percent_mapped=sample_table["reads_mapped"] / sample_table["raw_total_sequences"] * 100.,
percent_peptides_detected=(merged_counts > 0).mean() * 100.,
percent_peptides_between_10_and_100=merged_counts.applymap(lambda v: v >= 10 & v <= 100).mean() * 100.,
percent_peptides_between_10_and_100=merged_counts.applymap(lambda v: (v >= 10) & (v <= 100)).mean() * 100.,
)

ds = stitch_dataset(
Expand Down

0 comments on commit 3406fc2

Please sign in to comment.