code used in Locey and White (2011) to examine patterns of aggregation in genomes