Skip to content

Commit

Permalink
First remove dups, then sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Oct 4, 2024
1 parent afd3e8b commit 99f5197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chanjo2/meta/handle_d4.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ def get_gene_overview_stats(
for interval in sql_intervals
]
interval_ids_coords = tuple(
set(sort_interval_ids_coords(interval_ids_coords))
sort_interval_ids_coords(set(interval_ids_coords))
) # removes duplicates and orders intervals by chromosome, start and stop
LOG.warning(interval_ids_coords)
transcripts_stats = {interval_id: [] for interval_id, _ in interval_ids_coords}

# create a temp bed file containing transcripts coordinates
Expand Down

0 comments on commit 99f5197

Please sign in to comment.