Last chance! 50% off unlimited learning
Sale ends in
The genetic index of familality is defined as the mean kinship between
all pairs of individuals in a set multiplied by 100,000. Formally, it
is defined as
The scaling is purely for convenience of presentation.
gif(data,gifset)
the trio data of a pedigree
a subgroup of pedigree members
The returned value is a list containing:
the genetic index of familiarity
Gholami K, Thomas A (1994) A linear time algorithm for calculation of multiple pairwise kinship coefficients and genetic index of familiality. Comp Biomed Res 27:342-350
# NOT RUN {
test<-c(
5, 0, 0,
1, 0, 0,
9, 5, 1,
6, 0, 0,
10, 9, 6,
15, 9, 6,
21, 10, 15,
3, 0, 0,
18, 3, 15,
23, 21, 18,
2, 0, 0,
4, 0, 0,
7, 0, 0,
8, 4, 7,
11, 5, 8,
12, 9, 6,
13, 9, 6,
14, 5, 8,
16, 14, 6,
17, 10, 2,
19, 9, 11,
20, 10, 13,
22, 21, 20)
test<-matrix(test,ncol=3,byrow=TRUE)
gif(test,gifset=c(20,21,22))
# all individuals
gif(test,gifset=1:23)
# }
Run the code above in your browser using DataLab