Description Usage Arguments Value Examples
View source: R/PValue.onetail.R
The distribution of microdissected tissues supporting each larger brain region is not equal across all regions. We therefore provide an option to bootstrap gene set enrichment. This function calculates the signficance of that enrichment.
PValue.onetail
Calculates the p-value from a bootstrapped sample
1 | PValue.onetail(regions, tissueExp1, random.matrix)
|
regions |
character regions to search |
tissueExp1 |
numeric vector presence of genes in query |
random.matrix |
numeric presence of genes at random |
p-value of the significance of tissueExp1 given the random.matrix
1 2 3 4 5 6 7 8 9 10 11 | ##Internal to brainImageR, called within testEnrich
#brainImageR:::loadworkspace()
##First put together a gene list, or load in the default vth dataset
data(vth)
##Calculate the spatial enrichment.
#composite <- SpatialEnrichment(vth, reps = 20, refset = "developing")
#tissueExp1 <- composite@tissueExp1
#random.matrix <- composite@random.matrix
#boot <- PValue.onetail(regions = names(tissueExp1),
#tissueExp1,
#random.matrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.