Description Usage Arguments Value
Calculate the conditional expected genotype probability given the observed sequencing data D_{ij} from formula E(P(G_{ij}|D_{ij}))=ā_{g=0}^2 gP(G_{ij}=g|D_{ij}), where P(G_{ij}=g|D_{ij})=P(D_{ij}|G_{ij}=g)*P(G_{ij}=g)/P(D_{ij}). It is called from generate_seqdata
.
1 | calc_EG_general(M, p, rdv)
|
M |
genotype likelihoods with dimension of number of sample by 3 (double), each column is the genotype likelihood P(D_{ij}|G=AA, Aa\ or\ aa) for one locus; uses output from |
p |
genotype frequencies P(G=AA, Aa\ or\ aa) for each variant; output from function |
rdv |
read depth for all samples, should be a vector of integer with length equal to number of samples. |
a vector of containing conditional expected genotype probability. Length should be the same as rdv.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.