PlotBrain: Color and Plot the SGSE image

Description Usage Arguments Details Value Examples

View source: R/PlotBrain.R

Description

PlotBrain Plots CreateBrain. The gene set enrichment observe within the microdissected tissues (results of testEnrich) are combined here to show gene set enrichment across broad brain regions. Enriched regions are colored in red, and regions depleted for the query gene list are colored in blue.

Usage

1
PlotBrain(composite, legend = TRUE)

Arguments

composite

Comp object returned from CreateBrain.

legend

Boolean whether the legend should be included. Default = TRUE

Details

PlotBrain plots your spatial gene set enrichment image.

Value

plots the SGSE brain image

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##First put together a gene list, or load in the default vth dataset
#brainImageR:::loadworkspace()
data(vth)
##Calculate the spatial enrichment.
#composite <- SpatialEnrichment(vth, reps = 20, refset = "developing")
##Calculate the significance of the gene set enrichment
#boot <- testEnrich(composite)
##Color the brain section of interest
#composite <- CreateBrain(composite, boot, slice = 5, pcut = 0.05)
##Plot the brain
#PlotBrain(composite)

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