This function filters a matrix (mat) based on the rate of positive value (filt) in each individual under a given degree of presence (filt), all sparse values are put to 0.
filterMat(mat, filt = 0)
: matrix of counts
: filtering threshold in percentage
a cleaned matrix
Edi Prifti & Emmanuelle Le Chatelier
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.