-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Description
This issue requests input from @sgibb, @jotsetung and any other interested readers on how to harmonise plotting of MS data (and MSnExp, OnDiskMSnExp and Spectrum objects) in MSnbase. currently, we have plot methods for spectra and MSnExp, where the latter plots the spectra in the experiment, which is not ideal. Here's are two examples:
The MSmap data structure also supports plotting:
@jotsetung (see #312) has these really nice visualisations, which I would call extracted ion chomatograms (XIC):
and we can also plot Chromatogram object:
I think it would be useful to rationalise all these and properly document these visualisations in one place (for example to work on a MSnbase-vis vignette).
In terms of rationalisation
- Should we have a single
plotmethod that does a reasonable thing depending on the argument, or different (plotXIC,plotMS, ...). I prefer the former, as long as we plan arguments and defaults wisely. plot,Spectrumneeds some work, but the basics are OKplot,MSnExpthat plots all spectra should be replaced with a better default, for example the heatmap fromMSmap(although this might be time consuming for a plot)- It would be great to incorporate @jotsetung the XIC visualisation
- ...
Suggestions
plot(<Spectrum>)- as currently available (with possible improvements)plot(<Spectrum>, <Spectrum>)- as currently available.plot(<Spectrum>, <character>)- as currently available.plot(<MSmap>)- as currently available, with possible a harmonisation ofMSmapandChromatogram[s]interfaces. Could also be implemented asplot(<MSnExp>, type = "MSmap")with retention time (filterRt) and mz (filterMz) filtering delegated to the user.plot(<MSnExp>, type = "XIC") - formerplotMsData(see above), with retention time (filterRt) and mz (filterMz`) filtering delegated to the user. Done in Add plot,MSnExp,missing, type = "XIC" (issue #313) #314.plot(<MSnExp>, type = "spectrum")is currently available, but could be removed and instructions would be provided to plot spectra and rearrange them using, for examplepatchwork.plot(<Chromatogram>)andplot(<Chromatograms>)- as currently available.
Reactions are currently unavailable





