Description Usage Arguments Value
This function uses the formula P(D=g|G=G_1G_2)=1/2*P(D=g|G_1)+1/2*P(D=g|G_2) and p(D=g|G_1=g)=1-e,p(D=other\ call|G_1=g)=e/3
to compute the genotype likelihood P(D=g|G=G_1G_2,e), more details are in Appendix B of the paper. It is called from functions calc_pobs_ndepth
and calc_Mr
.
1 | calc_psingle(sing_read, A1, A2, error)
|
sing_read |
single read, e.g. A. |
A1 |
allele 1 in the true genotype, e.g. if G_1G_2=AC then A1='A' |
A2 |
allele 2 in the true genotype, e.g. A2='C' |
error |
sequencing error, decimal with value between 0 and 1. |
likelihood of observing sing_read given genotype (A1A2) and error rate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.