ojalaquellueva / TNRSbatch

TNRS core application code
Other
7 stars 0 forks source link

Unmatched epithets causing failure to return matched genus #6

Closed tyeentaylor closed 10 months ago

tyeentaylor commented 1 year ago

I'm using the online tnrs.biendata.org app. Try running these two names:

Helianthostylis sprucei Helianthostylis tomentosa

The genus is spelled exactly the same. But the H. tomentosa result is "no match found", and does not return the genus match. It used to return the genus match without a species match, and then I could add back in the original epithet.

ojalaquellueva commented 10 months ago

I can replicate this on the TNRS web app, but not with the api. Calling from the shell with script "tnrs_api_example.sh" (see https://github.com/ojalaquellueva/TNRSapi/blob/master/tnrs_api_example.sh), the response is as expected:

Input file (test_names.csv):

ID,Name_submitted
1,Helianthostylis sprucei
2,Helianthostylis tomentosa

Command:

./tnrs_api.sh -m resolve -s wfo,wcvp -c wfo -f /home/bien/tnrs/admin/bugs/tnrs_batch_issue_6/test_names.csv

Response:

Names submitted:
| ID | Name_submitted            |
| -- | ------------------------- |
|  1 | Helianthostylis sprucei   |
|  2 | Helianthostylis tomentosa |

Processing with TNRS API @ 'https://tnrsapi.xyz/tnrs_api.php'

Name resolution results:
| Name_submitted            | Name_matched            | Overall_score | Taxonomic_status | Accepted_name           |
| ------------------------- | ----------------------- | ------------- | ---------------- | ----------------------- |
| Helianthostylis sprucei   | Helianthostylis sprucei |           1.0 | Accepted         | Helianthostylis sprucei |
| Helianthostylis tomentosa | Helianthostylis         |           0.5 | Accepted         | Helianthostylis         |
ojalaquellueva commented 10 months ago

@tyeentaylor This issue applies to TNRSweb, not to TNRSbatch nor to TNRSapi. Due to ownership differences, I cannot transfer this issue. However, I will close it here and replicate it at TNRSweb.