Skip to content

Commit

Permalink
Merge pull request #362 from davidealbanese/unoise_id_fix
Browse files Browse the repository at this point in the history
 Force weak_id to be a reasonable value when cluster_unoise (0.9)
  • Loading branch information
torognes authored Feb 28, 2019
2 parents 97c8924 + b1b7b64 commit da11f73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2048,8 +2048,11 @@ void args_init(int argc, char **argv)
if (commands > 1)
fatal("More than one command specified");

if (opt_weak_id > opt_id)
opt_weak_id = opt_id;
if (opt_cluster_unoise)
opt_weak_id = 0.90;
else
if (opt_weak_id > opt_id)
opt_weak_id = opt_id;

if (opt_maxrejects == -1)
{
Expand Down Expand Up @@ -2871,7 +2874,7 @@ void cmd_cluster()
if (!opt_cluster_unoise)
if ((opt_id < 0.0) || (opt_id > 1.0))
fatal("Identity between 0.0 and 1.0 must be specified with --id");

if (opt_cluster_fast)
cluster_fast(cmdline, progheader);
else if (opt_cluster_smallmem)
Expand Down

0 comments on commit da11f73

Please sign in to comment.