View source: R/heatmapGeneAccessibility.R
heatmapGeneAccessibility | R Documentation |
Use the output from geneAccessibility function to plot a heatmap of the accessible peaks for a particular gene.
heatmapGeneAccessibility( genePeaks, celltypes, colColors = NULL, order = TRUE, ... )
genePeaks |
The peaks corresponding to a singular gene; one element of the list ouptut by geneAccessibility() |
celltypes |
List or factor of celltypes corresponding to the cells in the scATAC-seq data set the peaks were found in |
colColors |
A vector of colors to color the celltypes by, if NULL a random vector of colors is generated |
order |
should the data be ordered by the celltype classifier? TRUE by default |
... |
additional arguments to the heatmap.2 function from the gplots package |
A plot of the peaks overlapping with a particular gene of interest
library(Homo.sapiens) geneList <- c("TAL1", "EGR1") data(schepGranges) data("subsetSchepData") data(schepCellTypes) accessiblePeaks <- geneAccessibility(geneList = geneList, peakGranges = schepGranges, atacData = subsetSchepData, genome = Homo.sapiens) heatmapGeneAccessibility(genePeaks = accessiblePeaks$EGR1, celltypes = schepCellTypes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.