Skip to content

Commit

Permalink
refactor scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
balajtimate committed Jan 5, 2024
1 parent bf7bea1 commit 5f8f62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htsinfer/get_library_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def _evaluate_mate_relationship(
self.mapping.library_type.relationship = (
StatesTypeRelationship.split_mates
)
elif self.library_source.file_1.short_name is not None \
and self.library_source.file_2.short_name is not None:
elif (self.library_source.file_1.short_name is not None
and self.library_source.file_2.short_name is not None):
self.mapping.library_type.relationship \
= StatesTypeRelationship.not_available
self.mapping.library_source = self.library_source
Expand Down
4 changes: 2 additions & 2 deletions htsinfer/get_read_orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def evaluate(self) -> ResultsOrientation:
self.mapping.tmp_dir = self.tmp_dir

if not self.mapping.mapped \
and self.library_source.file_1.short_name is not None \
or self.library_source.file_2.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):
self.mapping.evaluate()
else:
LOGGER.warning(
Expand Down

0 comments on commit 5f8f62d

Please sign in to comment.