Hi!
I have a peakfile (file containing genomic regions in BED format) containing 1000 regions from hg18.
What I would like, is to generate a random set of 1000 peaks from hg 18 of nearly same size and type (with respect to their position in genome promoter/exon/intron/intergenic).
I am almost sure all the guys working in motif discovery have encountered such a problem.
Kindly help
Thank you
Duplicate Picking random genomic positions
True, but this question has a novel slant; ChIP requires that the distances between genomic regions and nearby genes be maintained.