Skip to content

Commit

Permalink
Added --nosimplify toggle to nucmer command
Browse files Browse the repository at this point in the history
  • Loading branch information
nds committed Feb 12, 2015
1 parent 12748de commit 16d8a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pymummer/nucmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
breaklen=None,
coords_header=True,
maxmatch=False,
simplify=True,
show_snps=False,
snps_header=True,
verbose=False,
Expand All @@ -31,6 +32,7 @@ def __init__(
self.breaklen = breaklen
self.coords_header = coords_header
self.maxmatch = maxmatch
self.simplify = simplify
self.show_snps = show_snps
self.snps_header = snps_header
self.verbose = verbose
Expand All @@ -46,6 +48,9 @@ def _nucmer_command(self, ref, qry, outprefix):

if self.maxmatch:
command += ' --maxmatch'

if not self.simplify:
command += ' --nosimplify'

return command + ' ' + ref + ' ' + qry

Expand Down
3 changes: 2 additions & 1 deletion pymummer/tests/nucmer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def test_nucmer_command(self):
tests = [
[nucmer.Runner('ref', 'qry', 'outfile'), 'nucmer -p pre ref qry'],
[nucmer.Runner('ref', 'qry', 'outfile', breaklen=42), 'nucmer -p pre -b 42 ref qry'],
[nucmer.Runner('ref', 'qry', 'outfile', maxmatch=True), 'nucmer -p pre --maxmatch ref qry']
[nucmer.Runner('ref', 'qry', 'outfile', maxmatch=True), 'nucmer -p pre --maxmatch ref qry'],
[nucmer.Runner('ref', 'qry', 'outfile', simplify=False), 'nucmer -p pre --nosimplify ref qry']
]

for l in tests:
Expand Down

0 comments on commit 16d8a72

Please sign in to comment.