FoM.GetIdOrderedMatrix: Order the matrix of samples by their ID

Description Usage Arguments Value Author(s)

Description

Finds the sample rows in the matrix 'data' that contain repeats of the same sample on the basis of the identifying columns, and assigns a new single unique ID to each of these rows. Also orders the matrix on the basis of these newly assigned IDs.

Usage

1
FoM.GetIdOrderedMatrix(data, cols.id = 1, cols.values = -1)

Arguments

data

the matrix which contains both the sample data and the identification information per sample.

cols.id

which columns contain the identity information per sample.

cols.values

which columns contain the relevant metabolomics sampling data.

Value

A list is returned containing the following values:

ids

A list that contains both the combinations of ID values found in the ID columns which are unique (row.patterns) and, for each of these combinations, a list with the row indices (indices.per.pattern) belonging to that unique ID combination.

data

A subset of the input data matrix which excludes all the identification columns (cols.id) and only contains columns defined by the argument cols.values.

means.per.id

Each sample can constitute of multiple repeats. This matrix contains the mean per sample over all of its repeats per value column requested.

Author(s)

Tim Dorscheidt


MetStaT documentation built on May 2, 2019, 1:45 p.m.