Skip to content

Commit 47fc1fd

Browse files
fixed AIC bug
1 parent 9520248 commit 47fc1fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/IndelCalling/CallMutations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def calculate_AICs(normal_alleles: AlleleSet, tumor_alleles: AlleleSet, noise_ta
6262

6363

6464
def passes_AICs(AIC_scores: AICs, LOR_ratio = 8.0) -> bool:
65-
return AIC_scores.tumor_tumor - AIC_scores.tumor_normal and AIC_scores.normal_normal - AIC_scores.normal_tumor < -LOR_ratio
65+
return (AIC_scores.tumor_tumor - AIC_scores.tumor_normal) < -LOR_ratio \
66+
and (AIC_scores.normal_normal - AIC_scores.normal_tumor) < -LOR_ratio
6667

6768

6869
def fisher_test(normal_alleles: AlleleSet, tumor_alleles: AlleleSet, fisher_calculator: Fisher) -> float:

0 commit comments

Comments
 (0)