Skip to content

Commit

Permalink
Merge branch 'align_lrhq' into 'master'
Browse files Browse the repository at this point in the history
Align lrhq

See merge request machine-learning/bonito!182
  • Loading branch information
iiSeymour committed May 20, 2024
2 parents e24537a + c15327d commit 37a0557
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion bonito/aligner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Bonito Aligner
"""

from threading import Thread
from functools import partial
from mappy import Aligner, ThreadBuffer
Expand Down
3 changes: 2 additions & 1 deletion bonito/cli/basecaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def main(args):

if args.reference:
sys.stderr.write("> loading reference\n")
aligner = Aligner(args.reference, preset='map-ont', best_n=1)
aligner = Aligner(args.reference, preset=args.mm2_preset)
if not aligner:
sys.stderr.write("> failed to load/build index\n")
exit(1)
Expand Down Expand Up @@ -215,5 +215,6 @@ def argparser():
parser.add_argument("--min-qscore", default=0, type=int)
parser.add_argument("--min-accuracy-save-ctc", default=0.99, type=float)
parser.add_argument("--alignment-threads", default=8, type=int)
parser.add_argument("--mm2-preset", default='lr:hq', type=str)
parser.add_argument('-v', '--verbose', action='count', default=0)
return parser
3 changes: 2 additions & 1 deletion bonito/cli/duplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def main(args):

if args.reference:
sys.stderr.write("> loading reference\n")
aligner = Aligner(args.reference, preset='map-ont', best_n=1)
aligner = Aligner(args.reference, preset=args.mm2_preset)
if not aligner:
sys.stderr.write("> failed to load/build index\n")
exit(1)
Expand Down Expand Up @@ -393,4 +393,5 @@ def argparser():
parser.add_argument("--no-header", action="store_true") # skip-header?
parser.add_argument("--threads", default=8, type=int)
parser.add_argument("--alignment-threads", default=8, type=int)
parser.add_argument("--mm2-preset", default='lr:hq', type=str)
return parser

0 comments on commit 37a0557

Please sign in to comment.