ecotag: trying to use a threshold lower than the ref db threshold now

returns an error instead of a warning
This commit is contained in:
Celine Mercier
2019-09-15 19:27:47 +02:00
parent f8d1fa678a
commit eb913b2742
2 changed files with 9 additions and 3 deletions

View File

@ -365,10 +365,11 @@ int obi_ecotag(const char* dms_name,
}
free(db_threshold_str);
if (ecotag_threshold < db_threshold)
fprintf(stderr, "\nWarning: The threshold demanded (%f) is lower than the threshold used to build the reference database (%f). "
"\n\tMeaning that the similarity *between reference sequences* below the ref db threshold will not be considered. "
"\n\tEcotag normally uses that similarity for better results but it works fine without it.\n\n",
{
fprintf(stderr, "\nError: The threshold demanded (%f) is lower than the threshold used to build the reference database (%f).\n\n",
ecotag_threshold, db_threshold);
return -1;
}
// Open the ID column of reference sequences
ref_id_column = obi_view_get_column(ref_view, ID_COLUMN);