From 295fba7dd1d801920bbdafc165ca7e7054971cc6 Mon Sep 17 00:00:00 2001 From: Alex Kanitz Date: Tue, 31 May 2022 22:15:32 -0600 Subject: [PATCH] fix: get source and stats from both mates --- htsinfer/get_library_source.py | 2 +- htsinfer/get_library_stats.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htsinfer/get_library_source.py b/htsinfer/get_library_source.py index 49e2b2ba..92d357b4 100644 --- a/htsinfer/get_library_source.py +++ b/htsinfer/get_library_source.py @@ -96,7 +96,7 @@ def evaluate(self) -> ResultsSource: ) if self.paths[1] is not None: source.file_2 = self.get_source( - fastq=self.paths[0], + fastq=self.paths[1], index=index, ) return source diff --git a/htsinfer/get_library_stats.py b/htsinfer/get_library_stats.py index d294a6f7..301d850c 100644 --- a/htsinfer/get_library_stats.py +++ b/htsinfer/get_library_stats.py @@ -57,7 +57,7 @@ def evaluate(self) -> ResultsStats: LOGGER.info(f"Obtaining statistics for file: {self.paths[0]}") if self.paths[1] is not None: stats.file_2.read_length.min, stats.file_2.read_length.max = ( - self.fastq_get_min_max_read_length(fastq=self.paths[0]) + self.fastq_get_min_max_read_length(fastq=self.paths[1]) ) return stats