View source: R/genotypes_and_error.R
insert_C_l_matrices | R Documentation |
After you have gotten the X_l matrices using long_markers_to_X_l_list
you can add to the component for each locus the matrix C_l which has, as its (s,t)-th
entry, the probability that the genotype t is observed given that the true genotype
is s. I am going to a add a lot more parameters to this as soon as I figure out how to
pass in genotyping error models and their associated parameters. I would like to do that in
a way that easily let's people define their own functions. But for now it just
does the microhaplotype error model with default parameters. This creates and inserts the
C_l_true matrix and also the C_l matrix. C_l_true is the "true" genotyping error model results
and C_l is what gets applied in the likelihood calculations.
insert_C_l_matrices(
XL,
ge_mod_assumed,
ge_mod_true,
ge_mod_assumed_pars_list = NULL,
ge_mod_true_pars_list = NULL
)
XL |
a list of the loci like that created using |
ge_mod_assumed |
The genotyping error model assumed for the analysis. |
ge_mod_true |
The actual, "true" genotyping error model for the simulation. |
ge_mod_assumed_pars_list |
a named list of extra arguments (besides L) to be passed to the ge_mod_assumed function. Set it to NULL to use the default values for the genotyping error model. |
ge_mod_true_pars_list |
a named list of extra arguments (besides L) to be passed to the ge_mod_true function. Set to NULL to use defaults. |
example(long_markers_to_X_l_list, package = "CKMRsim")
mh_cl_example <- insert_C_l_matrices(
mh_example,
ge_mod_assumed = ge_model_microhap1,
ge_mod_true = ge_model_microhap1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.