fdr_fisherPV: Compute FDRs for Fisher's test p-values.

View source: R/fisherFDR.R

fdr_fisherPVR Documentation

Compute FDRs for Fisher's test p-values.

Description

Linear fit to the tail of empirical null distribution of Fisher p-values; FDR computation: compare true to simulated CDF(empirical null).

Usage

fdr_fisherPV(true_fisherPV, sim_fisherPV, cell_names, lm_max = 0.001,
  graphic = TRUE)

Arguments

true_fisherPV

The Fisher's test p-values for the observation.

sim_fisherPV

The Fisher's test p-values for the permutations.

cell_names

A character vector. The names of cells.

lm_max

Numeric value. Default: 0.001. The threshold parameter for the linear fit.

graphic

Logical. If TRUE (Default), generate the CDF plots of p-values and FDR values.

Value

A list containing the matrix of the FDR values (mat_fdr) and distance matrix based on Fisher's test p-values (mat_dist).


ananjysong/SCclust documentation built on April 18, 2022, 10:06 p.m.