Description Usage Arguments Author(s)
Preprocess: perform sparsity removal or features under the threshold and impute according to a given function
1 2 3 4 5 6 7 | preprocess(
df,
mf_ids,
sparsity_threshold = 0.2,
imputation_func = min,
imputation_ratio = 0.5
)
|
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 |
BDA Team matias.thayer@owlstone..co.uk BDA Team License: GNU GPL (>= 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.