 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.popgen.dk/angsd/index.php?action=history&amp;feed=atom&amp;title=Majorminor</id>
	<title>Majorminor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.popgen.dk/angsd/index.php?action=history&amp;feed=atom&amp;title=Majorminor"/>
	<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php?title=Majorminor&amp;action=history"/>
	<updated>2026-04-08T05:11:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://www.popgen.dk/angsd/index.php?title=Majorminor&amp;diff=73&amp;oldid=prev</id>
		<title>Albrecht: Created page with &quot;Assuming that the considered site is diallelic, we infer those two alleles using the genotype likelihoods. Let &lt;math&gt;\{M,m\}&lt;/math&gt; denote the two possible alleles at the dial...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php?title=Majorminor&amp;diff=73&amp;oldid=prev"/>
		<updated>2012-06-14T19:41:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Assuming that the considered site is diallelic, we infer those two alleles using the genotype likelihoods. Let &amp;lt;math&amp;gt;\{M,m\}&amp;lt;/math&amp;gt; denote the two possible alleles at the dial...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Assuming that the considered site is diallelic, we infer those two alleles using the genotype likelihoods. Let &amp;lt;math&amp;gt;\{M,m\}&amp;lt;/math&amp;gt; denote the two possible alleles at the diallelic site, then the maximum likelihood estimate of this pair is found using the likelihood function&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
  P(D|\{m,M\}) =   \prod_i P(D_i|\{m,M\}) &lt;br /&gt;
 =\prod_i \sum_{A_1,A_2 \in \{m,M\}} P(D_i|G=A_1A_2)p(G=A_1A_2|\{m,M\}),&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;P(D_i|G=A_1A_2)&amp;lt;/math&amp;gt; is the genotype likelihood. We then assume that the two alleles within an individual are independent and randomly drawn from the set &amp;lt;math&amp;gt;\{m,M\}&amp;lt;/math&amp;gt; with equal probability, ignoring the fact that the two alleles at a diallelic site are not observed equally frequent. This gives us &amp;lt;math&amp;gt;p(G=A_1A_2|\{m,M\})=1/4&amp;lt;/math&amp;gt; for all four possible combinations of &amp;lt;math&amp;gt;A_1,A_2 \in \{m,M\}&amp;lt;/math&amp;gt;. Therefore we estimate the two possible alleles at the diallelic site by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
argmax_{\{m,M\}}\prod_i \sum_{A_1,A_2 \in \{m,M\}} P(D_i|G=A_1A_2).&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To infer which of these two alleles is the minor allele, we estimate the allele frequencies (only one iteration of the EM algorithm is needed if the starting point is frequencies of 0.5).&lt;/div&gt;</summary>
		<author><name>Albrecht</name></author>
	</entry>
</feed>