How gyorilab/indra works
INDRA turns mechanistic and causal assertions from text-reading systems and structured knowledge sources into standardized INDRA Statements, then corrects, grounds, deduplicates, scopes, and assesses them before assembling models. Its outputs include causal graphs and dynamical models; explanation tools analyze assembled models. The graph reflects documented product flow and sampled references; several source adapters and assembler formats are represented at subsystem level because their implementations were not excerpted.
Main entry points: assemble_corpus.py Corpus assembly · statements.py INDRA Statements · assemblers Graph and format assemblers · assembler.py PySB assembler
Components 25
Knowledge inputs
- Text readers
indra/sources - REACH reader
indra/sources/reach/processor.py - Structured sources
indra/sources - INDRA DB queries
indra/sources/indra_db_rest/query.py
Knowledge processing
- INDRA Statements
indra/statements/statements.py - Statement serialization
indra/statements/io.py - Assembly pipeline
indra/pipeline/pipeline.py - Corpus assembly
indra/tools/assemble_corpus.py - Grounding mapper
indra/preassembler/grounding_mapper - Preassembly
indra/preassembler - Mechanism linking
indra/mechlinker/__init__.py - Belief scoring
indra/belief/__init__.py - Biology ontology
indra/ontology/bio/ontology.py
Model outputs
- Graph and format assemblers
indra/assemblers - CX assembler
indra/assemblers/cx/assembler.py - PySB assembler
indra/assemblers/pysb/assembler.py - PySB export
indra/assemblers/pysb/export.py
Model analysis
- PySB model checker
indra/explanation/model_checker/pysb.py - Path finding
indra/explanation/pathfinding/pathfinding.py
Reference services
- PubMed client
indra/literature/pubmed_client.py - cBioPortal client
indra/databases/cbio_client.py - Cell context
indra/databases/context_client.py - HGNC mappings
indra/databases/hgnc_client.py
Other components
- User
- REST API
rest_api/api.py
Connections 22
- User → REST API: submits requests
- Text readers → INDRA Statements: produce statements
- Structured sources → INDRA Statements: produce statements
- REACH reader → INDRA Statements: produces statements
- INDRA DB queries → INDRA Statements: decodes results
- INDRA Statements → Corpus assembly: assembled by
- Assembly pipeline → Corpus assembly: invokes corpus functions
indra/pipeline/pipeline.py - Corpus assembly → Grounding mapper: applies grounding
indra/tools/assemble_corpus.py - Corpus assembly → Preassembly: preassembles statements
indra/tools/assemble_corpus.py - Corpus assembly → Mechanism linking: links mechanisms
indra/tools/assemble_corpus.py - Corpus assembly → Belief scoring: assesses reliability
indra/tools/assemble_corpus.py - Corpus assembly → Biology ontology: uses biological scope
indra/tools/assemble_corpus.py - Corpus assembly → Graph and format assemblers: assembles models
- Graph and format assemblers → CX assembler: includes CX output
indra/assemblers/cx/__init__.py - Graph and format assemblers → PySB assembler: includes dynamical output
indra/assemblers/pysb/__init__.py - Graph and format assemblers → Statement serialization: supports serialized statements
- PySB assembler → PySB export: exports model
indra/assemblers/pysb/assembler.py - PySB assembler → PySB model checker: model checked by
indra/explanation/model_checker/pysb.py - INDRA Statements → Path finding: supports explanation
- Cell context → cBioPortal client: queries expression
indra/databases/context_client.py - cBioPortal client → HGNC mappings: maps gene identifiers
indra/databases/cbio_client.py - PubMed client → INDRA Statements: supports literature workflows