traitecoevo / austraits.build

Source for AusTraits
Other
16 stars 2 forks source link

Taxonomy: How to handle situations with same ID returned from TaxonStand? #187

Closed dfalster closed 4 years ago

dfalster commented 5 years ago

Turns out there's a lot of species in our list where TaxonStand has returned the same ID as an existing species.

A quick check reveals the number of duplicates:

> duplicated(austraits$taxonomy$TPL_ID) %>% sum()
[1] 1966

And some examples: ``

austraits$taxonomy %>%

  • filter(TPL_ID %in% TPL_ID[duplicated(TPL_ID)]) %>% na.omit()

    A tibble: 1,621 x 9

    species_name genus family authority TPL_ID status APC_name APC_ID APNI_ID

    1 Abutilon oxycarpum Abutilon Malvaceae (F.Muell.) Benth. kew-2610844 Accepted Abutilon oxycarpum 3863084 56721 2 Abutilon oxycarpum var. oxycarpum Abutilon Malvaceae (F.Muell.) Benth. kew-2610844 Accepted Abutilon oxycarpum var. oxycarpum 2893249 56760 3 Acacia acinacea Acacia Leguminosae Lindl. ild-39311 Accepted Acacia acinacea 2890684 57996 4 Acacia acinacea s.l. Acacia Leguminosae Lindl. ild-39311 Accepted Acacia acinacea 2890684 57996 5 Acacia alata Acacia Leguminosae R.Br. ild-47958 Accepted Acacia alata 2905053 58203 6 Acacia alata var. biglandulosa Acacia Leguminosae R.Br. ild-47958 Accepted unknown unknown unknown 7 Acacia anceps Acacia Leguminosae DC. ild-47540 Accepted Acacia anceps 2916018 58390 8 Acacia anceps x nematophylla Acacia Leguminosae DC. ild-47540 Accepted Acacia nematophylla 2888030 67290 9 Acacia ancistrocarpa Acacia Leguminosae Maiden & Blakeley ild-49073 Accepted Acacia ancistrocarpa 2903070 58420 10 Acacia ancistrocarpa x trachycarpa Acacia Leguminosae Maiden & Blakeley ild-49073 Accepted Acacia ancistrocarpa 2903070 58420 ```

Does this apply to all subspecies and varieties?

dfalster commented 4 years ago

Closing this, as will move away from using TaxonStand. See #141