ropensci / traits

R package for accessing species trait data from multiple databases
Other
39 stars 14 forks source link

datasource: Funguild? #90

Open zachary-foster opened 7 years ago

zachary-foster commented 7 years ago

I was recently working with a python script for looking up attributes of fungal species called funguild.

https://github.com/UMNFuN/FUNGuild

This python script expects a table with a column named "taxonomy" formatted in the UNITE taxonomy format (e.g. kFungi.pBasidiomycota.cAgaricomycetes.oAgaricales.fStrophariaceae.gPsilocybe.s__Psilocybe_semilanceata). It calls the following API:

http://www.stbates.org/funguild_db.php

and returns info like:

> head(funguild_matrix[, 108:116])
               Taxon Taxon.Level Trophic.Mode                Guild Growth.Morphology     Trait Confidence.Ranking Notes                                                               Citation.Source
1          Psilocybe          13   Saprotroph Undefined Saprotroph         Agaricoid Poisonous           Probable  NULL                                  Tedersoo L, et al. 2014. Science 346:1256688
2    Ophiosphaerella          13   Saprotroph Undefined Saprotroph              NULL      NULL           Probable  NULL                                  Tedersoo L, et al. 2014. Science 346:1256688
3       Pringsheimia          13   Saprotroph Undefined Saprotroph              NULL      NULL           Probable  NULL                                  Tedersoo L, et al. 2014. Science 346:1256688
4           Hypocrea          13   Pathotroph         Mycoparasite              NULL      NULL    Highly Probable  NULL Tedersoo L, et al. 2014. Science 346:1256688; Samuels G. 2007, self published
5          Conlarium          13   Saprotroph Undefined Saprotroph              NULL      NULL           Probable  NULL                                  Tedersoo L, et al. 2014. Science 346:1256688
6 Sclerostagonospora          13   Saprotroph Undefined Saprotroph              NULL      NULL           Probable  NULL                                  Tedersoo L, et al. 2014. Science 346:1256688

The python script works ok, but I dont like how it needs a whole table in a specific format when it just uses one column.

Would this be something traits could/should implement? An R solution would be welcome! Thanks

sckott commented 7 years ago

Thanks @zachary-foster

Sounds good to me - you want someone else to do the R bit or did you want to? - happy to help

zachary-foster commented 7 years ago

Cool. I would not mind doing it, but I will not have time for a while probably and, since I got the python script to work for my immediate needs, it is not a priority for me right now. I was mostly just posting this as a record of the idea in case anyone else wanted to do it or if I had time to do it in the future.

sckott commented 7 years ago

Cool, thanks.

If anyone wants to do this go for it - I may do at some point if no one else does.

wcornwell commented 6 years ago

If you do get around to fungi, we'll have a growing set of fungal trait data here: https://github.com/traitecoevo/fungaltraits

should be eventually linked to unite, index fungorum, and funguild if everything goes as planned.

sckott commented 6 years ago

thx @wcornwell ! just submitted a new ver of this pkg to CRAN - will try to get to funguild soon

maelle commented 1 year ago

This repository is about to be archived.