onedim_dist {colocalized} | R Documentation |
Create a colocalization matrix
Description
Create a colocalization matrix
Usage
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
chr<-"chrY"
onedim_dist(nfkb1[which(nfkb1[,1]==chr),],nfkb2[which(nfkb2[,1]==chr),],150)
[Package colocalized version 0.2.0 Index]