f2 | R Documentation |
Computes f2 statistics from f2 blocks of the form f2(A, B)
f2(
data,
pop1 = NULL,
pop2 = NULL,
boot = FALSE,
sure = FALSE,
unique_only = TRUE,
verbose = FALSE,
...
)
data |
Input data in one of three forms:
|
pop1 |
One of the following four:
|
pop2 |
A vector of population labels |
boot |
If |
sure |
The number of population combinations can get very large. This is a safety option that stops you from accidently computing all combinations if that number is large. |
unique_only |
If |
verbose |
Print progress updates |
... |
Additional arguments passed to |
f2
returns a data frame with f2 statistics
Patterson, N. et al. (2012) Ancient admixture in human history Genetics
Peter, B. (2016) Admixture, Population Structure, and F-Statistics Genetics
pop1 = 'Denisova.DG'
pop2 = c('Altai_Neanderthal.DG', 'Vindija.DG')
f2(example_f2_blocks, pop1, pop2)
## Not run:
f2(f2_dir, pop1, pop2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.