bcm-uga / pcadapt

Performing highly efficient genome scans for local adaptation with R package pcadapt v4
https://bcm-uga.github.io/pcadapt
39 stars 10 forks source link

Is there a way to associate outliers with the populations they discriminate #33

Closed Ella-Bowles closed 5 years ago

Ella-Bowles commented 5 years ago

Hello,

Is there a way to associate outliers with the populations that they discriminate? I can use get.pc to get the SNPs that associate with each PC, but if I have say seven populations and three separate on each axis, it is not possible using this function to figure out which SNPs differentiate each of the populations. One option is perhaps to run the analysis for only two populations, but in that case the outliers found will be pretty different, since PCA takes into account all the variation within and between all populations.

With thanks,

mblumuga commented 5 years ago

Your comment is right, get.pc will return the PC associated with a SNP, but if there are three separate pops on this axis, it is not possible to figure out in which population adaptation took place. Looking at allele frequencies in each pop might provide some additional clues.

Ella-Bowles commented 5 years ago

Thank you.