pops_to_DB {genogeographer}R Documentation

Pre-compute the scores for a given reference database

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

pops_to_DB(db, ...)

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

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

[Package genogeographer version 0.1.19 Index]