Description Usage Arguments Value
This function calculates a likelihood matrix P(D|G) given a vector of error rates and a vector of sequence reads, where D is the sequencing data and G is the true genotype. It uses function calc_psingle
to calculate the likelihood for each read given one possible genotype (AA, Aa or aa).
It is called from function generate_seqdata
.
1 | calc_pobs_ndepth(Error, vect_row_reads, ndepth = 1)
|
Error |
vector of sequencing error rates. Similarly as error in the function |
vect_row_reads |
row vector of sequence reads consisting of 'A','G','T' or 'C', similar as output from function |
ndepth |
integer, read depth, should have value the same as length of error or length of vect_row_reads. |
a matrix with 3 columns representing P(read|AA), P(read|Aa) and P(read|aa), where row numbers equal to ndepth.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.