Skip to content

Commit

Permalink
AE < P
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Feb 12, 2024
1 parent 9ff9718 commit c6b9885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/admixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ double Admixture::runOptimalWithBigAss(int ind, const std::unique_ptr<BigAss> &
{
c12 = c1 * C + c2;
double xz = cl(c12, s);
if(AE(c1, s) < magicTol || AE(c2, s) < magicTol) xz = 0.0;
if(AE(c12, s) < magicTol) xz = 0.0;
double zy = Hz(c1) * Hz(c2);
tmp += xz * zy;
}
Expand Down Expand Up @@ -92,7 +92,7 @@ double Admixture::runNativeWithBigAss(int ind, const std::unique_ptr<BigAss> & g
{
c12 = c1 * C + c2;
double xz = cl(c12, s);
if(AE(c1, s) < magicTol || AE(c2, s) < magicTol) xz = 0.0;
if(AE(c12, s) < magicTol) xz = 0.0;
for(k1 = 0; k1 < K; k1++)
{
for(k2 = 0; k2 < K; k2++)
Expand Down

0 comments on commit c6b9885

Please sign in to comment.