f2_from_precomp | R Documentation |
Read blocked f2 statistics from disk
f2_from_precomp(
dir,
inds = NULL,
pops = NULL,
pops2 = NULL,
afprod = FALSE,
fst = FALSE,
return_array = TRUE,
apply_corr = TRUE,
remove_na = TRUE,
verbose = TRUE
)
dir |
Directory with precomputed f2 statistics, or precomputed individual pair data |
inds |
Individuals for which data should be read. Defaults to all individuals, which may require a lot of memory. |
pops |
Populations for which data should be read. Defaults to all populations, which may require a lot of memory. |
pops2 |
Optional second vector of populations. Useful if a f4 statistics of a few against many populations should be computed. |
afprod |
Return negative average allele frequency products instead of f2 estimates. This will result in more precise f4-statistics when the original data had large amounts of missingness, and should be used in that case for |
return_array |
Return a 3d array (default). If false, a data frame will be returned. |
apply_corr |
Subtract the f2 correction factor. Setting this to |
remove_na |
Remove blocks with missing values |
verbose |
Print progress updates |
A 3d array of f2 statistics
## Not run:
dir = 'my/f2/dir/'
f2_blocks = f2_from_precomp(dir, pops = c('pop1', 'pop2', 'pop3'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.