getCMstats: Generate statistical parameters from a contingency_matrix...

Description Usage Arguments Value Examples

View source: R/All-functions.R

Description

From a list of contingency matrices, such as the output from <e2><80><9c>contingency_matrix<e2><80><9d>, this function computes a fisher's exact test for each matrix and generates a data frame that stores accession ID of a ChIP-Seq experiment, the TF tested in that experiment, the p-value and the odds ratio resulting from the test.

Usage

1
getCMstats(contMatrix_list, chip_index = get_chip_index())

Arguments

contMatrix_list

Output of <e2><80><9c>contingency_matrix<e2><80><9d>, a list of contingency matrix.

chip_index

Output of the function <e2><80><9c>get_chip_index<e2><80><9d>, a data frame containing accession IDs of ChIPs on the database and the TF each one tests. If not provided, the whole internal database will be used

Value

Data frame containing accession ID of a ChIP-Seq experiment and its experimental conditions, the TF tested in that experiment, raw and adjusted p-values, odds-ratio, and euclidean distance. and FDR-adjusted p-values (-10*log10 adj.pvalue).

Examples

1
2
data('CM_list',package = 'TFEA.ChIP')
stats_mat_UP <- getCMstats(CM_list)

TFEA.ChIP documentation built on Nov. 8, 2020, 5:05 p.m.