Skip to content

Commit

Permalink
update debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
balajtimate committed Jan 17, 2024
1 parent 31af8ec commit b908930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions htsinfer/get_library_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down
5 changes: 1 addition & 4 deletions htsinfer/get_read_orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b908930

Please sign in to comment.