extract_ms1_info | R Documentation |
This function extracts MS1-related data from a 'mass_dataset' object, including MS2 spectrum ID, m/z, retention time (RT), file ID, and variable ID.
extract_ms1_info(object)
object |
A 'mass_dataset' object containing MS2 data. |
The function extracts MS1-related information from the MS2 data stored within a 'mass_dataset' object. It combines the MS2 data ID and spectrum ID to create a unique 'ms2_spectrum_id', and returns the corresponding m/z, RT, file ID, and variable ID in a data frame.
A data frame containing the following columns:
A combined ID made up of the MS2 data ID and spectrum ID.
The m/z values for the corresponding MS2 spectra.
The retention time (RT) values for the corresponding MS2 spectra.
The file ID associated with each MS2 spectrum.
The variable ID for each MS2 spectrum.
## Not run:
# Load a sample mass dataset
my_dataset <- load_mass_dataset("path/to/dataset")
# Extract MS1 information
ms1_info <- extract_ms1_info(my_dataset)
head(ms1_info)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.