Closed hvaret closed 2 years ago
Thank you for the report @hvaret.
@jorainer, what do you think?
Thanks for reporting @hvaret , I will have a look at it.
Hi, thanks a lot @jorainer and @lgatto for the fast answer. I tried with the updated code and everything is now OK on my real data.
Hi,
I open this issue for a possible bug when using the
plot(..., type="XIC")
function. When analyzing my LCMS data I wanted to plot the XIC of several samples using a specific m/z-RT area, and it happened there was no data in this area for at least one of them. The strange behavior is that I actually obtained a plot for all the samples.Below is a toy reproducible example using the data from the msdata package:
Note that a plot is produced for the first sample (as expected) but not for the second one (error) when we try separately:
When looking at the source code my feeling is that the error is in https://github.com/lgatto/MSnbase/blob/80e3b08bff43dea8bd11e86737589254f10babbf/R/functions-MSnExp.R#L623 with
x
andfns
that have different lengths.Here is my
sessionInfo()
:Best regards,
Hugo