You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This in itself is not a problem, but when combining with plotSpectra these different cases occur:
## Code works and plot is given with default parameters for `calculateFragments`
plotSpectra(sc[1:4], labels=addFragments)
## throws an error in addFragments, argument x is missing with no default
plotSpectra(sc[1:4], labels= addFragments(type= c("a")))
## thus needs to call the spectra object explicitly with the custom parameters but..## this throws an error in `addFragments` as length(x) != 1 (see above)
plotSpectra(sc[1:4], labels= addFragments(sc[1:4], type= c("a")))
In short, plotSpectra coupled to addFragments only works with its default parameters. If these parameters are changed, this can only be done on 1 spectrum at a time and not multiple.
The text was updated successfully, but these errors were encountered:
In
addFragments
, an error is thrown when the length ofx
, the Spectra object, is higher than 1:This in itself is not a problem, but when combining with
plotSpectra
these different cases occur:In short,
plotSpectra
coupled toaddFragments
only works with its default parameters. If these parameters are changed, this can only be done on 1 spectrum at a time and not multiple.The text was updated successfully, but these errors were encountered: