from pypath import omnipath
+from pypath.core import intercell
+from pypath.core import annot
+from pypath.core import intercell_annot
+from pypath.utils import mapping
a = omnipath.db.get_db('annotations')
i = omnipath.db.get_db('intercell')
# get all members from one class
-i.get_class('tight_junction')
+i.get_class('tight_junction')
+mapping.map_names(i.get_class('ligand'), 'uniprot', 'genesymbol')
+# how to change the annotation definitions
+# -- edit the definition in the pypath/core/intercell_annot.py file in your
+# -- rebuild the intercell database
+# -- if you are satisfied with the result, commit your changes with a good
+# commit message and push it to the origin
+# -- please commit each change separately so we can keep track what's going on
+# once you have the definitions changed, reload the modules
+imp.reload(intercell_annot)
+# rebuild the intercell database (this takes time but is relatively quick
+# as the annotations and complex databases are already loaded and we don't
+i = intercell.IntercellAnnotation()
+# then inspect the new `i` object if your changes could address the wrong
+# annotations; if you are satisfied commit your changes