calc_EM: Function to use EM algorithm to estimate the genotype...

Description Usage Arguments Value

Description

Given a matrix (M) with dimension number of sample by 3 consisting of genotype likelihoods for each individual, this function uses the EM algorithm to estimate genotype frequencies. It returns a vector with three decimals to stands for probability of 0, 1 or 2 minor alleles in the whole sample

Usage

1

Arguments

M

matrix of genotype likelihoods derived from Phred-scale likelihood in VCF input for one variant.

Value

a vector with three decimals to stands for probability of 0, 1 or 2 minor alleles.


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.