-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(calculateBpc): calculate base peak chromatogram #31
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31 +/- ##
==========================================
+ Coverage 95.45% 95.57% +0.11%
==========================================
Files 29 30 +1
Lines 484 497 +13
Branches 103 106 +3
==========================================
+ Hits 462 475 +13
Misses 20 20
Partials 2 2
Continue to review full report at Codecov.
|
src/ms/calculateBpc.js
Outdated
var massSpectra = ms.data; | ||
var bpc = []; | ||
for (var massSpectrum of massSpectra) { | ||
bpc.push(Math.max(...massSpectrum[1])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very inefficient. use https://www.npmjs.com/package/ml-array-max
* feat(calculateBpc): calculate base peak chromatogram * chore(calculateBpc): use ml-array-max for performance
* feat: initial baseline implementation * feat: initial baseline implementation * Add test case * Release v2.0.7 * Upgrade dependencies * feat(calculateBpc): calculate base peak chromatogram (#31) * feat(calculateBpc): calculate base peak chromatogram * chore(calculateBpc): use ml-array-max for performance * chore(integrate1D): add baseline correction * test: fix merge conflicts * test: remove async tags
* feat: initial baseline implementation * feat: initial baseline implementation * Add test case * Release v2.0.7 * Upgrade dependencies * feat(calculateBpc): calculate base peak chromatogram (#31) * feat(calculateBpc): calculate base peak chromatogram * chore(calculateBpc): use ml-array-max for performance * chore(integrate1D): add baseline correction * test: fix merge conflicts * test: remove async tags
No description provided.