construct_metabosets: Construct MetaboSet objects

construct_metabosetsR Documentation

Construct MetaboSet objects

Description

Construct MetaboSet objects from input read by read_from_excel. Returns a list of MetaboSet objects, one per mode. The modes are separated by the "Split" column in feature_data.

Usage

construct_metabosets(
  exprs,
  pheno_data,
  feature_data,
  group_col = NA_character_,
  time_col = NA_character_,
  subject_col = NA_character_,
  split_data = TRUE
)

Arguments

exprs

matrix, the feature abundances, size features x samples

pheno_data

data frame, sample information, size sample info variables x samples

feature_data

data frame, information about the features, size features x feature info columns

group_col

character, the name of the column in pheno_data to use as the grouping variable

time_col

character, the name of the column in pheno_data to use as the time variable

subject_col

character, the name of the column in pheno_data to use as the subject ID variable

split_data

logical, whether to split data by analytical mode recorded in the "Split" column of feature data. If TRUE (the default), will return a list of MetaboSet objects, one per analytical mode. If FALSE, will return a single MetaboSet object.

Value

list of MetaboSet objects or a single MetaboSet object

See Also

read_from_excel


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.