Skip to content

Commit

Permalink
Minor script update - use lowercase exact
Browse files Browse the repository at this point in the history
  • Loading branch information
kjaisingh committed Sep 26, 2024
1 parent 3fb16a4 commit 577e6b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sv-pipeline/scripts/identify_duplicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 577e6b1

Please sign in to comment.