Convert mzmine feature table to mass_dataset class.

convet_mzmine2mass_dataset(x, rt_unit = c("minute", "second"))

Arguments

x

Feature table from mzmine.

rt_unit

RT unit (minute or second) in feature table.

Value

A mass_dataset-class object.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

data("mzmine_table")
head(mzmine_table[,1:3])
#>   row ID   row m/z row retention time
#> 1      1 108.51790           10.24505
#> 2      2 184.98560           10.24529
#> 3      3  99.51304           10.24432
#> 4      4 176.97199           10.45647
#> 5      6 186.95641           10.47076
#> 6      7 108.51790           12.79046
object =
  convet_mzmine2mass_dataset(x = mzmine_table)
object
#> -------------------- 
#> massdataset version: 1.0.12 
#> -------------------- 
#> 1.expression_data:[ 3443 x 22 data.frame]
#> 2.sample_info:[ 22 x 2 data.frame]
#> 3.variable_info:[ 3443 x 3 data.frame]
#> 4.sample_info_note:[ 2 x 2 data.frame]
#> 5.variable_info_note:[ 3 x 2 data.frame]
#> 6.ms2_data:[ 0 variables x 0 MS2 spectra]
#> -------------------- 
#> Processing information (extract_process_info())
#> 1 processings in total
#> create_mass_dataset ---------- 
#>       Package                Function.used                Time
#> 1 massdataset convet_mzmine2mass_dataset() 2022-08-07 19:33:02