From 2717771821821c31bbb34999072728d52b8ab85a Mon Sep 17 00:00:00 2001 From: Yasemin Bridges Date: Mon, 13 May 2024 11:46:20 +0100 Subject: [PATCH] check all instances are the same for the post-processed result before writing to TSV file --- src/pheval/post_processing/post_processing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pheval/post_processing/post_processing.py b/src/pheval/post_processing/post_processing.py index 691f2a9fd..435edef3f 100644 --- a/src/pheval/post_processing/post_processing.py +++ b/src/pheval/post_processing/post_processing.py @@ -375,11 +375,11 @@ def generate_pheval_result( info_log.warning(f"No results found for {tool_result_path.name}") return ranked_pheval_result = _create_pheval_result(pheval_result, sort_order_str) - if all(isinstance(result, RankedPhEvalGeneResult) for result in ranked_pheval_result): + if all(isinstance(result, PhEvalGeneResult) for result in pheval_result): _write_pheval_gene_result(ranked_pheval_result, output_dir, tool_result_path) - elif all(isinstance(result, RankedPhEvalVariantResult) for result in ranked_pheval_result): + elif all(isinstance(result, PhEvalVariantResult) for result in pheval_result): _write_pheval_variant_result(ranked_pheval_result, output_dir, tool_result_path) - elif all(isinstance(result, RankedPhEvalDiseaseResult) for result in ranked_pheval_result): + elif all(isinstance(result, PhEvalDiseaseResult) for result in pheval_result): _write_pheval_disease_result(ranked_pheval_result, output_dir, tool_result_path) else: raise ValueError("Results are not all of the same type.")