Skip to content

Commit c97318b

Browse files
committed
Fix build_index method to default threads to 0 instead of 2 for better control
1 parent 0b5cba9 commit c97318b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/hts/bam.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def initialize(file_name, mode = "r", index: nil, fai: nil, threads: nil,
9393
@start_position = tell
9494
end
9595

96-
def build_index(index_name = nil, min_shift: 0, threads: 2, verbose: true)
96+
def build_index(index_name = nil, min_shift: 0, verbose: true)
9797
check_closed
9898

99-
self.class.build_index(@file_name, index_name, min_shift, @nthreads || threads, verbose)
99+
self.class.build_index(@file_name, index_name, min_shift, @nthreads || 0, verbose)
100100
self # for method chaining
101101
end
102102

0 commit comments

Comments
 (0)