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

Find name associated with acceptedUsageKey #764

Open
MarcRieraDominguez opened this issue Jan 23, 2025 · 0 comments
Open

Find name associated with acceptedUsageKey #764

MarcRieraDominguez opened this issue Jan 23, 2025 · 0 comments

Comments

@MarcRieraDominguez
Copy link

Hi there!
I am looking for a sort of "reverse" name_backbone(): instead of getting a numerical ID (acceptedUsageKey and so on) for a given name, I would like to know what name corresponds to a given numerical ID.
I was checking some names with rgbif::name:backbone(), and apparently the accepted name for Mus musculus (https://www.gbif.org/species/4409155) is Mus musculus subsp. domesticus (https://www.gbif.org/species/4264886)... which is a "drop" in taxonomic category, which I would like to know about, and that I cannot know from the output. Thus, I want a way to double check whether the name given by the acceptedUsageKey is a subspecies.

In this case, the "drop" in taxonomic category is asosicated with less georeferenced occurrences in my study area (Catalonia, NE Spain), although the total number of georeferenced records increases with the accepted name. I don't fully understand the casues for this, can anyone illuminate?

data.frame(rgbif::name_backbone(name = "Mus domesticus"))
#>   usageKey acceptedUsageKey             scientificName  canonicalName    rank
#> 1  4409155          4264886 Mus domesticus Rutty, 1772 Mus domesticus SPECIES
#>    status confidence matchType  kingdom   phylum    order  family genus
#> 1 SYNONYM         97     EXACT Animalia Chordata Rodentia Muridae   Mus
#>        species kingdomKey phylumKey classKey orderKey familyKey genusKey
#> 1 Mus musculus          1        44      359     1459      5510  9800657
#>   speciesKey synonym    class  verbatim_name
#> 1    7429082    TRUE Mammalia Mus domesticus

Created on 2025-01-23 with reprex v2.0.2

Thanks!

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

No branches or pull requests

1 participant