diff --git a/compare_benchmark_performance/compare_accuracy.py b/compare_benchmark_performance/compare_accuracy.py index fe91bb70b1fb308b5e19fc94daac4af2bcfeb39d..c9d0978b2ca59bda5086476dffdfbbb6e70983f5 100644 --- a/compare_benchmark_performance/compare_accuracy.py +++ b/compare_benchmark_performance/compare_accuracy.py @@ -68,7 +68,7 @@ def parse_sequencing_summary(file_path, ground_truth): 1 if x.find(target_id) == 0 else 0) - y_pred = df['alignment_genome'].apply(lambda x: 0 if x == '*' else 1) + y_pred = df['alignment_identity'].apply(lambda x: 0 if x < 0.95 else 1) f1 = f1_score(y_true, y_pred) accuracy = accuracy_score(y_true, y_pred) cm = confusion_matrix(y_true, y_pred)