Retrieving interactions given compound name

147 views
Skip to first unread message

lorenzo.f...@gmail.com

unread,
Sep 3, 2019, 10:44:28 AM9/3/19
to Omnipath
I'm trying to retrieve as much information as possible about the targets (genes, pathways, ...) of some small molecules and drugs. Is it possible to get this kind of information with pypath given the compounds' names?

turei...@gmail.com

unread,
Sep 3, 2019, 11:37:12 AM9/3/19
to Omnipath
Hi Lorenzo,

At the moment pypath is not able to provide drug-target interactions. The old ChEMBL support was based on MySQL and we removed this because noone wants to install a 30G database on their computers. We are working on a client for the web service and maybe connect also other databases like DGIdb or PubChem, etc. But these are not priority at the moment so will be ready in weeks or months later from now.

I would suggest to get your target protein list by another application or database and query pypath/OmniPath by this list of proteins.

Best wishes,

Denes

lorenzo.f...@gmail.com

unread,
Sep 4, 2019, 10:42:59 AM9/4/19
to Omnipath
Thank you for replying.
Suppose I have for each compound a list of targets, like UniProt IDs, would it be possible now to query bypath with such list?

turei...@gmail.com

unread,
Sep 12, 2019, 1:15:06 PM9/12/19
to Omnipath
Hi Lorenzo,

One way is to use the web service:

Let's say your proteins are P00533,O75385,P42345

Then you can get interactions by


Of course you can remove datasets and options according to your needs.

You can also query annotations, e.g. pathway memberships:


Other way is to use pypath:

import itertools
from pypath import main, data_formats

pa = main.PyPath()
pa.init_network(data_formats.pathway_all)

proteins = ['P00533', 'O75385', 'P42345']

neighbors = list(itertools.chain(*(pa.neighbors(uniprot).ids() for uniprot in proteins)))

neighborhood_graph
= pa.graph.induced_subgraph(neighbors)

# annotations:

from pypath import annot

annot
.init_db()

annot
.db.search(protein = 'P00533')



I hope this helps.

Best wishes,

Denes
Reply all
Reply to author
Forward
0 new messages