reldist_bed: Relative distance distribution

reldist_bedR Documentation

Relative distance distribution

Description

Calculate the relative distance distribution between two BED data tables.

Usage

reldist_bed(x, y)

Arguments

x

A GRanges.

y

A GRanges.

Value

The relative distance distribution.

References

Manual page of bedtools reldist: https://bedtools.readthedocs.io/en/latest/content/tools/reldist.html

Exploring Massive, Genome Scale Datasets with the GenometriCorr Package. Favorov A, Mularoni L, Cope LM, Medvedeva Y, Mironov AA, et al. (2012) PLoS Comput Biol 8(5): e1002529. doi:10.1371/journal.pcbi.1002529

Examples

# Load BED tables
x <- read_bed(system.file("extdata", "example2.bed.gz", package = "bedtorch"), use_gr = FALSE)
y <- read_bed(system.file("extdata", "example2_window.bed", package = "bedtorch"), use_gr = FALSE)

# Basic usages
reldist_bed(x, y) 

haizi-zh/bedtorch documentation built on July 1, 2022, 10:40 a.m.