Skip to content

Commit

Permalink
Fail sample for small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Dec 10, 2024
1 parent 0888342 commit 06400d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ediacara/Comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 06400d7

Please sign in to comment.