Skip to content

Commit af3a405

Browse files
committed
limit bgzipreader
1 parent 0101b49 commit af3a405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meteor/variantcalling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def execute(self) -> None:
453453
logging.info("Run freebayes")
454454
startfreebayes = perf_counter()
455455
with reference_file.open("rb") as ref_fh:
456-
with bgzip.BGZipReader(ref_fh) as reader:
456+
with bgzip.BGZipReader(ref_fh, num_threads=self.meteor.threads) as reader:
457457
decompressed_reference = reader.read()
458458
with NamedTemporaryFile(suffix=".fasta", delete=False) as temp_ref_file:
459459
temp_ref_file.write(decompressed_reference)

0 commit comments

Comments
 (0)