traitecoevo / taxonlookup

A versioned and dynamically updating taxonomic lookup table for land plants
http://onlinelibrary.wiley.com/doi/10.1111/2041-210X.12517/abstract
Other
31 stars 6 forks source link

Higher-taxonomy lookup for TPL-known hybrids #23

Open rossmounce opened 8 years ago

rossmounce commented 8 years ago

Not high-priority but...

I would like to be able to lookup the higher-level taxonomy of names that are Hybrids, that TPL has data for e.g. × Elyhordeum chatangensis (Roshev.) Tzvelev http://www.theplantlist.org/tpl1.1/record/kew-387028 (Accepted).

It seems like this should be possible, if TPL has data on the name

> plant_lookup_version_current()
[1] "1.1.1"
> lookup_table(c("Pinus","× Elyhordeum chatangensis"),missing_action="NA")
  genus   family   order       group
1 Pinus Pinaceae Pinales Gymnosperms
2     ×     <NA>    <NA>        <NA>
> lookup_table(c("Pinus","×Elyhordeum chatangensis"),missing_action="NA")
        genus   family   order       group
1       Pinus Pinaceae Pinales Gymnosperms
2 ×Elyhordeum     <NA>    <NA>        <NA>
> lookup_table(c("Pinus","Elyhordeum chatangensis"),missing_action="NA")
       genus   family   order       group
1      Pinus Pinaceae Pinales Gymnosperms
2 Elyhordeum     <NA>    <NA>        <NA>

Desired output/behaviour:

> lookup_table(c("Pinus","× Elyhordeum chatangensis"),missing_action="NA")
  genus   family   order       group
1 Pinus Pinaceae Pinales Gymnosperms
2 × Elyhordeum Poaceae Poales Angiosperms
wcornwell commented 8 years ago

Yeah, we discussed this in depth at one point. The botanical code is a bit vague on fertile hybrid species versus infertile hybrid crosses. And the systematists at our meeting seemed convinced that the majority (although not all) of the names with the "x" notation in the plant list were infertile or most infertile hybrids.

x Elyhordeum seems like it's not an exception: see http://www.herbarium.usu.edu/treatments/xElyhordeum.htm

So the folks studying diversity and diversification wanted them excluded from the species counts. It would be a bit tricky to keep them in the lookup but drop them from the species counts. Hmmm

rossmounce commented 8 years ago

Understood. It's not a biggie for me. Just thought I'd mention it :smile:

For my use case, I just want to know what the plant record is (high-level taxonomy-wise), regardless of onward fertility. I can see how/why different use cases wouldn't want this info included.