From 195a42fbe6020e86051615c696997a428065c84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Balajti?= Date: Tue, 21 Nov 2023 16:45:24 +0100 Subject: [PATCH 1/2] fix: statistics from second mate #151 --- htsinfer/get_library_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htsinfer/get_library_stats.py b/htsinfer/get_library_stats.py index ff2bc57b..6413586f 100644 --- a/htsinfer/get_library_stats.py +++ b/htsinfer/get_library_stats.py @@ -60,14 +60,14 @@ def evaluate(self) -> ResultsStats: self.fastq_get_stats_read_length(fastq=self.paths[0]) ) # process file 2 - LOGGER.info(f"Obtaining statistics for file: {self.paths[0]}") + LOGGER.info(f"Obtaining statistics for file: {self.paths[1]}") if self.paths[1] is not None: (stats.file_2.read_length.min, stats.file_2.read_length.max, stats.file_2.read_length.mean, stats.file_2.read_length.median, stats.file_2.read_length.mode) = ( - self.fastq_get_stats_read_length(fastq=self.paths[0]) + self.fastq_get_stats_read_length(fastq=self.paths[1]) ) return stats From fccce2b0b15f9ca279e51e4f1bfe56ac74e05b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Balajti?= Date: Fri, 1 Dec 2023 16:46:04 +0100 Subject: [PATCH 2/2] fix: report median as int --- htsinfer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsinfer/models.py b/htsinfer/models.py index 8db42f6f..6b8c2f95 100644 --- a/htsinfer/models.py +++ b/htsinfer/models.py @@ -95,7 +95,7 @@ class ReadLength(BaseModel): min: Optional[int] = None max: Optional[int] = None mean: Optional[float] = None - median: Optional[float] = None + median: Optional[int] = None mode: Optional[int] = None