Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algorithm fixes #174

Merged
merged 8 commits into from
Jan 22, 2024
Merged

Algorithm fixes #174

merged 8 commits into from
Jan 22, 2024

Conversation

ehwenk
Copy link
Collaborator

@ehwenk ehwenk commented Jan 22, 2024

small algorithm fixes

  • export strip_names_2
  • for genus-resolution names where the genus is outdated, the genus-column was being updated, but the new genus wasn't being "inserted" into the suggested name due to a typo
  • leave suggested_name blank if not even genus/family can be aligned

(From Dec - first of 2 branches to merge)

* open to discussion about line 151 - previous output was intentional (to maintain an original name as the suggested name, if no aligned name), but looks weird in comparison to outputs from other tools
* for genus-resolution names where the genus is outdated, the genus-column was being updated, but the new genus wasn't being "inserted" into the suggested name due to a typo in lines 279/280
@ehwenk ehwenk requested a review from dfalster January 22, 2024 04:46
add `strip_names_2`
Continue setting aligned names to `NA` if no family, genus, species, infraspecies match - in both matches and tests

(I think something still wrong with diversity tests - maybe to do with APC/APNI versions.)
R/update_taxonomy.R Outdated Show resolved Hide resolved
R/update_taxonomy.R Outdated Show resolved Hide resolved
requested changes made

(before this tests passing - but didn't wait for final one)
@ehwenk ehwenk merged commit 3173a85 into master Jan 22, 2024
6 checks passed
@ehwenk ehwenk deleted the algorithm-fixes branch January 22, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants