View source: R/sim_assess_phasing.R
sim_assess_phasing | R Documentation |
This function compares the simulated truth diploid donor haplotypes to the rhapsodi predicted phased data, producing a named list of values for lhs (largest haplotype segment), ser (switch error rate), acc (accuracy), com (completeness)
sim_assess_phasing(true_donor_haps, pred_donor_haps, num_snps)
true_donor_haps |
a data frame of phased donor haplotypes from the generative model with column names of |
pred_donor_haps |
a tibble of phased donor haplotypes from rhapsodi with column names |
num_snps |
the number of SNPs, should be equal to the number of rows of |
assess_phasing a named list with values for acc
, com
, lhs
, & ser
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.