Skip to content

Commit

Permalink
2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tdayris committed Jan 31, 2024
1 parent 7748cc8 commit 7d36871
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.0.3

## Fix

* Type error on missing effective genome size

# 2.0.2

## Features
Expand Down
6 changes: 3 additions & 3 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get_effective_genome_size(

def get_read_length(
wildcards: snakemake.io.Wildcards, samples: pandas.DataFrame = samples
) -> str:
) -> int:
"""
Return read length
Expand All @@ -161,10 +161,10 @@ def get_read_length(
wildcards (snakemake.io.Wildcards): Required for snakemake unpacking function
samples (pandas.DataFrame) : Samples description and their file paths
Return (str): Read length (default "100")
Return (int): Read length (default 100)
"""
sample_data: dict[str, str | None] = get_sample_information(wildcards, samples)
return str(sample_data.get("read_length", 100))
return int(sample_data.get("read_length", 100))


def get_blacklist(
Expand Down

0 comments on commit 7d36871

Please sign in to comment.