powered by
Create a colocalization matrix
onedim_dist(bed1, bed2, n)
A .bed table
The cut-off distance
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.
bed1
bed2
# NOT RUN { chr<-"chrY" onedim_dist(nfkb1[which(nfkb1[,1]==chr),],nfkb2[which(nfkb2[,1]==chr),],150) # }
Run the code above in your browser using DataLab