
Convert MS-Dial Data to mass_dataset Object
Source:R/convert_msdial2mass_dataset.R
convert_msdial2mass_dataset.RdThis function converts data from MS-Dial into a mass_dataset object.
It reads the data either from a given data frame or from a file and processes it to create a mass_dataset object.
Details
The function reads MS-Dial data and processes it to create a mass_dataset object.
It extracts sample information, variable information, and expression data.
It also performs checks to ensure the data is correctly formatted.
Author
Xiaotao Shen xiaotao.shen@outlook.com
Examples
data("msdial_table")
object <- convert_msdial2mass_dataset(x = msdial_table)
dim(extract_expression_data(object))
#> [1] 3751 20