1. The repeatability of evolution at the genetic level has been demonstrated to vary along a continuum from complete parallelism to divergence. In order to better understand why this continuum exists within and among systems, hypotheses must be tested using high-confidence candidate loci for repeatability.However, few methods have been developed to scan SNP data for signatures specifically associated with repeatability, as opposed to local adaptation.
We present AF-vapeR (Allele Frequency Vector Analysis of Parallel EvolutionaryResponses), an approach designed to identify genomic regions exhibiting highly correlated allele frequency changes within haplotypes and among replicated allele frequency change vectors. The method divides the genome into windows of an equivalent number of SNPs, and within each window performs eigen decomposition over normalised allele frequency change vectors (AFVs), each derived from a replicated pair of populations/species. Properties of the resulting eigenvalue distribution can be used to compare regions of the genome for those exhibiting strong geometric parallelism, and can also be compared against a null distribution derived from randomly permuted AFVs. Furthermore, the shape of the eigenvalue distribution can reveal multiple axes of parallelism within datasets.3. We demonstrate the utility of this approach to detect different modes of parallel evolution using simulations, and a reduced type-II error rate compared with intersecting F ST outliers. Lastly, we apply AF-vapeR to four previously published datasets (stickleback, Drosophila, guppies and Galapagos finches) which comprise a range of sampling and sequencing strategies, and lineage ages. We detect known parallel regions while also identifying novel candidates.4. The main benefits of this approach include a reduced false-negative rate under many conditions, an emphasis on signals associated specifically with repeatable evolution as opposed to local adaptation, and an opportunity to identify different modes of parallel evolution at the first instance.