convertIBD | R Documentation |
Construct IBD pattern distribution from one of several alternative representations of multi-person condensed coefficients of identity
as.IBD(x='sibs', targets=NULL, ped=FALSE)
convertIBD(x='sibs', targets=NULL, ped=FALSE)
x |
A string, a vector of length 3 or 9, a list with components |
targets |
character vector of individual tags |
ped |
logical, should complete pedigree be added as an attribute to the output, if available? |
Possible formats for the input x
are:
certain verbal mnemonics; currently one of the following (or an unambiguous partial match): c('sibs','parent-child','half-sibs', 'cousins','half-cousins','second-cousins', 'double-first-cousins', 'quadruple-half-first-cousins', '3cousins-cyclic','3cousins-star','trio')
a vector of 3 kappas
a vector of 9 Deltas
a list with matrix or vector valued component patt
, with or without component pr
a list with 2 components, the first being a pedigree in the sense of the pedtools
package, the second a vector of target id's
a 3-column character matrix of individual tags, each row denoting a child/mother/triple - an alternative compact representation of a pedigree
IBD pattern distribution as a list with components pr
and patt
Peter Green (P.J.Green@bristol.ac.uk)
pedtools
, formats
data(test2data)
IBD<-convertIBD('parent-child')
IBD<-convertIBD(c(0.5,0.5,0.0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.