Skip to content

Commit

Permalink
black formating
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Oct 24, 2023
1 parent 5b132cb commit cd226f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions graphkb/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def _get_tumourigenesis_genes_list(
sources: List[str],
ignore_cache: bool = False,
) -> List[Ontology]:

statements = cast(
List[Statement],
conn.query(
Expand All @@ -37,13 +36,13 @@ def _get_tumourigenesis_genes_list(
"filters": {
"AND": [
{"source": {"target": "Source", "filters": {"name": sources}}},
{"relevance": {"target": "Vocabulary", "filters": {"name": relevance}}}
{"relevance": {"target": "Vocabulary", "filters": {"name": relevance}}},
]
},
"returnProperties": [f"subject.{prop}" for prop in GENE_RETURN_PROPERTIES],
},
ignore_cache=ignore_cache,
)
),
)

genes: Dict[str, Ontology] = {}
Expand Down Expand Up @@ -89,7 +88,9 @@ def get_cancer_genes(conn: GraphKBConnection) -> List[Ontology]:
Returns:
gene (Feature) records
"""
return _get_tumourigenesis_genes_list(conn, CANCER_GENE, [ONCOKB_SOURCE_NAME, TSO500_SOURCE_NAME])
return _get_tumourigenesis_genes_list(

Check warning on line 91 in graphkb/genes.py

View check run for this annotation

Codecov / codecov/patch

graphkb/genes.py#L91

Added line #L91 was not covered by tests
conn, CANCER_GENE, [ONCOKB_SOURCE_NAME, TSO500_SOURCE_NAME]
)


def get_therapeutic_associated_genes(graphkb_conn: GraphKBConnection) -> List[Ontology]:
Expand Down

0 comments on commit cd226f6

Please sign in to comment.