pybel / pybel-tools

A PyBEL extension for analyzing BEL graphs
http://pybel-tools.readthedocs.io/
MIT License
5 stars 5 forks source link

Inference over families #106

Closed cthoyt closed 6 years ago

cthoyt commented 7 years ago

Using the prior knowledge from isA relationships:

g(HGNC:MAPK1) isA g(GFAM:"Mitogen-activated protein kinases")
g(HGNC:MAPK10) isA g(GFAM:"Mitogen-activated protein kinases")
g(HGNC:MAPK11) isA g(GFAM:"Mitogen-activated protein kinases")
...

It should be possible to infer multiple statements from a statement like g(GFAM:"Mitogen-activated protein kinases") =| act(X) such that:

g(HGNC:MAPK1) =| act(X)
g(HGNC:MAPK10) =| act(X)
g(HGNC:MAPK1)1 =| act(X)
cthoyt commented 6 years ago

This is actually already implemented in pybel!

See: https://pybel.readthedocs.io/en/latest/transformations.html?highlight=infer#pybel.struct.mutation.infer_child_relations