Skip to content

Commit

Permalink
chore(call): rm unneeded variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jun 12, 2024
1 parent 4b27ee6 commit ae28967
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions strkit/call/call_locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,12 +1302,10 @@ def call_locus(
top_ps = phase_sets.most_common(1)
if (haplotagged_reads_count >= min_hp_read_coverage and len(haplotags) == n_alleles and top_ps and
top_ps[0][1] >= min_hp_read_coverage):
hp_sorted = sorted(haplotags)
ps_id = top_ps[0][0]
call_res = call_alleles_with_haplotags(
params,
haplotags=hp_sorted,
ps_id=ps_id,
haplotags=sorted(haplotags),
ps_id=top_ps[0][0],
read_dict_items=read_dict_items,
rng=rng,
logger_=logger_,
Expand All @@ -1319,7 +1317,7 @@ def call_locus(
else:
logger_.debug(
f"{locus_log_str} - not enough HP/PS tags for incorporation; one of {haplotagged_reads_count} < "
f"{min_hp_read_coverage}, top PS {phase_sets.most_common(1)[0][1]} < {min_hp_read_coverage}, or "
f"{min_hp_read_coverage}, top PS {top_ps and top_ps[0][1]} < {min_hp_read_coverage}, or "
f"{len(haplotags)} != {n_alleles}")

if should_incorporate_snvs and assign_method != "hp":
Expand Down

0 comments on commit ae28967

Please sign in to comment.