Skip to content

Commit

Permalink
fix: get source and stats from both mates
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed Jun 1, 2022
1 parent b1b4e54 commit 295fba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htsinfer/get_library_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion htsinfer/get_library_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 295fba7

Please sign in to comment.