self_assign function

Do leave-one-out self-assignment of individuals in a reference baseline

Do leave-one-out self-assignment of individuals in a reference baseline

Returns a tidy data frame

self_assign( reference, gen_start_col, preCompiledParams = NULL, alle_freq_prior = list(const_scaled = 1) )

Arguments

  • reference: a two-column format genetic dataset, with "repunit", "collection", and "indiv" columns, as well as a "sample_type" column that has some "reference" entries

  • gen_start_col: the first column of genetic data in reference

  • preCompiledParams: Users should never use this option. It is here only so that this function can be called on a precompiled set of parameters with infer_mixture. Don't use this, unless you are one of the package developers...

  • alle_freq_prior: a one-element named list specifying the prior to be used when generating Dirichlet parameters for genotype likelihood calculations. Valid methods include "const", "scaled_const", and "empirical". See ?list_diploid_params

    for method details.

Returns

a tibble ...

Examples

ale_sa <- self_assign(alewife, 17)
  • Maintainer: Eric C. Anderson
  • License: CC0
  • Last published: 2024-01-24

Useful links