self_assign: Do leave-one-out self-assignment of individuals in a...

Description Usage Arguments Value Examples

View source: R/self_assign.R

Description

Returns a tidy data frame

Usage

1
2
3
4
5
6
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.

Value

a tibble ...

Examples

1
ale_sa <- self_assign(alewife, 17)

rubias documentation built on Feb. 10, 2022, 1:06 a.m.