get_bvibd | R Documentation |
Given an object swf
, which is the result of forward
simulation using the function sim_swf()
, walks backwards through the
ancestry and calculate the between host identity by descent. The IBD
calculation is based on Verity et. al 2020, Nat Comms, PMC7192906 and
assumes relatedness if there are any IBD among the haplotypes between hosts
at a given loci (i.e. a loci is considered to be in IBD if there is any between
host IBD among the strains, regardless of COI. This means that as COI increases,
IBD may be overestimated, which has been shown to be a conservative estimand).
get_bvibd(swf, host_index = NULL, haplo_index = NULL)
swf |
result of forwards simulation using the function |
host_index |
a vector of target hosts. Defaults to all hosts |
haplo_index |
a list of target haplotypes within the hosts specified by
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.