Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched to Geometric Mean for Peptide Level Scores #392

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

Lilferrit
Copy link
Contributor

Switched the peptide level score calculation from the arithmetic mean to the geometric mean of amino acid scores.

@Lilferrit Lilferrit requested a review from bittremieux October 14, 2024 17:53
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.37%. Comparing base (396f838) to head (83a40c7).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #392   +/-   ##
=======================================
  Coverage   94.37%   94.37%           
=======================================
  Files          13       13           
  Lines        1102     1102           
=======================================
  Hits         1040     1040           
  Misses         62       62           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lilferrit Lilferrit linked an issue Oct 14, 2024 that may be closed by this pull request
Copy link
Collaborator

@bittremieux bittremieux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Two minor suggestions:

  • Maybe add another test that doesn't include a 0 amino acid score, because of the resulting -inf log and zero geometric mean. This is an edge case anyway, because real amino acid scores will likely never be truly zero.
  • Update the CHANGELOG.

@Lilferrit Lilferrit merged commit 0f06ac9 into dev Oct 15, 2024
6 checks passed
@Lilferrit Lilferrit deleted the geometric-mean branch October 15, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to geometric mean for peptide scores
2 participants