poplin_data: Poplin data methods

Description Getters Setters See Also Examples

Description

Methods to get or set data processing results in a poplin object. These methods are intended to store and retrieve processed data sets involved in normalization, imputation, and transformation.

Getters

In the code snippets below, x is a poplin object.

poplin_data_names(x):

Return the names of all processed data sets.

poplin_data_list(x, type):

Retrieves a named List of matrices containing one or more data processing results. Each entry is a matrix with the same dimension of raw feature data in poplin_raw_list(x).

poplin_data(x, type):

Retrieves a matrix of data processing result. type is either a string specifying the name of data set to retrieve or an integer specifying the index of the desired data set, defaulting to the first entry if missing.

Setters

poplin_data_names(x) <- value:

value must be a character vector to be assigned for the names of processed data sets.

poplin_data_list(x) <- value:

value is expected to be a named List of matrices. If the result already exists, it will be replaced. If value is NULL, any existing result will be removed.

poplin_data(x, type) <- value:

value is expected to be a matrix. type determines how the result is assigned:

  • integer: it must be within the range of existing results. value will replace the result at that index.

  • character: if the result exists with this name, it will be replaced with value. Otherwise a new result with this name will be appended.

  • missing: value will be assigned to the first entry.

If value is NULL, the result corresponding to type will be removed.

See Also

poplin_raw, poplin_reduced

Examples

1
2
3
4
5
6

jaehyunjoo/poplin documentation built on Jan. 8, 2022, 1:13 a.m.