pops_to_DB: Pre-compute the scores for a given reference database

Description Usage Arguments Value Examples

View source: R/dp_prep_helpers.R

Description

Convert the counts from each population over a range of AIMs SNPs q to observed likelihood ratio test, its mean and variance. Based on these pre-computed the evaluation of a specific profile is done using genogeo with the resulting dataframe as df.

Usage

1

Arguments

db

A dataframe with columns similar to those of simulate_pops(). If db contains information (recommended!) about "meta" (meta population) and "lat"/"lon" (location) these are carried over into the calculations

...

Additional arguments passed to score_add_df

Value

A tibble with population and locus specific score information

Examples

1
2
df_ <- simulate_pops(pop_n = 4, aims_n = 50)
df_db <- pops_to_DB(df_)

genogeographer documentation built on Sept. 27, 2019, 5:03 p.m.