Skip to content

Commit

Permalink
bug fix Tajima
Browse files Browse the repository at this point in the history
  • Loading branch information
DeshanPerera committed Sep 17, 2024
1 parent c7a1299 commit 088cbcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cancer_Host.cu
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ void cancer_Host::calculate_Tajima(functions_library &functions,
for (int region = 0; region < num_Regions; region++)
{
float MAF = (float)per_Region[region] / N_float;
if (MAF != 0 || MAF != 1)
if (MAF != 0 && MAF != 1)
{
if (MAF > 0.5)
{
Expand Down
Binary file modified main
Binary file not shown.

0 comments on commit 088cbcc

Please sign in to comment.