Detecting Signatures of Local Adaptation Based on Ancestry Trajectories

Portable, scalable and highly computationally efficient tool for detecting signatures of local adaptation based on multidimensional ancestry map ( _n_ X _n_ ancestry genetic trajectories, _n_ is the number of individuals). If n samples are included in the analysis, there will be n dimensional spaces that represent the common ancestry maps based on the identity-by-descent (IBD). The package calculates the correlations of loci with the common ancestry genetic maps adopting the Genomic Data Structure (GDS, Zheng et al., 2012) and suitable for millions of SNP data. Loci sharing a greater level of most recent common ancestor (MRCA) (large Z-scores) indicates a large number of individuals descend from recent common ancestors, which signals the rapid increase in frequency of a beneficial allele due to recent positive selection. The rationale underlying this package is somewhat analogous to KLFDAPT (Qin, 2021) (<>). It combines the concept of IBD-based genome scan (Albrechtsen et al., 2010) , iHS (Voight, 2006) , and eigenanalysis of SNP data with an identity by descent interpretation (Zheng & Weir, 2016) . It can also be interpreted as spatial varying selection as ancestry genetic maps reflect geographic origins. Besides the detection of local adaptation, this package also estimates the population admixtures and plots its geographic genetic structure.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.0 by Xinghu Qin, 24 days ago

Report a bug at

Browse source code at

Authors: Xinghu Qin [aut, cre, cph]

Documentation:   PDF Manual  

GPL-3 license

Imports qvalue, robust, stats, SNPRelate, gdsfmt, graphics

Suggests knitr, testthat, rmarkdown

See at CRAN