Skip to content
/ indra Public
forked from sorgerlab/indra

Integrated Network and Dynamical Reasoning Assembler

License

Notifications You must be signed in to change notification settings

gberriz/indra

 
 

Repository files navigation

Build Status

INDRA

INDRA (Integrated Dynamical Reasoning Assembler) generates executable models of pathway dynamics from natural language (using the TRIPS parser), BioPAX and BEL sources (including the PathwayCommons database and NDEx).

Using INDRA

In this example INDRA assembles a PySB model from the natural language description of a mechanism via the TRIPS parser web service.

from indra.pysb_assembler import PysbAssembler
from indra.trips import trips_api
pa = PysbAssembler()
# Process a natural language description of a mechanism
trips_processor = trips_api.process_text('MEK2 phosphorylates ERK1 at Thr-202 and Tyr-204')
# Collect extracted mechanisms in PysbAssembler
pa.add_statements(trips_processor.statements)
# Assemble the model
model = pa.make_model(policies='two_step')

The next example shows querying the BEL large corpus network thorugh NDEx for a neighborhood of a given list of proteins using their HGNC gene names.

from indra.bel import bel_api
# Process the neighborhood of BRAF and MAP2K1
bel_processor = bel_api.process_ndex_neighborhood(['BRAF', 'MAP2K1'])
# At this point, bel_processor.statements contains a list of INDRA statements
# extracted from the neihborhood query.

Next, we look at an example of querying the Pathway Commons database for paths between two lists of proteins.

from indra.biopax import biopax_api
# Process the neighborhood of BRAF and MAP2K1
biopax_processor = biopax_api.process_pc_pathsbetween(['BRAF', 'RAF1'], ['MAP2K1', 'MAP2K2'])
# At this point, biopax_processor.statements contains a list of INDRA statements
# extracted from the paths-between query.

INDRA also provides an interface for the REACH natural language parser. In this example, a full paper from PubMed Central is processed. The paper's PMC ID is PMC3717945.

from indra.reach import reach_api
# Process the neighborhood of BRAF and MAP2K1
reach_processor = reach_api.process_pmc('3717945')
# At this point, reach_processor.statements contains a list of INDRA statements
# extracted from the PMC paper.

About

Integrated Network and Dynamical Reasoning Assembler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Other 0.4%