preprocess: Preprocess metabolomics data

Description Usage Arguments Author(s)

View source: R/preprocess.R

Description

Preprocess: perform sparsity removal or features under the threshold and impute according to a given function

Usage

1
2
3
4
5
6
7
preprocess(
  df,
  mf_ids,
  sparsity_threshold = 0.2,
  imputation_func = min,
  imputation_ratio = 0.5
)

Arguments

df

Input data frame

imputation_func

function to impute values. e.g. median, min, etc

imputation_ratio

ratio to apply to values returned by the imputation function.

mf_cols

Input name of molecular features columns

sparsity_thershold

Only keep MFs where the sparsity is higher that the given threshold

Author(s)

BDA Team matias.thayer@owlstone..co.uk BDA Team License: GNU GPL (>= 2)


chechir/phantomR documentation built on June 17, 2020, 3:40 p.m.