Skip to content

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.

Getting a Metabolite

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
Clone this wiki locally