bcm-uga / pcadapt

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

Eigenvalues and pcadapt for pooledSeq #88

Closed mroesti closed 3 months ago

mroesti commented 3 months ago

I have three questions concerning pcadapt.

1) How can I extract the eigenvalues (i.e., contribution of each PC axis to the total variance explained)? I found the option to plot these values as screeplot, but I didn't figure out how to extract the actual values.

2) Pcadapt can also be used to analyze pooled-seq data to find signatures of adaptation.

2.1 The way I interpret your description is that the input data would in this case be relative allele frequencies. Just to make clear I'm correct, here an example: let's say I pool-sequenced each of two populations (A and B) with 100x at one biallelic locus. Let's say I have 20 x A and 80 x C base calls for population A, and 60 x A and 40 x C base calls for population B. The input data for pcadapt for this locus would then be 0.2 (or 0.8) for population A and 0.6 (or 0.4) for population B. Correct?

2.2 If I had whole-genome pooled-seq data from only two populations, would you still think that using pcadapt is useful and possibly more powerful to find signatures of divergent selection between these two populations than, say, normal Fst-based divergence scans?

Thanks a lot for your help and inputs!

privefl commented 3 months ago
mroesti commented 3 months ago

Thanks!!