onedim_dist: Create a colocalization matrix

Description Usage Arguments Value Examples

View source: R/onedim_dist.R

Description

Create a colocalization matrix

Usage

1
onedim_dist(bed1, bed2, n)

Arguments

bed1

A .bed table

bed2

A .bed table

n

The cut-off distance

Value

A colocalization matrix whose dimensions are the number of rows in bed1 by the number of rows in bed2. Entry i,j is a 1 if the ith sequence in bed1 is within the cut-off distance of the jth sequence in bed2, and 0 otherwise.

Examples

1
2
chr<-"chrY"
onedim_dist(nfkb1[which(nfkb1[,1]==chr),],nfkb2[which(nfkb2[,1]==chr),],150)

colocalized documentation built on Oct. 30, 2019, 10:49 a.m.