Skip to content

Commit 912077c

Browse files
committed
remove separator
1 parent bc81c8f commit 912077c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

goatools/godag/go_tasks.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ..godag.consts import RELATIONSHIP_SET
99

1010

11-
# ------------------------------------------------------------------------------------
1211
def get_go2parents(go2obj, relationships):
1312
"""Get set of parents GO IDs, including parents through user-specfied relationships"""
1413
if (
@@ -28,7 +27,6 @@ def get_go2parents(go2obj, relationships):
2827
return go2parents
2928

3029

31-
# ------------------------------------------------------------------------------------
3230
def get_go2children(go2obj, relationships):
3331
"""Get set of children GO IDs, including children through user-specfied relationships"""
3432
if (
@@ -48,7 +46,6 @@ def get_go2children(go2obj, relationships):
4846
return go2children
4947

5048

51-
# ------------------------------------------------------------------------------------
5249
def get_go2parents_isa(go2obj):
5350
"""Get set of immediate parents GO IDs"""
5451
go2parents = {}
@@ -59,7 +56,6 @@ def get_go2parents_isa(go2obj):
5956
return go2parents
6057

6158

62-
# ------------------------------------------------------------------------------------
6359
def get_go2children_isa(go2obj):
6460
"""Get set of immediate children GO IDs"""
6561
go2children = {}
@@ -70,7 +66,6 @@ def get_go2children_isa(go2obj):
7066
return go2children
7167

7268

73-
# ------------------------------------------------------------------------------------
7469
def get_go2ancestors(terms, relationships, prt=None):
7570
"""Get GO-to- ancestors (all parents)"""
7671
if not relationships:
@@ -105,7 +100,6 @@ def get_go2descendants(terms, relationships, prt=None):
105100
return get_id2lowerselect(terms, relationships)
106101

107102

108-
# ------------------------------------------------------------------------------------
109103
def get_go2depth(goobjs, relationships):
110104
"""Get depth of each object"""
111105
if not relationships:
@@ -115,7 +109,6 @@ def get_go2depth(goobjs, relationships):
115109
return get_go2reldepth(goobjs, relationships)
116110

117111

118-
# ------------------------------------------------------------------------------------
119112
def get_id2parents(objs):
120113
"""Get all parent IDs up the hierarchy"""
121114
id2parents = {}
@@ -177,7 +170,6 @@ def get_relationship_targets(item_ids, relationships, id2rec):
177170
return reltgt_objs_all
178171

179172

180-
# ------------------------------------------------------------------------------------
181173
# pylint: disable=too-few-public-methods
182174
class IdToUpperSelect:
183175
"""Get all ancestor IDs, including all parents and IDs up selected relationships"""
@@ -237,9 +229,6 @@ def _get_id2lowerselect(self, item_id, item_obj):
237229
return child_ids
238230

239231

240-
# ------------------------------------------------------------------------------------
241-
242-
243232
def _get_id2parents(id2parents, item_id, item_obj):
244233
"""Add the parent item IDs for one item object and their parents."""
245234
if item_id in id2parents:
@@ -295,7 +284,6 @@ def _get_id2lower(id2lower, item_id, item_obj, cache: set):
295284
return lower_ids
296285

297286

298-
# ------------------------------------------------------------------------------------
299287
class CurNHigher:
300288
"""Fill id2obj with item IDs in relationships."""
301289

0 commit comments

Comments
 (0)