R6 Class For mzML Data
SCMzml.Rd
mzML 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_metadata
metadata from an external json file
mzml_data
the actual mzml data from MSnbase
mzml_df_data
a list of data.frames of the data
scan_range
the range of scans to be used
rtime_range
the range of retention times to keep
mz_range
the mz range to use
scan_info
data.frame of scan information
remove_zero
should zero intensity data points be removed?
frequency_fit_description
the model for m/z -> frequency
mz_fit_description
the model for going from frequency -> m/z
frequency_coefficients
the coefficients for the frequency model
mz_coefficients
the coefficients for the m/z model
difference_range
how wide to consider adjacent frequency points as good
filter_remove_outlier_scans
the function to remove scans that shouldn't be used as well as outliers
choose_single_frequency_model
function 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_file
the file to load and use
frequency_fit_description
a description of the regression model for frequency ~ m/z
mz_fit_description
a description of the regression model for m/z ~ frequency
metadata_file
a metadata file generated by ...
scan_range
which scans can be used for analysis
rtime_range
the retention time to use for scans
mz_range
what m/z range to use
remove_zero
should zero intensity data be removed?
filter_remove_outlier_scans
the function to use to filter scans
choose_single_frequency_model
the function to use to choose single frequency regression model
Examples
if (FALSE) {
lipid_sample = system.file("extdata", "lipid_example.mzML",
package = "ScanCentricPeakCharacterization")
}