Skip to content

Commit 164f12a

Browse files
authored
Merge pull request #11 from BIONF/dev
fix sparse sampling step in runs
2 parents c8d7df2 + a91f9e3 commit 164f12a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "XspecT"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Tool to monitor and characterize pathogens using Bloom filters."
55
readme = {file = "README.md", content-type = "text/markdown"}
66
license = {file = "LICENSE"}

src/xspect/models/probabilistic_filter_svm_model.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def predict(
107107
),
108108
filter_ids: list[str] = None,
109109
step: int = 1,
110-
) -> dict:
110+
) -> ModelResult:
111111
"""Predict the labels of the sequences"""
112112
# get scores and format them for the SVM
113113
res = super().predict(sequence_input, filter_ids, step=step)
@@ -119,6 +119,7 @@ def predict(
119119
self.slug(),
120120
res.hits,
121121
res.num_kmers,
122+
sparse_sampling_step=step,
122123
prediction=str(svm.predict(svm_scores)[0]),
123124
)
124125

0 commit comments

Comments
 (0)