RawMS | R Documentation |
This reference class represents a storage container for the raw mass-spec data from a zipped mzML file and associated metadata. It provides methods for plotting the total-ion chromatogram, and setting which scans will be used for peak picking
RawMS
raw_file |
the zip or mzML file to use |
metadata_file |
the metadata file to use |
An object of class R6ClassGenerator
of length 25.
The find_peaks()
method is not set by default, it must be set
by the user after instantiation. The find_peaks()
function definition
should take the raw_data
, and either scan_range
or rt_range
.
It should also store the function name that is actually used for finding the peaks,
and the variables, and then generate a peaks
object. See the examples
below for how to generate these functions.
A reference class with methods set_scans()
, plot_tic()
,
find_peaks()
.
## Not run: # setting different files rms <- raw_ms("mzmlFile.mzML") rms <- raw_ms("mzmlFile.mzML", "someDirectoryForZip") rms <- raw_ms("mzmlZipFile.zip") # Plot the total-ion-chromatogram rms$plot_tic() rms$set_scans(scan_range = c(1, 2, 3)) rms$set_scans(rt_range = c(0, 50.1)) # uses seconds # set the find_peaks method rms$find_peaks <- function(){ } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.