sim_find_mgr_from_cov: This function computes the missing genotype rate given the...

View source: R/sim_find_mgr_from_cov.R

sim_find_mgr_from_covR Documentation

This function computes the missing genotype rate given the coverage

Description

This function computes the missing genotype rate of the simulation given the desired coverage by using the poisson density function parameterized by x = 0 and lambda equal to the coverage metric to return the probability of the density function, or the missing genotype rate Note that the function checks to assure that the coverage is greater than 0

Usage

sim_find_mgr_from_cov(coverage)

Arguments

coverage

a numeric, must be greater than 0. The desired coverage of sequencing (e.g. 0.01x, 0.1x, 1.204x, etc)

Value

missing_genotype_rate a numeric, the corresponding missing genotype rate for the given coverage, < 1


mccoy-lab/rhapsodi documentation built on July 27, 2022, 3:56 a.m.