Skip to content

Commit

Permalink
Merge pull request #68 from bgyori/typo-fix
Browse files Browse the repository at this point in the history
Fix typo in method name in subnetwork module
  • Loading branch information
cthoyt authored Feb 2, 2022
2 parents 2b6e92d + 1c26047 commit 53a4a17
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/indra_cogex/client/subnetwork.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from typing import List, Tuple

from indra.statements import Statement

from .neo4j_client import Neo4jClient
from .queries import get_expressed_genes_in_tissue
from ..representation import Node, indra_stmts_from_relations, norm_id
from .queries import get_genes_in_tissue
from ..representation import indra_stmts_from_relations, norm_id

__all__ = [
"indra_subnetwork",
"indra_subnetwork_tissue",
]


def indra_subnetwork(
Expand Down Expand Up @@ -56,6 +62,6 @@ def indra_subnetwork_tissue(
:
The subnetwork induced by the given nodes and expressed in the given tissue.
"""
genes = get_expressed_genes_in_tissue(client, tissue)
genes = get_genes_in_tissue(client, tissue)
relevant_genes = {g.grounding() for g in genes} & set(nodes)
return indra_subnetwork(client, relevant_genes)

0 comments on commit 53a4a17

Please sign in to comment.