Paralog diversity

Following Innan (Genetics 2003 163:803-810), these statistics are specifically designed to compute nucleotide diversity for each paralog in a multigene family (πw), as well as between-paralog divergence for all pairs (πb). They are availabled from the function stats.paralog_pi().

For a given paralog, we have:

πw=Li2ni(ni1)ki

with L the number of sites, ni the number of exploitable samples for this paralog at site i and ki the number of pairwise differences at this site.

And for a given pair of paralogs:

πb=Lidinainbi

with di the number of differences between the two paralogs and nai and nbi the respective numbers of exploitable samples for the two paralogs at site i.