Skip to main content
. Author manuscript; available in PMC: 2016 Jul 24.
Published in final edited form as: Hum Hered. 2015 Jul 24;80(1):21–35. doi: 10.1159/000430841

Table 2.

Algorithm to sample an IBD graph on n individuals from SNP data

1 Initialize p2npop to the empty IBD graph.
2 Randomly permute the individuals and label them {A1 … An}
3 Sample from Q[p4(A1A2)|x(A1A2)] and add the trajectory to p2npop.
4 For 2 < kn
5  Randomly permute individuals {A1 … Ak−1} and label them {B1 … Bk−1}.
6  For 1 ≤ i < k
7   Sample from Q[p4(BiAk)p2npop,x(BiAk)], x(BiAk)] and add the trajectory to p2npop.
8  End for I
9 End for k
10 Return an IBD graph on n individuals, p2npop.