PValue.onetail {brainImageR} | R Documentation

## Calculate p-value from bootstrapped sample

### 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

    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

    ##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)

[Package brainImageR version 1.1.0 Index]