Enrichment¶
Manager for Bio2BEL GO.
-
bio2bel_go.manager.
add_parents
(go, identifier: str, graph: pybel.struct.graph.BELGraph, child: pybel.dsl.node_classes.BaseEntity)[source]¶ Add parents to the network.
Parameters: - go – GO Network
- identifier – GO Identifier of the child
- graph – A BEL graph
- child – A BEL node
-
bio2bel_go.manager.
normalize_go_id
(identifier: str) → str[source]¶ If a GO term does not start with the
GO:
prefix, add it.
-
class
bio2bel_go.manager.
Manager
(*args, **kwargs)[source]¶ Biological process multi-hierarchy.
-
namespace_model
¶ alias of
bio2bel_go.models.Term
-
get_term_by_id
(go_id: str) → Optional[bio2bel_go.models.Term][source]¶ Get a GO entry by its identifier.
-
populate
(path=None, force_download=False) → None[source]¶ Populate the database.
Parameters: - path – Path to the GO OBO file
- force_download –
-
summarize
() → Mapping[str, int][source]¶ Return a summary dictionary over the content of the database.
-
lookup_term
(node: pybel.dsl.node_classes.BaseEntity) → Optional[bio2bel_go.models.Term][source]¶ Guess the identifier from a PyBEL node data dictionary.
-
iter_terms
(graph: pybel.struct.graph.BELGraph, use_tqdm: bool = False) → Iterable[Tuple[pybel.dsl.node_classes.BaseEntity, bio2bel_go.models.Term]][source]¶ Iterate over nodes in the graph that can be looked up.
-
normalize_terms
(graph: pybel.struct.graph.BELGraph, use_tqdm: bool = False) → None[source]¶ Add identifiers to all GO terms.
-
enrich_bioprocesses
(graph: pybel.struct.graph.BELGraph, use_tqdm: bool = False) → None[source]¶ Enrich a BEL graph’s biological processes.
-