clean_my_p: Use the distribution of control genes' p-values to adjust all...

Description Usage Arguments Author(s)

View source: R/clean_my_p.R

Description

This function will transform all p-values by the empirical cdf of the p-values for the control genes. This will result in the p-values of the control genes being uniformly distributed about 0 and 1.

Usage

1
clean_my_p(pvalues, ctl)

Arguments

pvalues

A vector of numbers between 0 and 1. The pvalues.

ctl

A vector of logicals of the same length of pvalues. A TRUE indicates that a p-value is from a control gene and so should be uniformly distributed.

Author(s)

David Gerard


dcgerard/vicar documentation built on July 7, 2021, 1:08 p.m.