Hello,
I would be grateful if you could help me understand the functions better.
I created bed file A and B and genome, all of which have 3 peaks in exactly the same region.
They look like this.
Chr1 1 10
Chr2 100 150
Chr3 2 3
A and B are the ChIP peaks between which I would like to compare the similarity, and genome is the known TF map-able region.
The number of overlaps are 3 as expected, but when I run AvsB <- permTest(A=A, B=B, ntimes=10, randomize.function=randomizeRegions, evaluate.function=numOverlaps, count.once=TRUE, genome=genome) I get 0s and 1s and 2s for AvsB[["numOverlaps"]][["permuted"]]. I thought since reads in A could only map onto "genome" region and that is where peaks from B are, it would always be 3.
Do you have any ideas why this could be? Thank you so much!