EnquistLab / TNRSweb

TNRS UI
http://tnrs.biendata.org
MIT License
0 stars 1 forks source link

Names flagged as having better higher taxonomic match disappear when "Best match setting" changed to "Higher taxonomy" #100

Closed ojalaquellueva closed 7 months ago

ojalaquellueva commented 10 months ago

Submiited name "Helotiaceae Diplothrix juniperifolia" is flagged in left-most column of results display as having "Better higher taxonomic match available". However, when the "Best match setting" is changed to "Higher taxonomy", the name disappears entirely. Furthermore, downloading "All matches" returns only one record. Names flagged in this way should always return at least two rows: one for the best overall score match, and a second result for the best higher taxonomic match.

ojalaquellueva commented 9 months ago

Proposed solution

I'm now thinking that there is nothing wrong with how the match threshold is being applied. The user should be able to apply a minimum acceptable threshold for fuzzy match scores. The threshold should apply to all matches, not just the best match. Also, the user should be able to filter higher taxonomic matches by match threshold in the same way. If the user wants to see all possible matches, they can always lower the match threshold.

The only problem here is the complete loss of a name from the display and from the download when there is no best match. A result should always be displayed for every name submitted. If no match with Overall_score>=match_threshold is found for a submitted name, then that name should be displayed followed by "[No match found]" in the Name_matched column, and all subsequent fields (to the right) blank. This result for this name should be the same in the Details display and in the download.

In summary:

ojalaquellueva commented 9 months ago

See related feature request under issue #110

ojalaquellueva commented 9 months ago

See also related feature request under issue #109

ojalaquellueva commented 7 months ago

Fixed.