From 577e6b1e556c784d67b39fb622ca86281382f398 Mon Sep 17 00:00:00 2001 From: Karan Jaisingh Date: Thu, 26 Sep 2024 11:58:25 -0400 Subject: [PATCH] Minor script update - use lowercase exact --- src/sv-pipeline/scripts/identify_duplicates.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sv-pipeline/scripts/identify_duplicates.py b/src/sv-pipeline/scripts/identify_duplicates.py index 7b03c0caa..1ca56ac5c 100644 --- a/src/sv-pipeline/scripts/identify_duplicates.py +++ b/src/sv-pipeline/scripts/identify_duplicates.py @@ -74,11 +74,10 @@ def process_buffers(exact_buffer, ins_buffer, counts, f_records): exact_matches = { key: [record for _, record in group] for key, group in groupby(sorted_buffer, key=lambda x: x[0]) } - for records in exact_matches.values(): if len(records) > 1: - counts['Exact'] += 1 - f_records.write(f"Exact\t{','.join(sorted(records))}\n") + counts['exact'] += 1 + f_records.write(f"exact\t{','.join(sorted(records))}\n") # Process insert matches for i in range(len(ins_buffer)):