View source: R/DataParsingFunctions.R
mapPeaksToGenes | R Documentation |
mapPeaksToGenes
Generates a mapping from genes to peaks per label
mapPeaksToGenes(labelGenes, ATACMat, peaks, regions)
labelGenes |
data.frame with genes of interest in first column and corresponding labels in second column |
ATACMat |
cell-by-peak matrix |
peaks |
GRanges object of peaks (equal to number of rows in ATACMat) |
regions |
GRanges object of genomic regions associated with genes |
list of genes and corresponding peaks by label
data("SampleCellWalkRData")
regions <- getRegions()
mapPeaksToGenes(SampleCellWalkRData$labelGenes,
SampleCellWalkRData$ATACMat,
SampleCellWalkRData$peaks,
regions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.