We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d17878 commit 62125eaCopy full SHA for 62125ea
2 files changed
maxatac/analyses/predict.py
@@ -102,7 +102,7 @@ def run_prediction(args):
102
f"Output filename: {outfile_name_bigwig}"
103
)
104
105
- with Pool(int(multiprocessing.cpu_count())) as p:
+ with Pool(args.threads) as p:
106
forward_strand_predictions = p.starmap(make_stranded_predictions,
107
[(regions_pool,
108
args.signal,
maxatac/utilities/parser.py
@@ -330,6 +330,12 @@ def get_parser():
330
help="Skip calling peaks on prediction tracks"
331
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
+ )
339
#############################################
340
# Train parser
341
0 commit comments