Skip to content

Commit

Permalink
Allow percent id on burst.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhillmann committed Sep 8, 2017
1 parent 3e406c8 commit 08b7d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shogun/aligners/burst_aligner_best.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def align(self, infile, outdir, align=True):

#TODO: pie chart and coverage
if align:
proc, out, err = burst_align_best(infile, self.outfile, self.database, accelerator=self.accelerator, shell=self.shell, threads=self.threads)
proc, out, err = burst_align_best(infile, self.outfile, self.database, accelerator=self.accelerator, shell=self.shell, threads=self.threads, percent_id=self.percent_id)
else:
proc, out, err = (None, None, None)
if self.post_align:
Expand Down
3 changes: 2 additions & 1 deletion shogun/wrappers/burst_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from shogun.utils import run_command


def burst_align_best(input_fp, output_fp, burst_db_prefix, accelerator=False, threads=1, shell=False):
def burst_align_best(input_fp, output_fp, burst_db_prefix, accelerator=False, threads=1, shell=False, percent_id=.98):
"""
:param input_fp:
:param output_fp:
Expand All @@ -33,6 +33,7 @@ def burst_align_best(input_fp, output_fp, burst_db_prefix, accelerator=False, th
'--threads', str(threads),
'--mode', 'BEST',
'--npenalize',
'--id', str(percent_id),
'--forwardreverse'
]

Expand Down

0 comments on commit 08b7d5f

Please sign in to comment.