Skip to content

Commit

Permalink
tax threshold arg from #1788
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Apr 27, 2022
1 parent 940866d commit 4e2d43b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sourmash/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ def range_limited_float_type(arg):
return f


def add_tax_threshold_arg(parser, default=0.1):
def add_tax_threshold_arg(parser, containment_default=0.1, ani_default=None):
parser.add_argument(
'--containment-threshold', default=default, type=range_limited_float_type,
help=f'minimum containment threshold for classification; default={default}'
'--containment-threshold', default=containment_default, type=range_limited_float_type,
help=f'minimum containment threshold for classification; default={containment_default}',
)
parser.add_argument(
'--ani-threshold', '--aai-threshold', default=ani_default, type=range_limited_float_type,
help=f'minimum ANI threshold (nucleotide gather) or AAI threshold (protein gather) for classification; default={ani_default}',
)


Expand Down

0 comments on commit 4e2d43b

Please sign in to comment.