Skip to content

Commit

Permalink
fix: remove repeated code
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaStoecker committed Dec 12, 2024
1 parent 313bad5 commit 6bb7766
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_plot_cov_labels(): # TODO check if ever used anywhere
def label(name):
lower, upper = get_cov_interval(name)
if upper:
return f"{lower}-{upper - 1}"
return f"{lower}-{upper-1}"
return f"≥{lower}"

return {name: label(name) for name in low_coverages}
Expand Down Expand Up @@ -599,12 +599,7 @@ def get_collect_fp_fn_input(wildcards):


def get_collect_fp_fn_labels(wildcards):
callsets = get_genome_callsets(wildcards.genome)
callsets = [
callset
for callset in callsets
if wildcards.cov in get_coverages_of_callset(callset)
]
callsets = get_collect_fp_fn_callsets(wildcards)
return get_callset_label_entries(callsets)


Expand Down

0 comments on commit 6bb7766

Please sign in to comment.