Skip to contents

Find peaks that are within a given distance threshold to each gene a duplicate of Signac:::DistanceToTSS from Signac 1.14.0

Usage

DistanceToTSS(peaks, genes, distance = 2e+05, sep = c("-", "-"))

Arguments

peaks

A GRanges object containing peak coordinates

genes

A GRanges object containing gene coordinates

distance

Distance threshold. Peaks within this distance from the gene will be recorded.

sep

Separator for peak names when creating results matrix

Value

Returns a sparse matrix