PValue.onetail {brainImageR} | R Documentation |
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
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
##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)