Home > Community > Convert Reactome Protein IDs to Pathway IDs?
Upvote

24

Downvote
+ Conversion
+ Bioinformatics
+ Biochemistry
Posted by
Kevin Anderson

Convert Reactome Protein IDs to Pathway IDs?

David Gallagher  Follow

On Reactome website they have at the download page mapping files (uniprot, ensembl, etc.), but unfortunately not for the protein IDs you are using (stable identifiers).

I had contact with their helpdesk, and they sent me a file containing all protein IDs to the pathways. Exactly what you need. I have asked them if they wanted to put it on their download page as well, but not sure if they want to do this. Meanwhile you can ask for the file as well, or get it from my google drive.

I assume you know how to get your Protein IDs and pathways from this file, using e.g., R?

More

Upvote

VOTE

Downvote
Don Barker  Follow

If you don't mind hitting it 50k times and are OK with python3...

from urllib import requestimport jsondef getPathways(proteinID):    baseURL = 'http://reactome.org/ContentService/data/query'    PathwayIDs = set()    try:        response = request.urlopen('{}/{}'.format(baseURL, proteinID)).read().decode()        data = json.loads(response)        if 'consumedByEvent' in data:            for event in data['consumedByEvent']:                PathwayIDs.add(event['stId'])        if 'producedByEvent' in data:            for event in data['producedByEvent']:                PathwayIDs.add(event['stId'])    except:        pass    return PathwayIDs

Usage would then be something like:

l = ['R-HSA-49155', 'R-HSA-199420', '']for rid in l:    ids = getPathways(rid)    for _ in ids:        print("{}\t{}".format(rid, _))

Which would produce:

R-HSA-49155 R-HSA-110239R-HSA-49155 R-HSA-110240R-HSA-49155 R-HSA-110238R-HSA-49155 R-HSA-110356R-HSA-199420    R-HSA-8948800R-HSA-199420    R-HSA-6807106R-HSA-199420    R-HSA-6807206R-HSA-199420    R-HSA-6807126R-HSA-199420    R-HSA-8847968R-HSA-199420    R-HSA-8850997R-HSA-199420    R-HSA-2321904R-HSA-199420    R-HSA-8948775R-HSA-199420    R-HSA-8944497R-HSA-199420    R-HSA-6807134R-HSA-199420    R-HSA-8850945R-HSA-199420    R-HSA-8873946

Note that this will silently ignore invalid or missing IDs such as '' (that's the try and except above. Note also that these are different pathway IDs than what you provided in your example. The main reason is that the protein IDs you showed are not always involved in the pathways IDs you showed (in my example, they always are).

More

Upvote

VOTE

Downvote
G Donald Allen  Follow
plantreactome.gramene.org/ContentService/data/pathways/low/…More
Upvote

VOTE

Downvote
Jill Grant  Follow
when I query with this ID: R-OPU-1129769. However, if I use that ID I do get lists of pathways here: More
Upvote

VOTE

Downvote
Hal Sosabowski  Follow
Sorry for using human reactome as an example when I wanted data from plant reactome (I assumed it would work equally well in both places).More
Upvote

VOTE

Downvote
Doug Houser  Follow
plantreactome.gramene.org/ContentServiceMore
Upvote

VOTE

Downvote
Frank Hollis  Follow
This looks great, but for some reason fails here: More
Upvote

VOTE

Downvote