Learn R Programming

relMix (version 1.4.1)

mixLikDrop: Likelihoods for DNA mixtures with dropout and dropin

Description

Computes the likelihood of a mixture conditioned on a given number of known and unknown contributors, and drop-in and dropout probabilities.

Usage

mixLikDrop(R, G, D, di = 0, alleleNames, afreq)

Value

The likelihood (a numeric)

Arguments

R

Vector of mixture alleles

G

List of genotypes. Each element is a vector with genotype for one individual

D

List of dropout values (between 0 and 1) per contributor. Each element is a vector containing heterozygous and homozygous dropout probability for the given contributor

di

Drop-in value (between 0 and 1)

alleleNames

Vector of allele names for the marker

afreq

Vector of allele frequencies for the marker

Author

Guro Dorum

References

The model is specified in the appendix of Haned et al. (2012) <doi:10.1016/j.fsigen.2012.08.008>.

See Also

relMix

Examples

Run this code
#Define alleles and frequencies
alleles <- 1:2
afreq <- c(0.5,0.5)
#Genotypes
gM <- c(1,1)
gC <- c(1,2)
#Mixture alleles
R <- c(1,2)
#Dropout and drop-in values
d <- 0.1
di <- 0.05
#No drop-in for first contributor
D <- list(c(0,0),c(d,d^2))
mixLikDrop(R=R,G=list(gM,gC),D=D,di=di,alleleNames=alleles,afreq=afreq)

Run the code above in your browser using DataLab