Hi Marcio,
Thank you for your mail. I am very glad you connect OmniPath into your service.
I haven't compiled yet a description of data structures in pypath but
indeed it would be useful to have one.
In pypath all the annotations of molecules and interactions are stored
in vertex and edge attributes of the igraph object.
Most of these attributes are built-in Python objects but some of them
are special e.g. the Direction objects.
In OmniPath every interaction must have sources (databases),
references (PubMed IDs), directions and effect signs (these can be
undirected or unknown).
The presence of further annotations depends on which data do you load.
For example:
import pypath
pa = pypath.PyPath()
pa.init_network(pypath.data_formats.pathway)
# the sources of the first edge; it is a `set` object:
pa.graph.es[0]['sources']
# the directions for the same edge, this is a `Direction` object:
pa.graph.es[0]['dirs']
For the `Direction` object I advise to use the `sources`,
`positive_sources`, `negative_sources` attributes and the
`which_dirs()` method.
If you load enzyme-substrate interactions, you will have `Ptm`
objects. This and other potentially useful stuff are documented here:
http://pypath.omnipathdb.org/
and here:
http://pypath.omnipathdb.org/notebooks/intro.html
Please tell me if you have any question. Unfortunately I don't have a
nice schema, but if you ask for specific details should be easy to
answer.
Best wishes,
Denes
> --
> You received this message because you are subscribed to the Google Groups
> "Omnipath" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
omnipath+u...@googlegroups.com.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/omnipath/1513087505622.26284%40ntnu.no.
> For more options, visit
https://groups.google.com/d/optout.
--
Denes Turei, Ph.D.
postdoc @ Uniklinik RWTH Aachen & EMBL Heidelberg
+4915166299976 Germany
+447442970610 UK
de...@ebi.ac.uk
http://www.ebi.ac.uk/~denes
public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5706A4B609DD65A6