create_mass_dataset: Create a New mass_dataset Object

View source: R/mass_dataset_class.R

create_mass_datasetR Documentation

Create a New mass_dataset Object

Description

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://tidymass.github.io/massdataset/articles/data_import_and_export.html

sample_info

Sample information name. https://tidymass.github.io/massdataset/articles/data_import_and_export.html

variable_info

MS1 peak table name. Columns are samples and rows are variables. https://tidymass.github.io/massdataset/articles/data_import_and_export.html

sample_info_note

Sample information name. https://tidymass.github.io/massdataset/articles/data_import_and_export.html

variable_info_note

Sample information name. https://tidymass.github.io/massdataset/articles/data_import_and_export.html

Value

An object of class mass_dataset.

Author(s)

Xiaotao Shen shenxt1990@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

tidymass/massdataset documentation built on Jan. 30, 2024, 2:55 p.m.