From b90893054d0a350ef7a2557765bb6db526cf2885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Balajti?= Date: Wed, 17 Jan 2024 13:59:24 +0100 Subject: [PATCH] update debug messages --- htsinfer/get_library_type.py | 6 ++++-- htsinfer/get_read_orientation.py | 5 +---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/htsinfer/get_library_type.py b/htsinfer/get_library_type.py index 3dd562c..37dad4f 100644 --- a/htsinfer/get_library_type.py +++ b/htsinfer/get_library_type.py @@ -128,9 +128,10 @@ def _evaluate_mate_relationship( StatesTypeRelationship.split_mates ) elif ( - self.library_source.file_1.short_name is not None and + self.library_source.file_1.short_name is not None or self.library_source.file_2.short_name is not None ): + LOGGER.debug("Determining mate relationship by alignment...") self.mapping.library_type.relationship \ = StatesTypeRelationship.not_available self.mapping.library_source = self.library_source @@ -140,7 +141,8 @@ def _evaluate_mate_relationship( else: self.results.relationship = StatesTypeRelationship.not_available LOGGER.debug( - "Mate relationship cannot be determined." + "Sequence IDs and library source are not determined, " + "mate relationship cannot be inferred." ) def _align_mates(self): diff --git a/htsinfer/get_read_orientation.py b/htsinfer/get_read_orientation.py index b5cce78..4b36e8b 100644 --- a/htsinfer/get_read_orientation.py +++ b/htsinfer/get_read_orientation.py @@ -79,11 +79,8 @@ def evaluate(self) -> ResultsOrientation: self.library_source.file_1.short_name is not None or self.library_source.file_2.short_name is not None ): + LOGGER.debug("Determining read relationship by alignment...") self.mapping.evaluate() - else: - LOGGER.debug( - "Read orientation cannot be determined." - ) return self.process_alignments(star_dirs=self.mapping.star_dirs)