Description Usage Arguments Value Author(s) See Also Examples
Substitute zero for missing or negative intensity values in W4M data matrix (synonym for w4m_filter_zero_imputation, deprecated)
1 |
m |
matrix: W4M data matrix potentially containing NA or negative values |
matrix: input data matrix with zeros substituted for negative or NA values
Art Eschenlauer, esch0041@umn.edu
https://github.com/HegemanLab/w4mclassfilter
http://workflow4metabolomics.org/
1 2 3 4 5 6 7 8 9 10 11 | # input contains negative and missing values
my_input <- matrix(c(NA,1,-1,2), ncol = 2, nrow = 2)
# expected output converts negative and missing values to zero
my_expected <- matrix(c(0,1,0,2), ncol = 2, nrow = 2)
# run the imputation method to generate actual output
my_output <- w4m_filter_imputation(my_input)
# validate actual output against expected output
all.equal(my_output, my_expected, check.attributes = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.