mapSnapATACToGenes: Map SnapATAC peaks to genes

View source: R/DataParsingFunctions.R

mapSnapATACToGenesR Documentation

Map SnapATAC peaks to genes

Description

mapSnapATACToGenes Generates a mapping from genes to peaks per label

Usage

mapSnapATACToGenes(labelGenes, snap, whichMat = "bmat", regions)

Arguments

labelGenes

data.frame with genes of interest in first column and corresponding labels in second column

snap

a snap object

whichMat

string determing whether to use "bmat" or "gmat" from snap object

regions

GRanges object of genomic regions associated with genes (only needed for "bmat")

Value

list of genes and corresponding peaks by label


PFPrzytycki/CellWalkR documentation built on Oct. 26, 2023, 1:50 p.m.