-
Notifications
You must be signed in to change notification settings - Fork 46
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
filterMz,Spectrum not returning empty spectrum if mzlim outside of range #181
Comments
I don't remember if there was a good reason to implement it like this - may be @sgibb remembers. May be this call for a > getMethod("isEmpty", "Spectrum")
Method Definition:
function (x)
length(x@mz) == 0
<environment: namespace:MSnbase>
Signatures:
x
target "Spectrum"
defined "Spectrum" Let's see what Seb has to say, otherwise, I would be in favour as long as we add an |
Understand. It's no problem, I was just puzzled that I got some values although it was saying it returns an empty spectrum. Currently I'm playing around in |
Let's wait for Seb. Having thought a bit about it, I would prefer to implement your suggestion. Would calling |
No, The function is thought to replace the
|
I would prefer to return an empty Spectrum with |
Previously the |
I would suggest to fix |
Added a |
If no values are found by the
filterMz
method for a givenmzlim
range the method warns about not finding data points for that range and returning an empty spectrum, it returns however aSpectrum
with themz
corresponding to themzlim
and intensities of0
.Wouldn't it be better to return a
Spectrum
with@mz
and@intensity
beingnumeric()
?Running example:
The text was updated successfully, but these errors were encountered: