diff --git a/modules/hmm_utils.py b/modules/hmm_utils.py index 8bda4a8..70feae7 100644 --- a/modules/hmm_utils.py +++ b/modules/hmm_utils.py @@ -157,7 +157,7 @@ def run(self) -> None: ) weights[-2, :] = weights[-1, :] - weights = weights / weights.sum(axis=1, keepdims=True) + weights = np.round(weights / weights.sum(axis=1, keepdims=True), 8) weights[weights < 1 / (self.matches.size + 1)] = 0 # create sparse matrix of entire reference panel diff --git a/pyproject.toml b/pyproject.toml index e9cae49..de64701 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "selphi" -version = "1.5.2" +version = "1.5.3" description = "Genotype imputation using PBWT and haplotype selection" authors = ["Adriano De Marino ", "Sandra Bohn "] readme = "README.md" @@ -15,5 +15,5 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.commitizen] -version = "1.5.2" +version = "1.5.3" version_files = ["pyproject.toml:version"]