get_significant_values: A function to select significant components among matrix of...

Description Usage Arguments Value Author(s)

View source: R/microbiomics.r

Description

This function takes a matrix of values (e.g. correlations from pairwise_spearman) and corresponding p-values and/or q-values. Given the threshold for p- and q-values it will return reduced matrices of significant values where each row and column contain at least one significant value (while retaining the original row and column names).

Usage

1
2
get_significant_values(values, p_values, q_values = NA,
  pvalue_threshold = 0.01, qvalue_threshold = 0.1)

Arguments

values

matrix of values of interest (e.g. correlations)

p_values

matrix of p-values for the matrix in the first argument

q_values

(optional) matrix of q-values for the matrix in the first argument. If q-values are given, no p-value thresholding is done.

pvalue_threshold

threshold for significance for the p-values (default 0.01)

qvalue_threshold

threshold for significance for the q-value (default 0.1)

Value

a list with following elements

Author(s)

Tommi Vatanen <tommivat@gmail.com>


tvatanen/microbiomics documentation built on Sept. 27, 2019, 7:29 a.m.