Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Jan 28, 2024
1 parent 503efe6 commit 42f011a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def get_benchmark_truth(wildcards):
def get_stratified_truth(suffix=""):
def inner(wildcards):
benchmark = config["variant-calls"][wildcards.callset]["benchmark"]
return (f"results/variants/{benchmark}.truth.cov-{{cov}}.vcf.gz{suffix}",)
return (f"results/variants/{benchmark}.truth.cov-{cov}.vcf.gz{suffix}",)

return inner

Expand All @@ -269,7 +269,7 @@ def get_confidence_regions(wildcards):

def get_test_regions(wildcards):
benchmark = config["variant-calls"][wildcards.callset]["benchmark"]
return f"resources/regions/{benchmark}/test-regions.cov-{{cov}}.bed"
return f"resources/regions/{benchmark}/test-regions.cov-{cov}.bed"


def get_rename_contig_file(wildcards):
Expand Down Expand Up @@ -323,7 +323,9 @@ def get_nonempty_coverages(wildcards):
def get_somatic_flag(wildcards):
benchmark = config["variant-calls"][wildcards.callset]["benchmark"]
return (
"--squash-ploidy" if genomes[benchmarks[benchmark]["genome"]].get("somatic") else ""
"--squash-ploidy"
if genomes[benchmarks[benchmark]["genome"]].get("somatic")
else ""
)


Expand Down

0 comments on commit 42f011a

Please sign in to comment.