Skip to content

Commit

Permalink
limit bgzipreader
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Sep 3, 2024
1 parent 0101b49 commit af3a405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meteor/variantcalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def execute(self) -> None:
logging.info("Run freebayes")
startfreebayes = perf_counter()
with reference_file.open("rb") as ref_fh:
with bgzip.BGZipReader(ref_fh) as reader:
with bgzip.BGZipReader(ref_fh, num_threads=self.meteor.threads) as reader:
decompressed_reference = reader.read()
with NamedTemporaryFile(suffix=".fasta", delete=False) as temp_ref_file:
temp_ref_file.write(decompressed_reference)
Expand Down

0 comments on commit af3a405

Please sign in to comment.