-
Notifications
You must be signed in to change notification settings - Fork 0
The basics
Keiron O'Shea edited this page Sep 5, 2017
·
2 revisions
Here you will find a quick introduction on how to use dimedbpy, but please make sure you've installed it before continuing.
First of all, you need to import dimedbpy:
import dimedbpy
Now let's try and find a compound with the InChIKey RYYVLZVUVIJVGH-UHFFFAOYSA-N
:
metabolites = dimedb.get_metabolites("RYYVLZVUVIJVGH-UHFFFAOYSA-N")
This should return a list, containing Metabolite
objects for all metabolites that have been retrieved. We can interface with the object to find the information we're interested in:
metabolites[0].name
All documentation is licensed under the Creative Commons Attribution 4.0 International License.