File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def run_prediction(args):
102
102
f"Output filename: { outfile_name_bigwig } "
103
103
)
104
104
105
- with Pool (int ( multiprocessing . cpu_count ()) ) as p :
105
+ with Pool (args . threads ) as p :
106
106
forward_strand_predictions = p .starmap (make_stranded_predictions ,
107
107
[(regions_pool ,
108
108
args .signal ,
Original file line number Diff line number Diff line change @@ -330,6 +330,12 @@ def get_parser():
330
330
help = "Skip calling peaks on prediction tracks"
331
331
)
332
332
333
+ predict_parser .add_argument ("--threads" ,
334
+ dest = "threads" ,
335
+ type = int ,
336
+ default = 24 ,
337
+ help = "Number of processes to run prediction in parallel. Default: 24"
338
+ )
333
339
#############################################
334
340
# Train parser
335
341
#############################################
You can’t perform that action at this time.
0 commit comments