raw_data class
raw_data.Rdraw_data class
Arguments
- metabolomics_matrix
a
data.frame, matrix containing biocrates data- LOD_table
a
listcontaining two elements:table: LOD table of limits of detection / quantification,types: character vector of types of values, for example calc. meaning calculated from samples and op, received from operator.
- metabolites
a
character, vector of metabolites names contained in the data.- group
a
NULLindicating no grouping or a vector ofcharacternames of group columns. Default to NULL. The code will throw an error in the case when:column of such a name won't be contained in the dataset,
there will be NA's in the grouping column,
any group will have less than 2 observations.
Value
raw_data object metabolomics matrix with the following
attributes:
LOD_tableNA_info: alistrelated to missing values in the data. It containsNA_ratios: fractions of missing values per every metabolite. Whengroupparameter (see below) is provided andcounts: table of types of missing values with their counts (related to "sample" type samples).metabolitessamples: adata.framecontaining names of samples types and their countsgroup: a character name of group from the tableremoved: a list of removed metabolitesplate bar code: each measurement has two plate bar codes depending on the method used