Filter the composition matrix

filterComp(X, thresh_func = var, thresh = 1e-04, id_out = FALSE)

Arguments

X

the matrix input to filter

thresh_func

a function to calculate statistics for filtering. By default is variance.

thresh

If the statistics of variable smaller than threshold, the corresponding variable will filter out. By default is 1e-4.

id_out

Whether output the id of variable kept in final output.

Value

A list of filtered data and/or index.