Converts the InterPro protein families, domains, and other classes to ontological relations in BEL.
bio2bel_interpro can be installed easily from PyPI with the
following code in your favorite terminal:
$ python3 -m pip install bio2bel_interproor from the latest code on GitHub with:
$ python3 -m pip install git+https://github.com/bio2bel/interpro.git@masterInterPro can be downloaded and populated from either the Python REPL or the automatically installed command line utility.
>>> import bio2bel_interpro
>>> interpro_manager = bio2bel_interpro.Manager()
>>> interpro_manager.populate()bio2bel_interpro populateTo enrich the proteins in a BEL Graph with their InterPro entries (families, domains, sites, etc.) , use:
>>> from bio2bel_interpro import enrich_proteins
>>> graph = ... # get a BEL graph
>>> enrich_proteins(graph)