dot-prepare_sample_covariates: Helper function when creating or appending to a faciledatsets

.prepare_sample_covariatesR Documentation

Helper function when creating or appending to a faciledatsets

Description

Preapres the EAV table and stuff for the sample-level covariates (pData) of the assay objects in the named list x

Usage

.prepare_sample_covariates(
  x,
  covariate_def = NULL,
  fds = NULL,
  parents = NULL,
  ...
)

Arguments

x

a named list of assay containers (names are the dataset values)

covariate_def

precanned covariate definitions

fds

(optional) a FacileDataSet object that you are adding these sample level covariates to.

parents

not used now, but a two-column data.frame that encodes which sample is a parent of another

Details

TODO: Handle and optional parameter that provides new or existing mappings mappings of covariate names to the attribute-value definitions that eventually get serialized to the meta.yaml file


facileverse/FacileData documentation built on Feb. 24, 2024, 7:59 a.m.