retrieveSpectrum {MAIT} | R Documentation |
Function retrieveSpectrum
extracts the mass peaks of a certain spectrum provided a dataframe where the spectrum labels are in a column called pcgroup.
retrieveSpectrum(spectrumNumber,sigPeaksTable)
spectrumNumber |
The spectrum ID number whose peaks we want to retrieve. |
sigPeaksTable |
A dataframe containing the peak data in rows. There should be a column called pcgroup containing the spectra correspondence for all the peaks and the firts column should contain the peak masses. |
A numeric vector containing the peak masses of the queried spectrum.
Francesc Fernandez, francesc.fernandez.albert@upc.edu