View source: R/sim_assess_gam_imputation.R
sim_assess_gam_imputation | R Documentation |
This function compares the simulated full truth gamete data to the rhapsodi predicted filled gamete data, producing a named list with vectors for lhs (largest haplotype segment), ser (switch error rate), acc (accuracy), com (completeness)
sim_assess_gam_imputation(true_gam, pred_gam, num_snps, num_gametes)
true_gam |
a matrix, from the output of the generative model, the true/full gamete genotypes where the rows are the SNPs and the columns are the gametes (except for the first column which is the SNP genomic positions) |
pred_gam |
a matrix, from the output of rhapsodi, with the predicted/filled gamete genotypes where the rows are the SNPs and the columns are the gametes |
num_snps |
the number of snps, should be equal to the number of rows of |
num_gametes |
the number of gametes, should be equal to the number of cols - 1 of |
assess_gam a named list with vectors for acc
, com
, lhs
, & ser
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.