-
Notifications
You must be signed in to change notification settings - Fork 50
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
Tune unit tests (issue #333) #334
Conversation
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.
A general comment. Instead of repeating filterRt(ondisk1, c(1150, 1200))
(and similar), what about defining ondisk1_re_1150_1200
(and similar) in testthat.R
(where ondisk1
et al. are defined) and reuse it later?
tests/testthat/test_MSnExp.R
Outdated
k = 1) | ||
## Reduce the TMT erwinia data set to speed up processing on the full | ||
## data. | ||
tmt <- filterMz(filterRt(tmt_erwinia_in_mem_ms1, c(1200, 1250)), |
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.
How much do you gain from sub-setting along M/Z? I would keep it so that we actually pick peaks along the whole M/Z range. Filtering along the retention time makes sense, as we repeat the same operation many times.
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.
You're right. For MSnExp
we probably don't gain much. I'll keep that to filterRt
and also define the filtered objects in testthat.R
as you suggest.
Codecov Report
@@ Coverage Diff @@
## master #334 +/- ##
======================================
Coverage 76.7% 76.7%
======================================
Files 79 79
Lines 8642 8642
======================================
Hits 6629 6629
Misses 2013 2013 Continue to review full report at Codecov.
|
See issue #333 for details about this PR. Performance of unit tests was improved by sub-setting large data files.