View source: R/HapDipKinship.R
dipking | R Documentation |
Estimate kinship for a pair of diploid individuals.
dipking(dip1, dip2, dipref = NA)
dip1 , dip2 |
Vectors encoding the genotype of diploid individuals (0,1,2). |
dipref |
A vector encoding the genotype of the reference diploid individual (0,1,2). Perform exKING-robust if none provided. |
##Calculate kinship of a pair of full siblings
dip<-rbinom(1000,2,0.5)
hap<-rbinom(1000,1,0.5)
### without reference(exKING-robust)
dipking(anastomosis(meiosis(dip),hap),anastomosis(meiosis(dip),hap1))
### with reference(KIMGENS)
dipking(anastomosis(meiosis(dip),hap),anastomosis(meiosis(dip),hap1),dipref=dip1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.