I would like to plot the distance between all pairs of peaks/bound locations for a specific transcription factor. In other words, generate a histogram of inter-genomic distances between all bound locations. Essentially a composite plot of the data, but with the bound location being both the reference point and the data being plotted.
My rationale is that for a particular factor, it appears that bound locations are very often clustered with other bound locations within a few Kb. Generating the plot I mentioned may reveal if there is some preferential range of distances between bound locations for this particular factor, which could be compared to the intergenomic distances of other related factors and TSSs, and to that of the estimated random distribution.
Is there a tool to do this?
It sounds like
bedtools closest
plusawk
would work. Have you given that a try?