Description Usage Arguments Value Calculating the null model distribtion Calculating the p-value Examples
View source: R/evaluatePopulationSignificance.R
Given a population (i.e., list) of PrixFixeNetworks calculate the mean network density across the population. Compare the mean density to a distribution of random network densities.
1 | evaluatePopulationSignficance(pf_data, population, num_trials = 10)
|
pf_data |
a |
population |
a list of |
num_trials |
The number of random trials to generate the null distribution |
a p-value
In order to calculate the null model we want to sample genes from the total co-function network to generate random loci. In order to mitigate problems with node-degree effects, we first categorically bin the cofunction network and then replace original loci genes with a random choice from the same bin.
The p-value here is defined as the fraction of null model densities that are greater than the average true network density.
1 2 3 4 5 6 7 8 9 | ## Not run:
# load example PFData (FA genes)
data(PF_FanconiAnemia)
# generate population of subnetworks
population <- initializePopulation(PF_FanconiAnemia, population_size=100, "true_members")
# evaluate population significance
population_significance <- evaluatePopulationSignificance(pf_data, population, 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.