Subnetwork Client (indra_cogex.client.subnetwork
)
Queries that generate statement subnetworks.
- indra_mediated_subnetwork(nodes, *, client)[source]
Return the INDRA Statement subnetwork induced pairs of statements between the given nodes.
For example, if gene A and gene B are given as the query, find statements mediated by X such that A -> X -> B.
- indra_subnetwork(nodes, *, client)[source]
Return the INDRA Statement subnetwork induced by the given nodes.
- indra_subnetwork_go(go_term, *, client, include_indirect=False, mediated=False, upstream_controllers=False, downstream_targets=False)[source]
Return the INDRA Statement subnetwork induced by the given GO term.
- Parameters:
go_term (
Tuple
[str
,str
]) – The GO term to query. Example:("GO", "GO:0006915")
client (
Neo4jClient
) – The Neo4j client.include_indirect (
bool
) – Should ontological children of the given GO term be queried as well? Defaults to False.mediated (
bool
) – Should relations A->X->B be included for X not associated to the given GO term? Defaults to False.upstream_controllers (
bool
) – Should relations A<-X->B be included for upstream controller X not associated to the given GO term? Defaults to False.downstream_targets (
bool
) – Should relations A->X<-B be included for downstream target X not associated to the given GO term? Defaults to False.
- Return type:
List
[Statement
]- Returns:
The INDRA statement subnetwork induced by GO term.
- indra_subnetwork_relations(nodes, *, client)[source]
Return the subnetwork induced by the given nodes as a set of Relations.