run_hmm | R Documentation |
This function walks along each gamete and replaces the original observation with the inferred state. If the number of original observations is 0 or 1, the viterbi algorithm is not called, as there is no "path" to evaluate. If only one observation, we assign the one observation as the inferred state If no observations, we assign an inferred state of NA, such that the inferred state (NA) simply matches the original observations (which were also NA in this situation) This replaces any incorrect haplotype assignments (e.g., due to sequencing error).
run_hmm(dt, column_index, hmm)
dt |
Matrix of gametes with 0 and 1 |
column_index |
|
hmm |
the HMM that viterbi will be applied on |
original_obs Replaced observed haplotype with that assigned by the model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.