Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 25, 2023
1 parent 3f1c5f2 commit 637b93a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
2 changes: 0 additions & 2 deletions src/nleval/data/network/funcoup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class FunCoup(BaseNDExData):
The edge weights are PFC values, which is a probabilistic estimation about
whether a pair of genes are functionally coupled.
https://funcoup5.scilifelab.se/help/#Citation
"""
Expand Down
3 changes: 2 additions & 1 deletion src/nleval/label/filters/nonred.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class LabelsetNonRedFilter(BaseFilter):
"""Filter out redundant labelsets in a labelset collection.
The detailed procedure can be found in the supplementary data of
https://doi.org/10.1093/bioinformatics/btaa150 In brief, given a labelset
https://doi.org/10.1093/bioinformatics/btaa150
In brief, given a labelset
collection, a graph of labelsets if first constructed based on the
redundancy score function of interest. Here, we use the combination of
Jaccard index and overlap coefficient. Then, for each connected component in
Expand Down
10 changes: 1 addition & 9 deletions test/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,15 +1120,7 @@ def test_restrict_to_branch(self):
self.assertRaises(IDNotExistError, graph.restrict_to_branch, "g")

def test_read_obo(self):
r"""
a
/ | \
b c (x, y) d
| \ /
e [z] f
"""
r"""A / | \ b c (x, y) d | \ / e [z] f."""
obo_path = osp.join(SAMPLE_DATA_DIR, "toy_ontology.obo")
with self.subTest(xref_prefix=None):
# Do not capture xref when xref_prefix is unset
Expand Down
12 changes: 4 additions & 8 deletions test/test_label/filters/test_nonred.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@
def case1():
r"""Labelset collection test case 1.
When threshold is set to 0.49, and use overlap (or threshold set to 0.3
and use jaccard):
lb0
| \
lb1 lb2
|
lb3
When threshold is set to 0.49, and use overlap (or threshold set to 0.3 and
use jaccard):
lb0 | \ lb1 lb2 | lb3
The expected outcome is thus: ['lb0', 'lb3']
Expand Down

0 comments on commit 637b93a

Please sign in to comment.