From 06400d7aca7b6cfcb344c975725bf21fd7a471cb Mon Sep 17 00:00:00 2001 From: Peter Vegh Date: Tue, 10 Dec 2024 16:36:58 +0000 Subject: [PATCH] Fail sample for small errors --- ediacara/Comparator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ediacara/Comparator.py b/ediacara/Comparator.py index e8ffb9c..16bd76c 100644 --- a/ediacara/Comparator.py +++ b/ediacara/Comparator.py @@ -729,6 +729,11 @@ def perform_comparison(self, assembly_path=None, vcf_path=None): self.vcf_table = self.create_vcf_table(vcf_path=vcf_path) # plt.close("all") + # Any error should fail the sample: + if self.vcf_table["T"].sum() > 0: + self.has_errors = True + self.has_small_diff = True + # Prepare error text: # This has to be defined after all checks performed: self.error_dict = {