J. S. Linda and . Allen, An Introduction to Stochastic Processes with Applications to Biology, 2011.

B. Ashby and S. Gupta, Parasitic castration promotes coevolutionary cycling but also imposes a cost on sex, Evolution, vol.68, issue.8, pp.2234-2244, 2014.

M. Assaf and B. Meerson, WKB theory of large deviations in stochastic populations, J. Phys. A: Math. Theor, vol.50, p.263001, 2017.

M. A. Baranova, M. D. Logacheva, A. A. Penin, V. B. Seplyarskiy, Y. Y. Safonova et al., Extraordinary genetic diversity in a wood decay mushroom, Mol. Biol. Evol, vol.32, issue.10, pp.2775-2783, 2015.

J. Gareth, R. A. Baxter, A. J. Blythe, and . Mckane, Exact solution of the multi-allelic diffusion model, Mathematical biosciences, vol.209, pp.124-70, 2007.

S. Billiard, V. Castric, and X. Vekemans, A general model to explore complex dominance patterns in plant sporophytic self-incompatibility systems, Genetics, vol.175, issue.3, pp.1351-1369, 2007.
URL : https://hal.archives-ouvertes.fr/hal-00091822

S. Billiard, M. López-villavicencio, B. Devier, M. E. Hood, C. Fairhead et al., Having sex, yes, but with whom? Inferences from fungi on the evolution of anisogamy and mating types, Biological Reviews, vol.86, issue.2, pp.421-442, 2011.
URL : https://hal.archives-ouvertes.fr/hal-00609575

C. W. Birky, Uniparental inheritance of mitochondrial and chloroplast genes: mechanisms and evolution, Proc. Natl Acad. Sci, vol.92, pp.11331-11338, 1995.

G. Bloomfield, J. Skelton, A. Ivens, Y. Tanaka, and R. R. Kay, Sex determination in the social amoeba Dictyostelium discoideum, Science, vol.330, issue.6010, pp.1533-1536, 2010.

K. Bod'ová, T. Priklopil, D. L. Field, N. H. Barton, and M. Pickup, Evolutionary pathways for the generation of new self-incompatibility haplotypes in a nonself-recognition system, Genetics, vol.209, issue.3, pp.861-883, 2018.

G. Butler, The evolution of MAT: the ascomycetes, Sex in Fungi, pp.3-18, 2007.

G. Butler, C. Kenny, A. Fagan, C. Kurischko, C. Gaillardin et al., Evolution of the mat locus and its ho endonuclease in yeast species, Proc. Natl. Acad. Sci, vol.101, pp.1632-1637, 2004.

D. Charlesworth and B. Charlesworth, The evolution and breakdown of S-allele systems, Heredity, vol.43, pp.41-55, 1979.

A. G. Clark and T. Kao, Self-incompatibility: theoretical concepts and evolution, Genetic control of self-incompatibility and reproductive development in flowering plants, pp.220-242

, , 1994.

J. Clark and E. F. Haskins, Reproductive systems in the myxomycetes: a review, Mycosphere, vol.1, issue.4, pp.337-353, 2010.

G. W. Constable and H. Kokko, The rate of facultative sex governs the number of expected mating types in isogamous species, Nat. Ecol. Evol, vol.2, issue.7, pp.1168-1175, 2018.

J. L. Crosby, Self-incompatibility alleles in the population of Oenothera organensis, Evolution, vol.20, issue.4, pp.567-579, 1966.

P. Czuppon and D. W. Rogers, Evolution of mating types in finite populations: the precarious advantage of being rare. bioRxiv, 2019.
URL : https://hal.archives-ouvertes.fr/hal-02311340

F. P. Doerder, M. A. Gates, F. P. Eberhardt, and M. Arslanyolu, High frequency of sex and equal frequencies of mating types in natural populations of the ciliate Tetrahymena thermophila, Proc. Natl. Acad. Sci, vol.92, issue.19, pp.8715-8718, 1995.

R. A. Ennos and X. S. Hu, Estimating the number of sexual events per generation in a facultatively sexual haploid population, Heredity, 2018.

W. J. Ewens, On the problem of self-sterility alleles, Genetics, vol.50, pp.1433-1441, 1964.

C. E. Gervais, V. Castric, S. Ressayre, and A. Billiard, Origin and diversification dynamics of self-incompatibility haplotypes, Genetics, vol.188, issue.3, pp.625-636, 2011.

D. T. Gillespie, A general method for numerically simulating the stochastic time evolution of coupled chemical reactions, J. Comput. Phys, vol.22, pp.403-434, 1976.

U. Goodenough, H. Lin, and J. H. Lee, Sex determination in chlamydomonas, Semin. Cell. Dev. Biol, vol.18, issue.3, pp.350-361, 2007.

E. Haag, Why two sexes? Sex determination in multicellular organisms and protistan mating types, Seminars in Cell & Developmental Biology, vol.18, pp.348-349, 2007.

Z. Hadjivasiliou, Theoretical studies on the role and evolution of mating types and two sexes, 2014.

Z. Hadjivasiliou and A. Pomiankowski, Gamete signalling underlies the evolution of mating types and their number, Phil. Trans. R. Soc. B, vol.371, 2016.

Z. Hadjivasiliou and A. Pomiankowski, Evolution of the mating type locus with suppressed recombination. bioRxiv, p.518654, 2019.

Z. Hadjivasiliou, A. Pomiankowski, R. M. Seymour, and N. Lane, Selection for mitonuclear co-adaptation could favour the evolution of two sexes, Proceedings of the Royal Society B: Biological Sciences, vol.279, pp.1865-1872, 2012.

Z. Hadjivasiliou, N. Lane, R. M. Seymour, and A. Pomiankowski, Dynamics of mitochondrial inheritance in the evolution of binary mating types and two sexes, Proc. Biol. Sci, vol.280, p.20131920, 1769.

Z. Hadjivasiliou, Y. Iwasa, and A. Pomiankowski, Cell-cell signalling in sexual chemotaxis: a basis for gametic differentiation, mating types and sexes, J. R. Soc. Interface, vol.12, 2015.

Z. Hadjivasiliou, A. Pomiankowski, and B. Kuijper, The evolution of mating type switching, Evolution, vol.70, issue.7, pp.1569-1581, 2016.

T. Hamaji, P. J. Ferris, I. Nishii, Y. Nishimura, and H. Nozaki, Distribution of the sex-determining gene mid and molecular correspondence of mating types within the isogamous genus gonium (volvocales, chlorophyta), PLOS one, vol.8, p.64385, 2013.

M. Hartfield, S. I. Wright, and A. F. , Coalescence and linkage disequilibrium in facultatively sexual diploids, Genetics, vol.210, pp.683-701, 2018.

A. R. Hasan and R. W. Ness, The genomic landscape of recombination rate variation in Chlamydomonas reinhardtii reveals effects of linked selection. bioRxiv, 2018.

R. F. Hoekstra, On the asymmetry of sex: Evolution of mating types in isogamous populations, J. of Theor. Biol, vol.98, issue.3, pp.427-451, 1982.

R. F. Hoekstra, Y. Iwasa, and F. Weissing, The origin of isogamous sexual differentiation, Game equilibrium models, pp.155-180, 1991.

B. P. Nieuwenhuis and T. Y. James, The frequency of sex in fungi, Phil. Trans. R. Soc. B, vol.371, p.20150540, 1706.

B. P. Nieuwenhuis, S. Billiard, E. Vuilleumier, M. E. Petit, T. Hood et al., Evolution of uni-and bifactorial sexual compatibility systems in fungi, Heredity, vol.111, pp.445-455, 2013.
URL : https://hal.archives-ouvertes.fr/hal-01110818

B. P. Nieuwenhuis and S. Immler, The evolution of mating-type switching for reproductive assurance, Bioessays, vol.38, pp.1141-1149, 2016.

B. P. Nieuwenhuis, S. Tusso, P. Bjerling, J. Stångberg, J. B. Wolf et al., Repeated evolution of self-compatibility for reproductive assurance, Nat. Commun, vol.24, issue.9, p.1639, 2018.

T. Paixao, S. S. Phadke, R. B. Azevedo, and R. A. Zufall, Sex ratio evolution under probabilistic sex determination, Evolution, vol.65, issue.7, pp.2050-2060, 2011.

N. Perrin, What uses are mating types? The "developmental switch" model, Evolution, vol.66, issue.4, pp.947-956, 2012.

S. S. Phadke and R. A. Zufall, Rapid diversification of mating systems in ciliates, Biological Journal of the Linnean Society, vol.98, pp.187-197, 2009.

H. W. Power, On forces of selection in the evolution of mating types, Am. Nat, vol.110, issue.976, pp.937-944, 1976.

N. L. Prigoda, A. Nassuth, and B. K. Mable, Phenotypic and genotypic expression of selfincompatibility haplotypes in Arabidopsis lyrata suggests unique origin of alleles in different dominance classes, Molecular Biology and Evolution, vol.22, pp.1609-1620, 2005.

M. Raudaskoski and E. Kothe, Basidiomycete mating type genes and pheromone signaling, Eukaryotic Cell, vol.9, issue.6, pp.847-59, 2019.

A. Richman, Evolution of balanced genetic polymorphism, Molecular Ecology, vol.9, issue.12, pp.1953-1963, 2000.

H. Sekimoto, Sexual reproduction and sex determination in green algae, J. Plant Res, vol.130, pp.423-431, 2017.

M. Slatkin and C. A. Muirhead, Overdominant alleles in a population of variable size, Genetics, vol.152, issue.2, pp.775-781, 1999.

W. J. Snell and U. W. Goodenough, Flagellar adhesion, flagellar-generated signaling, and gamete fusion during mating, The Chlamydomonas Sourcebook, vol.3, pp.369-394, 2009.

O. D. Solberg, S. J. Mack, A. K. Lancaster, R. M. Single, Y. Tsai et al., Balancing selection and heterogeneity across the classical human leukocyte antigen loci: A meta-analytic review of 497 population studies, Human Immunology, vol.69, issue.7, pp.443-464, 2008.

K. F. Thompson and J. P. Taylor, Non-linear dominance relationships between S alleles, Heredity, vol.21, pp.345-362, 1966.

I. J. Tsai, D. Bensasson, A. Burt, and V. Koufopanou, Population genomics of the wild yeast Saccharomyces paradoxus: Quantifying the life cycle, Proc. Natl. Acad. Sci, vol.105, issue.12, pp.4957-4962, 2008.

M. K. Uyenoyama, Genealogical structure among alleles regulating self-incompatibility in natural populations of flowering plants, Genetics, vol.147, issue.3, pp.1389-1400, 1997.

M. Vallejo-marín and M. K. Uyenoyama, On the Evolutionary Modification of SelfIncompatibility: Implications of Partial Clonality for Allelic Diversity and Genealogical Structure, pp.53-71, 2008.

V. Vítor, F. P. Vasconcelos, F. C. Santos, J. M. Santos, and . Pacheco, Stochastic dynamics through hierarchically embedded markov chains, Phys. Rev, Lett, vol.118, p.58301, 2017.

X. Vekemans and M. Slatkin, Gene and allelic genealogies at a gametophytic self-incompatibility locus, Genetics, vol.137, issue.4, pp.1157-1165, 1994.

A. Waite and P. J. Harrison, Role of sinking and ascent during sexual reproduction in the marine diatom Ditylum brightwellii, Mar. Ecol. Prog. Ser, vol.87, pp.113-122, 1992.

Y. Daniel, S. Wang, S. B. Kumar, and . Hedges, Divergence time estimates for the early history of animal phyla and the origin of plants, animals and fungi, Proceedings of the Royal Society of London. Series B: Biological Sciences, vol.266, pp.163-171, 1415.

S. Wright, The distribution of self-sterility alleles in populations, Genetics, vol.24, pp.538-552, 1939.

S. Wright, On the number of self-incompatibility alleles maintained in equilibrium by a given mutation rate in a population of a given size: a re-examination, Biometrics, vol.16, pp.61-85, 1960.

S. Wright, The distribution of self-incompatibility alleles in populations, Evolution, vol.18, pp.609-619, 1964.

S. Yokoyama and L. E. Hetherington, The expected number of self-incompatibility alleles in finite plant populations, Heredity, vol.48, pp.299-303, 1982.

S. Yokoyama and M. Nei, where we have again absorbed any terms independent of M into the normalization factor M. We can see that Eq. (S37) matches the full expression in Eq. (S35) very well, Genetics, vol.91, pp.609-626, 1979.

, Using the formula for the probability of extinction in a birth-death process

J. S. Linda and . Allen, An Introduction to Stochastic Processes with Applications to Biology, 2011.

, Handbook of Mathematical Functions: with Formulas, Graphs, and Mathematical Tables, 1965.

J. Gareth, R. A. Baxter, A. J. Blythe, and . Mckane, Exact solution of the multi-allelic diffusion model, Mathematical biosciences, vol.209, pp.124-70, 2007.

G. W. Constable and H. Kokko, The rate of facultative sex governs the number of expected mating types in isogamous species, Nat. Ecol. Evol, vol.2, issue.7, pp.1168-1175, 2018.

N. Stewart, T. G. Ethier, and . Kurtz, Markov processes: characterization and convergence. Wiley series in probability and mathematical statistics, 1986.

R. A. Horn and C. R. Johnson, Topics in Matrix Analysis, 1991.

P. Haccou, P. Jagers, and V. A. Vatutin, Branching Processes: Variation, Growth, and Extinction of Populations. Cambridge Studies in Adaptive Dynamics, 2005.

Y. Iwasa and A. Sasaki, Evolution of the number of sexes, Evolution, vol.41, issue.1, pp.49-65, 1987.

. Ng-van-kampen, Stochastic processes in physics and chemistry, 2007.

A. J. Mckane, T. Biancalani, and T. Rogers, Stochastic pattern formation and spontaneous polarisation: the linear noise approximation and beyond, Bull. Math. Biol, vol.76, pp.895-921, 2014.