|
|
(44 intermediate revisions by the same user not shown) |
Line 6: |
Line 6: |
| | colspan="2"| | | | colspan="2"| |
| <!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> | | <!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> |
| ==Notes from Meeting==
| |
| Consider a single lineage for now.
| |
|
| |
| <math>X_j</math> = frequency of "1" allele at SNP j in the pool (i.e. the true frequency of the 1 allele in the pool)
| |
|
| |
| *'''Data:'''
| |
| <math> (n_j^0, n_j^1) </math> = number of "0", "1" alleles at SNP j (<math> n_j = n_j^0 + n_j^1 </math>)
| |
|
| |
|
| |
| *'''Normal approximation'''
| |
| <math> n_j^1</math> ~ <math>Bin(n_j, X_j) \approx N(n_jX_j, n_jX_j(1-X_j))</math> Normal approximation to binomial
| |
|
| |
| <math> \frac{n_j^1}{n_j} \approx N(X_j, \frac{X_j(1-X_j)}{n_j}) </math>
| |
| The variance of this distribution results from error due to binomial sampling.
| |
|
| |
| To simplify, we just plug in <math>\hat{X_j} = \frac{n_j^1}{n_j}</math> for <math> X_j </math>
| |
|
| |
| <math> \implies \frac{n_j^1}{n_j} | X_j \approx N(X_j, \frac{\hat{X_j}(1-\hat{X_j})}{n_j}) </math>
| |
|
| |
| *'''notation'''
| |
|
| |
| <math>f_{i,k,j} = </math> frequency of reference allele in group i, replicate and SNP j.
| |
|
| |
| <math> \bar{f_{i,k}} = </math> vector of frequencies
| |
|
| |
| Without loss of generality, we assume that the putative selected site is site <math> j = 1 </math>
| |
|
| |
| * '''Model'''
| |
| <math> \bar{f_{i,k}} </math> ~ <math> MVN(\mu, \sum) </math>
| |
|
| |
| * '''Model at selected site'''
| |
| <math> log \frac{f_{i,k,1}}{1-f_{i,k,1}} = \mu + \beta g_i + \epsilon_{i,k} </math>
| |
|
| |
| * '''Model at all other sites'''
| |
| <math> (f_{i,k,2}, .... , f_{i,k,p}) | f_{i,k,1}</math> ~ <math> MVN(\bar{\mu}, \bar{\sum}) </math>
| |
|
| |
|
| |
| <!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> | | <!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> |
| |} | | |} |
|
| |
|
| __NOTOC__ | | __NOTOC__ |