@@ -18,8 +18,15 @@ in multiple populations). Multiple eigenvectors with elevated
18
18
eigenvalues is indicative of multiple parallel/antiparallel axes within
19
19
a genomic region, highlighting nonparallelism.
20
20
21
- For more information on the software, please see the accompanying
22
- preprint: < https://www.biorxiv.org/content/10.1101/2021.09.17.460770v1 >
21
+ It is highly recommended to read the accompanying manuscript before
22
+ applying this method. The manuscript is published in Methods in Ecology
23
+ and Evolution (< https://doi.org/10.1111/2041-210X.13952 > )
24
+
25
+ ### Citation
26
+
27
+ Whiting, James R., Josephine R. Paris, Mijke J. van der Zee, and Bonnie A. Fraser. 2022.
28
+ “AF‐vapeR : A Multivariate Genome Scan for Detecting Parallel Evolution Using Allele Frequency Change Vectors.”
29
+ Methods in Ecology and Evolution / British Ecological Society, August. https://doi.org/10.1111/2041-210x.13952.
23
30
24
31
<!-- ### Load from development dir -->
25
32
<!-- ```{r} -->
@@ -484,9 +491,9 @@ null_cutoffs
484
491
```
485
492
486
493
## 95% 99% 99.9%
487
- ## Eigenvector 1 3.473013 3.758088 3.943806
488
- ## Eigenvector 2 3.837055 3.919276 3.984477
489
- ## Eigenvector 3 3.958171 3.981431 3.995346
494
+ ## Eigenvector 1 3.469026 3.731064 3.940222
495
+ ## Eigenvector 2 3.831833 3.919587 3.984385
496
+ ## Eigenvector 3 3.958563 3.981497 3.995629
490
497
## Eigenvector 4 4.000000 4.000000 4.000000
491
498
492
499
Here, the values are summed through eigenvalues, such that the value for
@@ -512,12 +519,12 @@ head(pvals)
512
519
```
513
520
514
521
## Eigenvalue_1 Eigenvalue_2 Eigenvalue_3 Eigenvalue_4
515
- ## chr1:15-18166 0.00990099 0.00950095 0.02210221 0.5536554
516
- ## chr1:18718-48277 0.80798080 0.57355736 0.71837184 0.8693869
517
- ## chr1:48287-74923 0.24922492 0.47044704 0.45014501 0.6151615
518
- ## chr1:75219-95836 0.93439344 0.97509751 0.94629463 0.1340134
519
- ## chr1:96020-119073 0.27062706 0.30713071 0.25892589 0.6771677
520
- ## chr1:119085-144327 0.12431243 0.08420842 0.10801080 0.2129213
522
+ ## chr1:15-18166 0.00890089 0.00960096 0.02240224 0.5487549
523
+ ## chr1:18718-48277 0.80468047 0.56935694 0.71587159 0.8722872
524
+ ## chr1:48287-74923 0.24472447 0.46474647 0.45114511 0.6120612
525
+ ## chr1:75219-95836 0.93329333 0.97729773 0.94709471 0.1333133
526
+ ## chr1:96020-119073 0.26822682 0.30383038 0.25612561 0.6781678
527
+ ## chr1:119085-144327 0.12231223 0.07890789 0.10491049 0.2092209
521
528
522
529
Note: Because these empPvalues are calculated by comparing to the null
523
530
distribution, they are bounded by the number of permutations. For
@@ -624,13 +631,14 @@ significant_windows
624
631
```
625
632
626
633
## $`Eigenvector 1`
627
- ## [1] "chr1:9483266-9511933" "chr1:9973948-10015463" "chr1:10015604-10045407"
628
- ## [4] "chr1:10045553-10083818" "chr2:9483266-9511933" "chr2:9973948-10015463"
629
- ## [7] "chr2:10015604-10045407" "chr2:10045553-10083818" "chr3:9483266-9511933"
630
- ## [10] "chr3:9973948-10015463" "chr3:10015604-10045407" "chr3:10045553-10083818"
634
+ ## [1] "chr1:9483266-9511933" "chr1:9883146-9904934" "chr1:9973948-10015463"
635
+ ## [4] "chr1:10015604-10045407" "chr1:10045553-10083818" "chr2:9483266-9511933"
636
+ ## [7] "chr2:9883146-9904934" "chr2:9973948-10015463" "chr2:10015604-10045407"
637
+ ## [10] "chr2:10045553-10083818" "chr3:9483266-9511933" "chr3:9883146-9904934"
638
+ ## [13] "chr3:9973948-10015463" "chr3:10015604-10045407" "chr3:10045553-10083818"
631
639
##
632
640
## $`Eigenvector 2`
633
- ## [1] "chr1:9883146-9904934 " "chr2:9883146-9904934 " "chr3:9883146-9904934 "
641
+ ## [1] "chr1:9925507-9947330 " "chr2:9925507-9947330 " "chr3:9925507-9947330 "
634
642
##
635
643
## $`Eigenvector 3`
636
644
## [1] "chr1:9904984-9925507" "chr2:9904984-9925507" "chr3:9904984-9925507"
@@ -672,11 +680,11 @@ head(eig1_parallel)
672
680
673
681
## window_id eigenvector eigenvalue parallel_lineages
674
682
## 1 chr1:9483266-9511933 Eig1 3.945282 4
675
- ## 2 chr1:9973948-10015463 Eig1 3.974657 4
676
- ## 3 chr1:10015604-10045407 Eig1 3.972499 4
677
- ## 4 chr1:10045553-10083818 Eig1 3.968457 4
678
- ## 5 chr2:9483266-9511933 Eig1 3.945282 4
679
- ## 6 chr2:9973948-10015463 Eig1 3.974657 4
683
+ ## 2 chr1:9883146-9904934 Eig1 3.941300 4
684
+ ## 3 chr1:9973948-10015463 Eig1 3.974657 4
685
+ ## 4 chr1:10015604-10045407 Eig1 3.972499 4
686
+ ## 5 chr1:10045553-10083818 Eig1 3.968457 4
687
+ ## 6 chr2:9483266-9511933 Eig1 3.945282 4
680
688
## parallel_pops antiparallel_pops
681
689
## 1 pop2,pop3,pop4,pop5
682
690
## 2 pop2,pop3,pop4,pop5
@@ -710,19 +718,19 @@ head(eig2_parallel)
710
718
```
711
719
712
720
## window_id eigenvector eigenvalue eigenvalue_sum parallel_lineages
713
- ## 1 chr1:9883146-9904934 Eig1 3.9412997 3.985715 4
714
- ## 2 chr1:9883146-9904934 Eig2 0.0444148 3.985715 2
715
- ## 3 chr2:9883146-9904934 Eig1 3.9412997 3.985715 4
716
- ## 4 chr2:9883146-9904934 Eig2 0.0444148 3.985715 2
717
- ## 5 chr3:9883146-9904934 Eig1 3.9412997 3.985715 4
718
- ## 6 chr3:9883146-9904934 Eig2 0.0444148 3.985715 2
721
+ ## 1 chr1:9925507-9947330 Eig1 3.92085336 3.984427 4
722
+ ## 2 chr1:9925507-9947330 Eig2 0.06357374 3.984427 2
723
+ ## 3 chr2:9925507-9947330 Eig1 3.92085336 3.984427 4
724
+ ## 4 chr2:9925507-9947330 Eig2 0.06357374 3.984427 2
725
+ ## 5 chr3:9925507-9947330 Eig1 3.92085336 3.984427 4
726
+ ## 6 chr3:9925507-9947330 Eig2 0.06357374 3.984427 2
719
727
## parallel_pops antiparallel_pops
720
728
## 1 pop2,pop3,pop4,pop5
721
- ## 2 pop5 pop2
729
+ ## 2 pop2 pop5
722
730
## 3 pop2,pop3,pop4,pop5
723
- ## 4 pop5 pop2
731
+ ## 4 pop2 pop5
724
732
## 5 pop2,pop3,pop4,pop5
725
- ## 6 pop5 pop2
733
+ ## 6 pop2 pop5
726
734
727
735
Interpreting these tables, the eigenvalues, and the distribution of
728
736
parallel/antiparallel lineages, is key to filtering out regions that may
0 commit comments