I use UniProt.ws package to access data in my projects. One thing I miss often is to convert easily UniProt taxon names to scientific species names, like ECOLX to Escherichia coli, or HUMAN to Homo sapiens. Manual conversion is a no-go for larger projects (I do often phylogenetics with dozens of such conversions).
I have written three new functions to assist this:
taxname2species() # ECOLX -> Escherichia coli taxname2taxid() # ECOLX -> 562 taxname2domain() # ECOLX -> B
These works also in vector context, e.g.
> taxname2species(c("HUMAN","YEAST","PIG","ABIBR","ECOLX"))  "Homo sapiens" "Saccharomyces cerevisiae" "Sus scrofa"  "Abies bracteata" "Escherichia coli"
The code is in pastebin:
I would like to add this code to the UniProt.ws package, but I could not figure out how to do that for the documentation. I do not want to create a new package, as it is clearly in the domain of UniProt.ws.
I would appreciate any advice on this. (I have some experience with git, no svn.)