plotSpectra | R Documentation |
Plots the empirical spectra found by eRah, and allows comparing it with the reference spectra.
plotSpectra(Experiment, AlignId, n.putative = 1,
compare = T, id.database = mslib, comp.db = NULL,
return.spectra = F, draw.color = "purple", xlim = NULL)
## S4 method for signature 'MetaboSet'
plotSpectra(
Experiment,
AlignId,
n.putative = 1,
compare = T,
id.database = mslib,
comp.db = NULL,
return.spectra = F,
draw.color = "purple",
xlim = NULL
)
Experiment |
A 'MetaboSet' S4 object containing the experiment after being deconolved, aligned and (optionally) identified. |
AlignId |
the Id identificator for the compound to be shown. |
n.putative |
The hit number (position) to be returned when comparing the empirical spectrum with the reference. See details |
compare |
logical. If TRUE, then the reference spectrum from the library is shown for comparison. |
id.database |
The mass-spectra library to be compared with the empirical spectra. By default, the MassBank-[2] - Mass Bank of North America (MoNa) database are employed. |
comp.db |
If you want to compare the empirical spectrum with another spectrum from the database, select the comp.db number from the database. |
return.spectra |
logical. If TRUE, the function returns the empirical spectrum for the selected compound |
draw.color |
Selects the color for the reference spectrum (see |
xlim |
x axsis (mass - m/z) limits (see |
When identification is applied (see identifyComp
), the number of hits to be returned (n.putative) has to be selected. Therefore, here you can compare the empirical spectrum (found by eRah) with each n.putative hit returned (1, 2, ...) by (see identifyComp
).
plotSpectra
returns an vector when return.spectra=TRUE.
x |
vector. Containts the empirical spectrum. |
Xavier Domingo-Almenara. xavier.domingo@urv.cat
[1] eRah: an R package for spectral deconvolution, alignment, and metabolite identification in GC/MS-based untargeted metabolomics. Xavier Domingo-Almenara, Alexandre Perera, Maria Vinaixa, Sara Samino, Xavier Correig, Jesus Brezmes, Oscar Yanes. (2016) Article in Press.
[2] MassBank: A public repository for sharing mass spectral data for life sciences, H. Horai, M. Arita, S. Kanaya, Y. Nihei, T. Ikeda, K. Suwa. Y. Ojima, K. Tanaka, S. Tanaka, K. Aoshima, Y. Oda, Y. Kakazu, M. Kusano, T. Tohge, F. Matsuda, Y. Sawada, M. Yokota Hirai, H. Nakanishi, K. Ikeda, N. Akimoto, T. Maoka, H. Takahashi, T. Ara, N. Sakurai, H. Suzuki, D. Shibata, S. Neumann, T. Iida, K. Tanaka, K. Funatsu, F. Matsuura, T. Soga, R. Taguchi, K. Saito and T. Nishioka, J. Mass Spectrom., 45, 703-714 (2010)
plotProfile
plotAlign
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.