getAdjacencyFDR: Get Adjacency Matrix as indicated by permutation tests.

View source: R/3-shared-getAdjacency.R

getAdjacencyFDRR Documentation

Get Adjacency Matrix as indicated by permutation tests.

Description

This function gets the significant pairs according to the permutation tests. Then it fills the adjacency matrix with 1 if pair is significant, otherwise 0. The significance is determined by the cutoff value for which the false discovery rate (FDR) is less or equal than the given value 'fdr'. The significant pairs are those that have a value greater/less or equal than the cutoff, depending on the metric.

Usage

getAdjacencyFDR(object, fdr = 0.05, window_size = 1)

Arguments

object

A propd or propr object.

fdr

A float value for the false discovery rate. Default is 0.05.

window_size

An integer. Default is 1. When it is greater than 1, the FDR values would be smoothed out by a moving average of the given window size.

Value

An adjacency matrix.


tpq/propr documentation built on Feb. 3, 2025, 4:23 a.m.