View source: R/All-functions.R
contingency_matrix | R Documentation |
Function to compute contingency 2x2 matrix by the partition of the two gene ID lists according to the presence or absence of the terms in these list in a ChIP-Seq binding database.
contingency_matrix(test_list, control_list, chip_index = get_chip_index())
test_list |
List of gene Entrez IDs |
control_list |
If not provided, all human genes not present in test_list will be used as control. |
chip_index |
Output of the function “get_chip_index”, 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 |
List of contingency matrices, one CM per element in chip_index (i.e. per ChIP-seq dataset).
data('Genes.Upreg',package = 'TFEA.ChIP')
CM_list_UP <- contingency_matrix(Genes.Upreg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.