hap_obs_prob: a simple helper function

View source: R/geno_err_models.R

hap_obs_probR Documentation

a simple helper function

Description

This will ultimately not be exported. It gives the probability that H2 is observed from a haplotype that is truly H1 given a super simple model of independent sequencing errors. This is not intended to be vectorized, at the moment.

Usage

hap_obs_prob(H1, H2, e)

Arguments

H1

the DNA bases at the SNPs in the first haplotype

H2

the DNA bases at the SNPs in the second haplotype

e

per snp error rates


eriqande/CKMRsim documentation built on Aug. 2, 2024, 7:23 a.m.