powered by
Calculates the total number of alleles that are shared by two profiles. If the two profiles in question are indeed relatives then the matching alleles may be identical by descent, or by random chance alone, hence identity by state.
IBS(prof1, prof2, nLoci = length(prof1)/2, bPrint = FALSE)
An integer between 0 and 2*nLoci representing the total number of alleles that match in the two profiles.
A matrix consisting of 2 columns and nLoci rows. Each entry in the matrix is the (coded) allele held by the individual.
See prof1
prof1
The number of loci in the profiles. Specifying this value speeds up computation enormously.
If true then the result is printed locus by locus. This feature exists primarily for debugging purposes.
James M. Curran
data(fbiCaucs) P1 = randomProfile(fbiCaucs) C1 = randomChild(P1, fbiCaucs) IBS(P1, C1) IBS(P1, C1, bPrint = TRUE)
Run the code above in your browser using DataLab