[Biopython] Ancestors form OBO

tstr tosterovic at gmail.com
Mon Jun 16 12:51:26 UTC 2014


Hi,
Some time ago I wrote Biopython module for handling Ontologies and 
calculating terms enrichments. Here is the module:
https://github.com/kkoziara/biopython/tree/master/Bio/Ontology
Bio.Ontology.IO.OboIO contains OboReader which can read the obo file 
into OntologyGraph. OntologyGraph contains get_ancestor method which 
returns all ancestors of a term. It also contains to_networkx method 
which returns networkx representation of OntologyGraph.
I hope it helps.
Regards,
Kamil

On 06/14/2014 09:16 PM, Iddo Friedberg wrote:
> hi,
>
> Does anybody have a script that can extract an ancestor list of an 
> ontology term (or all ontology terms) from an OBO file? Or something 
> close enough so I can modify it?
>
> Thanks,
>
> Iddo
>
> -- 
> Iddo Friedberg
> http://iddo-friedberg.net/contact.html
> ++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.>
> ++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.
> .>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>>
> >>----.<--.>++++++.<<<<------------------------------------.
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biopython

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20140616/a153e8e1/attachment.html>


More information about the Biopython mailing list