View source: R/HapDipKinship.R
hapking | R Documentation |
Estimate kinship for a pair of haploid individuals.
hapking(hap1, hap2, dipref)
hap1 , hap2 |
Vectors encoding the genotype of haploid individuals (0,1). |
dipref |
A vector encoding the genotype of the reference diploid individual (0,1,2). Required! |
##Calculate kinship of a pair of full siblings
dip<-rbinom(1000,2,0.5)
### No exKING-robust
hapking(meiosis(dip),meiosis(dip),dipref=dip)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.