calc_motif_dist: Calculate distances of Tn5 insertions from motif.

Description Usage Arguments Value

View source: R/calc_motif_dist.R

Description

Calculate distances of Tn5 insertions from motif.

Usage

1
calc_motif_dist(signal_gr, motif_pos_gr, range = 200)

Arguments

signal_gr

A GRanges object with tn5 insertions. See the read_atac_bam_tn function.

motif_pos_gr

A GRanges object with the positions of the PWM in ATAC-seq peaks.

range

The distance in bases flanking the the motif to calculate signal.

Value

A numeric vector of distances of Tn5 insertion sites to motif centre.


SamBuckberry/RunATAC documentation built on Aug. 2, 2021, 9:54 a.m.