DOSE R package
1
0
Entering edit mode
8.3 years ago

Hi,

How can I get a list of DO terms assigned to a disease using DOSE please? So for Alzheimer's (DOID:10652) how can I access them?

I have a partial answer to my question by taking some functions and the environment variable from the defunct DOSim package still on (GItHub). The getAncestors() function more or less achieves my aims but I suspect the DO data is quite old and would be interested in seeing if DOSE has similar functions.

Thanks

Ken

R dose • 2.6k views
ADD COMMENT
0
Entering edit mode

Many thanks Guangchuang this works fine!

ADD REPLY
3
Entering edit mode
8.3 years ago
Guangchuang Yu ★ 2.6k

Please tag your post with the package name, dose, so that the package author, me :), can receive email notification.

> library(DO.db)
> get("DOID:10652", DOANCESTOR)
[1] "DOID:680"  "DOID:863"  "DOID:4"    "DOID:1289" "DOID:331"  "DOID:7"
ADD COMMENT

Login before adding your answer.

Traffic: 2281 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6