View source: R/HapDipKinship.R
hapdipking | R Documentation |
Estimate kinship between a haploid and a diploid individuals.
hapdipking(dip, hap, dipref = NA)
dip |
A vector encoding the genotype of a diploid individual (0,1,2). |
hap |
A vector encoding the genotype of a haploid individual (0,1). |
dipref |
A vector encoding the genotype of the reference diploid individual (0,1,2). Perform exKING-robust hap-dip kinship estimation 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)
hapdipking(anastomosis(meiosis(dip),hap),meiosis(dip))
### with reference(KIMGENS)
hapdipking(anastomosis(meiosis(dip),hap),meiosis(dip),dipref=dip)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.