View source: R/inheritance_space.R
inheritance_space | R Documentation |
The inheritance_space
function determines the space of IBD vectors for a pedigree.
This is mostly for internal use but may be interesting by itself.
inheritance_space(pedigree, ids, states = "ibd", exploit_symmetries = TRUE)
pedigree |
Pedigree in |
ids |
Ids for which IBD is observed. Default is |
states |
One of |
exploit_symmetries |
Should symmetries be used to reduce to state space?
This can be set to |
Object of class inheritance_space
.
# set up inheritance space for half sib pedigree
i <- inheritance_space(pedigree = pedtools::halfSibPed())
# since there are 2 non-founders, there are 2^4 IBD vectors
# but only 2 distinct states are considered because of symmetries
i
# pry into the internals to see individual pedigree transmissions
i$transmissions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.