Getting Started
Data Structure
Mutations
Conversion
Database
Topic Guide
Reference
Project
Functions for grouping BEL graphs into sub-graphs.
Stratify the given graph into sub-graphs based on the values for edges’ annotations.
graph (BELGraph) – A BEL graph
BELGraph
annotation (str) – The annotation to group by
str
sentinel (Optional[str]) – The value to stick unannotated edges into. If none, does not keep undefined.
Optional
Mapping[Entity, BELGraph]
Mapping
Entity
Stratify the graph based on citations.
Mapping[Tuple[str, str], BELGraph]
Tuple
A mapping of each citation db/id to the BEL graph from it.