This function creates a new mass_dataset object by taking in various data frames and performing checks on them.
Usage
create_mass_dataset(
expression_data,
sample_info,
variable_info,
sample_info_note,
variable_info_note
)Arguments
- expression_data
MS1 peak table name. https://www.tidymass.org/massdataset/articles/data_import_and_export.html
- sample_info
Sample information name. https://www.tidymass.org/massdataset/articles/data_import_and_export.html
- variable_info
MS1 peak table name. Columns are samples and rows are variables. https://www.tidymass.org/massdataset/articles/data_import_and_export.html
- sample_info_note
Sample information name. https://www.tidymass.org/massdataset/articles/data_import_and_export.html
- variable_info_note
Sample information name. https://www.tidymass.org/massdataset/articles/data_import_and_export.html
Author
Xiaotao Shen xiaotao.shen@outlook.com
Examples
data("expression_data")
data("sample_info")
data("sample_info_note")
data("variable_info")
data("variable_info_note")
object =
create_mass_dataset(
expression_data = expression_data,
sample_info = sample_info,
variable_info = variable_info,
sample_info_note = sample_info_note,
variable_info_note = variable_info_note
)
object
#> --------------------
#> massdataset version: 0.99.1
#> --------------------
#> 1.expression_data:[ 1000 x 8 data.frame]
#> 2.sample_info:[ 8 x 4 data.frame]
#> 8 samples:Blank_3 Blank_4 QC_1 ... PS4P3 PS4P4
#> 3.variable_info:[ 1000 x 3 data.frame]
#> 1000 variables:M136T55_2_POS M79T35_POS M307T548_POS ... M232T937_POS M301T277_POS
#> 4.sample_info_note:[ 4 x 2 data.frame]
#> 5.variable_info_note:[ 3 x 2 data.frame]
#> 6.ms2_data:[ 0 variables x 0 MS2 spectra]
#> --------------------
#> Processing information
#> 1 processings in total
#> create_mass_dataset ----------
#> Package Function.used Time
#> 1 massdataset create_mass_dataset() 2026-03-02 09:27:06
