R6 Class For mzML Data
SCMzml.RdmzML mass spectrometry data container with some useful methods.
Details
Provides our own container for mzML data, and does conversion to frequency, filtering scans, choosing a single frequency regression model, and generating the frequency data for use in the peak characterization.
Public fields
mzml_metadatametadata from an external json file
mzml_datathe actual mzml data from MSnbase
mzml_df_dataa list of data.frames of the data
scan_rangethe range of scans to be used
rtime_rangethe range of retention times to keep
mz_rangethe mz range to use
scan_infodata.frame of scan information
remove_zeroshould zero intensity data points be removed?
frequency_fit_descriptionthe model for m/z -> frequency
mz_fit_descriptionthe model for going from frequency -> m/z
frequency_coefficientsthe coefficients for the frequency model
mz_coefficientsthe coefficients for the m/z model
difference_rangehow wide to consider adjacent frequency points as good
filter_remove_outlier_scansthe function to remove scans that shouldn't be used as well as outliers
choose_single_frequency_modelfunction to choose a single frequency model
Methods
Method predict_frequency()
predict frequency and generate some summary information. This does regression of frequency ~ m/z for each scan separately.
Method new()
Usage
SCMzml$new(
mzml_file,
frequency_fit_description = c(a.freq = 0, x.freq = -1, y.freq = -1/2, z.freq = -1/3),
mz_fit_description = c(a.mz = 0, x.mz = -1, y.mz = -2, z.mz = -3),
metadata_file = NULL,
scan_range = NULL,
rtime_range = NULL,
mz_range = NULL,
remove_zero = FALSE,
filter_remove_outlier_scans = NULL,
choose_single_frequency_model = NULL
)Arguments
mzml_filethe file to load and use
frequency_fit_descriptiona description of the regression model for frequency ~ m/z
mz_fit_descriptiona description of the regression model for m/z ~ frequency
metadata_filea metadata file generated by ...
scan_rangewhich scans can be used for analysis
rtime_rangethe retention time to use for scans
mz_rangewhat m/z range to use
remove_zeroshould zero intensity data be removed?
filter_remove_outlier_scansthe function to use to filter scans
choose_single_frequency_modelthe function to use to choose single frequency regression model
Examples
if (FALSE) {
lipid_sample = system.file("extdata", "lipid_example.mzML",
package = "ScanCentricPeakCharacterization")
}