Reputation: 9
I'm pretty novice in using R. I'm facing a problem that I used ontological codes in collecting my data (ICD-10, NCBITaxon and CHEBI).
My data is in a long format:
ID Disease Organism Antibiotic
1 654 N18.0 NCBITaxon:1280 CHEBI:8232
2 1122 C92.0 NCBITaxon:28037 CHEBI:43968
How can I replace the coded ontology with the corresponding meanings?
Upvotes: 0
Views: 59
Reputation: 1714
I'm not an expert, so I don't know if my advises are useful. R is a big community so there is many initiatives to create packages. The two packages where I guid may help you. I think that for a more useful help you should search a bit by yourself and when you have precise enought questions we can answer them. For the moment, the only advises I can give you are the packages above :
install.packages('icd')
library('icd')
library(magrittr)
For more help look their.
For taxon look at this :
install.packages( "taxize")
library(taxize)
genbank2uid(id = 1280)
genbank2uid(id = 28037)
For Chebi have a look here.
I hope it helps.
Upvotes: 0