Search
Question: New functions to UniProt.ws
0
gravatar for Csaba Ortutay
13 months ago by
Finland
Csaba Ortutay0 wrote:

Hi, 

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"))
[1] "Homo sapiens"             "Saccharomyces cerevisiae" "Sus scrofa"              
[4] "Abies bracteata"          "Escherichia coli"        

The code is in pastebin: 

http://pastebin.com/M4BvUvT7

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.)

Thank you,

Csaba

ADD COMMENTlink modified 13 months ago by Valerie Obenchain ♦♦ 6.4k • written 13 months ago by Csaba Ortutay0
0
gravatar for Valerie Obenchain
13 months ago by
Valerie Obenchain ♦♦ 6.4k
United States
Valerie Obenchain ♦♦ 6.4k wrote:

Hi Csaba,

These look like useful helper functions. If you put together a patch (code, man page and unit tests) I can add this to UniProt.ws. Please make sure UniProt.ws passes R CMD build and check with your new additions. Let me know (valerie.obenchain@roswellpark.org) when it's ready.

Valerie

ADD COMMENTlink written 13 months ago by Valerie Obenchain ♦♦ 6.4k

Thanks, I will work on a patch, and I will contact you when it is ready. Csaba

ADD REPLYlink written 13 months ago by Csaba Ortutay0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 288 users visited in the last hour