Skip to content

Commit

Permalink
perf(call): use read_extra_entry cache var for RDE access
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 23, 2024
1 parent eff9d06 commit a9d3e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions strkit/call/call_locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,10 +1328,10 @@ def get_read_length_partition_mean(p_idx: int) -> float:
cigar_first_op = cigar_tuples[0]
cigar_last_op = cigar_tuples[-1]

read_dict_extra[rn]["sig_clip_left"] = (
read_extra_entry["sig_clip_left"] = (
cigar_first_op[0] in (4, 5) and cigar_first_op[1] >= significant_clip_threshold)
read_dict_extra[rn]["sig_clip_right"] = (
cigar_last_op[0] in (4, 5) and cigar_last_op[1] >= significant_clip_threshold)
read_extra_entry["sig_clip_right"] = (
cigar_last_op[0] in (4, 5) and cigar_last_op[1] >= significant_clip_threshold)

# Cache aligned pairs, since it takes a lot of time to extract, and we use it for calculate_useful_snvs
read_q_coords[rn] = q_coords
Expand Down

0 comments on commit a9d3e15

Please sign in to comment.