Skip to content

Commit 7ee8248

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 051d894 commit 7ee8248

3 files changed

Lines changed: 10 additions & 19 deletions

File tree

src/obnb/data/annotation/diseases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class DISEASESAnnotation(BaseAnnotationData):
1414
This is the ``integrated`` disease annotation channel from the Jensen Lab
1515
DISEASES annotation database, which combines evidences from *text-mining*,
1616
*knowledge*, and *experiment* channels. See the
17-
`DISEASES <https://diseases.jensenlab.org/About>`_ webpage for more
17+
`DISEASES <https://diseases.jensenlab.org/About>`_
18+
webpage for more
1819
information
1920
2021
"""

src/obnb/graph/ontology.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
class OntologyGraph(DirectedSparseGraph):
2727
"""Ontology graph.
2828
29-
An ontology graph is a directed acyclic graph (DAG). Here, we represent
30-
this data type using DirectedSparseGraph, which keeps track of both the
31-
forward direction of edges (``_edge_data``) and the reversed direction of
32-
edges (``_rev_edge_data``). This bidirectional awareness is useful in the
33-
context of propagating information "upwards" or "downloads".
29+
An ontology graph is a directed acyclic graph (DAG). Here, we represent this
30+
data type using DirectedSparseGraph, which keeps track of both the forward
31+
direction of edges (``_edge_data``) and the reversed direction of edges
32+
(``_rev_edge_data``). This bidirectional awareness is useful in the context
33+
of propagating information "upwards" or "downloads".
3434
3535
The ``idmap`` attribute is swapped with a more functional ``IDProp`` object
3636
that allows the storing of node information such as the name and the node

test/test_graph.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,21 +1079,11 @@ def test_ancestors(self):
10791079
self.assertEqual(graph.ancestors("f"), {"a", "c", "d"})
10801080

10811081
def test_restrict_to_branch(self):
1082-
r"""
1083-
1084-
a
1085-
| \
1086-
b d
1087-
| | \
1088-
c e [z] f [x, y]
1089-
1090-
|
1091-
V
1082+
r"""A | \ b d | | \ c e [z] f [x, y]
10921083
1093-
d
1094-
| \
1095-
e [z] f [x, y]
1084+
| V
10961085
1086+
d | \ e [z] f [x, y]
10971087
10981088
"""
10991089
graph = OntologyGraph()

0 commit comments

Comments
 (0)