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)