Table A.1.
Class name | Class description | Input | Output | Class members |
---|---|---|---|---|
Main | Computes paternity index for simple paternity case | N/A | N/A | Founder ( pf, m), Unobserved Founder ( af), Query ( tf), Child ( c), Allele Counter ( ac_pf, ac_m) |
Founder | Represents the genotype of an observed individual | None | p m | Allele ( pin, min), Genotype ( gt) |
Allele | Represents one allele | None | allele | None |
Genotype | Obtains the paternal and maternal alleles of an individual and converts them observable alleles by assigning max and min | p m | gtmin gtmax | None |
Unobserved founder | Represents the genotypes of an unobserved individual assigning allele frequencies according to Eq. (3) |
n_A1 n_A2
n_A3 n_A4 |
p m | Parameters ( par), Counts ( c), Genotype ( gt) |
Parameters | Maintains the values of n, pi, and θ needed to calculate allele frequencies for unobserved founders | None | theta p1 p2 p3 p4 n | None |
Counts | Ensures that the allele counts do not add up to a number larger than the total number of observed alleles |
n_A1_in n_A2_in
n_A3_in n_A4_in |
n_A1_out n_A2_out
n_A3_out n_A4_out |
None |
Query | Assigns alleles to true father, depending on value of pf=tf? | pfp pfm afp afm | tfp tfm pf=tf? | None |
Child | Assigns alleles to child in line with maternal and paternal genotypes | fp fm mp mm | p m | Meiosis ( fmeiosis, mmeiosis), Genotype ( gt) |
Meiosis | Mimics Mendelian inheritance | p m | c | None |
Allele counter | Updates allele counting nodes by counting observed genes | a1 a2 |
n_A1 n_A2
n_A3 n_A4 |
Update Counts ( update×2) |
Update counts | Increases counts according to allele ( a) |
n_A1 n_A2 n_A3
n_A4 a |
n_A1_out n_A2_out
n_A3_out n_A4_out |
None |