Description Usage Arguments Value
View source: R/coexpression_enrichment.R
Calculate the enrichment among a set of interacting proteins for mRNA or protein co-expression, relative to a rewired version of the same network.
1 2 | coexpression_enrichment(network, expr, bootstraps = 100, seed = 0,
colname = "coexpr")
|
network |
a data frame containing interactions between protein pairs in the first two columns |
expr |
a matrix containing mRNA or protein expression data, with genes as columns |
bootstraps |
the number of times to rewire the network in order to calculate the Z score; defaults to 100 |
seed |
the number to seed the rewiring algorithm with; defaults to zero |
colname |
the column name to assign to the shared annotations column created in the network data frame; defaults to "coexpr" |
a list with three objects: the median coexpression in the observed network; the median coexpression in each randomized network; and the Z score for the enrichment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.