View source: R/foldAccessibility.R
foldAccessibility | R Documentation |
Compares the accessibility of peaks overlapping with a gene, as returned by the geneAccessibility function to the average accessibility of peaks within a given cell population. Meant to provide a rough estimate of how accessible a gene is with values higher than 1 providing evidence of differential accessibility (and thus implying possible transcription), with values lower than 1 indicating the opposite.
foldAccessibility(peaksAccessibility, cellTypeList, cellType, binaryMatrix)
peaksAccessibility |
the binarized accessibility of a set of peaks; one value returned from the geneAccessibility function |
cellTypeList |
list of celltypes grouping cells in the data |
cellType |
the particular cell type of interest from within cellTypeList |
binaryMatrix |
binarized scATAC data matrix |
Fold accessibility value as compared to average peaks for a given cell type
data("subsetSchepData")
data(schepCellTypes)
library(Homo.sapiens)
geneList <- c("TAL1", "IRF1")
data(schepGranges)
binarizedData <- (subsetSchepData > 0) + 0
accessiblePeaks <- geneAccessibility(geneList = geneList, peakGranges = schepGranges,
atacData = subsetSchepData, genome = Homo.sapiens)
foldAccessibility(peaksAccessibility = accessiblePeaks$TAL1, cellTypeList = schepCellTypes,
cellType = "K562 Erythroleukemia", binaryMatrix = binarizedData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.