Skip to content

Commit 6cc90f3

Browse files
committed
fix denovo
1 parent 240e403 commit 6cc90f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cando/cando.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,10 +1880,10 @@ def canpredict_denovo(self, method='count', threshold=0.0, topX=10, ind_id=None,
18801880
ss = 0.0
18811881
count = 0
18821882
for pi in indices:
1883-
si = c.sig[pi]
1883+
si = float(c.sig[pi])
18841884
p = self.proteins[pi]
18851885
if si >= threshold:
1886-
ss += c.sig[pi]
1886+
ss += si
18871887
count += 1
18881888
top_hits.append((p.id_, c, si))
18891889
if ind_id:

0 commit comments

Comments
 (0)