Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Larralde
pyhmmer
Commits
4143827f
Commit
4143827f
authored
Jun 27, 2022
by
Martin Larralde
Browse files
Fix `TopHits.searched_nodes` returning search residues instead of searched nodes
parent
893f2fae
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyhmmer/plan7.pyx
View file @
4143827f
...
...
@@ -6514,7 +6514,7 @@ cdef class TopHits:
.. versionadded:: 0.5.0
"""
return
self
.
_pli
.
n
r
es
return
self
.
_pli
.
n
nod
es
@
property
def
searched_sequences
(
self
):
...
...
pyhmmer/tests/test_plan7/test_tophits.py
View file @
4143827f
...
...
@@ -125,7 +125,7 @@ class TestTopHits(unittest.TestCase):
def
test_searched_nodes
(
self
):
empty
=
TopHits
()
self
.
assertEqual
(
empty
.
searched_nodes
,
0
)
self
.
assertEqual
(
self
.
hits
.
searched_nodes
,
682583
)
self
.
assertEqual
(
self
.
hits
.
searched_nodes
,
self
.
hmm
.
M
)
def
test_searched_residues
(
self
):
empty
=
TopHits
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment