Note that Tajima's D estimates from data that have been filtered or ascertained can be difficult to interpret. This function should ideally be used on sequence data prior to filtering.
Usage
pop_tajimas_d(.x, n_cores, block_size, ...)
# S3 method for class 'tbl_df'
pop_tajimas_d(
.x,
n_cores = bigstatsr::nb_cores(),
block_size = bigstatsr::block_size(nrow(.x), 1),
...
)
# S3 method for class 'vctrs_bigSNP'
pop_tajimas_d(
.x,
n_cores = bigstatsr::nb_cores(),
block_size = bigstatsr::block_size(length(.x), 1),
...
)
# S3 method for class 'grouped_df'
pop_tajimas_d(
.x,
n_cores = bigstatsr::nb_cores(),
block_size = bigstatsr::block_size(nrow(.x), 1),
...
)
Arguments
- .x
a vector of class
vctrs_bigSNP
(usually thegenotypes
column of agen_tibble
object), or agen_tibble
.- n_cores
number of cores to be used, it defaults to
bigstatsr::nb_cores()
- block_size
maximum number of loci read at once.
- ...
other arguments passed to specific methods, currently unused.