PValue.onetail: Calculate p-value from bootstrapped sample

Description Usage Arguments Value Examples

View source: R/PValue.onetail.R

Description

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

Usage

1
PValue.onetail(regions, tissueExp1, random.matrix)

Arguments

regions

character regions to search

tissueExp1

numeric vector presence of genes in query

random.matrix

numeric presence of genes at random

Value

p-value of the significance of tissueExp1 given the random.matrix

Examples

 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)

brainImageR documentation built on May 6, 2019, 3:54 a.m.