prepareC: prepareC

Description Usage Arguments Details Value Author(s)

View source: R/prepareC.R

Description

prepareC is used in the functions contLikMLE,contLikMarg and contLikMCMC to prepare input to C-call

Usage

1
2
prepareC(nC, samples, popFreq, refData = NULL, condOrder = NULL,
  knownRef = NULL, kit = NULL)

Arguments

nC

Number of contributors in model.

samples

A List with samples which for each samples has locus-list elements with list elements adata and hdata. 'adata' is a qualitative (allele) data vector and 'hdata' is a quantitative (peak heights) data vector.

popFreq

A list of allele frequencies for a given population.

refData

Reference objects with list element [[s]][[i]]. The list element has reference-list with list-element 's' having a loci-list adata with list-element 'i storing qualitative data.

condOrder

Specify conditioning references from refData (must be consistent order). For instance condOrder=(0,2,1,0) means that we restrict the model such that Ref2 and Ref3 are respectively conditioned as 2. contributor and 1. contributor in the model.

knownRef

Specify known non-contributing references from refData (index). For instance knownRef=(1,2) means that reference 1 and 2 is known non-contributor in the hypothesis. This affectes coancestry correction.

kit

shortname of kit: "ESX17","ESI17","ESI17Fast","ESX17Fast","Y23","Identifiler","NGM","ESSPlex","ESSplexSE","NGMSElect","SGMPlus","ESX16", "Fusion","GlobalFiler"

Details

The function builds the data input to the C-code

Value

ret A list of data input to call the C-code with

Author(s)

Oyvind Bleka <Oyvind.Bleka.at.fhi.no>


euroformix documentation built on May 2, 2019, 4:48 p.m.