Get Go Terms From Python
5
2
Entering edit mode
11.7 years ago
TitoPullo ▴ 190

Given a gene set (IDs) is there a tool to access Gene Ontology dataset from Python? For example I need to get GO terms associated to each gene and find their distance from GO root terms. Is there something available to implement this?

go python • 14k views
ADD COMMENT
1
Entering edit mode
11.7 years ago

You can query the database via python and sql commands ( See gene ontology website ). Just import your favorite msql db interface python module and connect. Then query. See also this wiki.

ADD COMMENT
0
Entering edit mode

Correct me please if I'm wrong (I'm very new to bioinformatic) but in this way I can explore the dataset only if I know the desired GO term ID, what if I only have gene IDs? Is there a way to directly query the GO dataset using them?

ADD REPLY
1
Entering edit mode
ADD REPLY
1
Entering edit mode
ADD COMMENT
1
Entering edit mode

This post is related somehow.. Lookup A Gene Ontology Definition With Biopython

ADD REPLY
0
Entering edit mode
11.7 years ago
Konrad ▴ 710

You can write something using this REST API. If you need some inspiration look at this very basic library (and this GO XML parser lib).

ADD COMMENT
0
Entering edit mode
ADD COMMENT
0
Entering edit mode
ADD COMMENT

Login before adding your answer.

Traffic: 1405 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