Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

force to spawn #51

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To use these with - for example - `singularity`, simply run:
If you are having issues with `conda`, you can instead try installing directly from the repository:

```sh
pip install https://github.com/SwiftSeal/resistify/archive/refs/tags/v1.1.4.tar.gz
pip install https://github.com/SwiftSeal/resistify/archive/refs/tags/v1.1.5.tar.gz
```

Note that `resistify` requires `hmmer` to be installed and available in your system's PATH, which will not be installed automatically when using `pip`.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "resistify"
version = "1.1.4"
version = "1.1.5"
dependencies = [
"scikit-learn>=0.24.2",
"numpy",
Expand Down
2 changes: 1 addition & 1 deletion resistify/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.4"
__version__ = "1.1.5"
4 changes: 2 additions & 2 deletions resistify/nlrexpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pickle
import os
import tempfile
from multiprocessing import cpu_count
from multiprocessing import cpu_count, get_context
import concurrent.futures
from threadpoolctl import threadpool_limits
import shutil
Expand Down Expand Up @@ -152,7 +152,7 @@ def nlrexpress(sequences, search_type, chunk_size, threads):
progress_logger = ProgressLogger(len(batches))
results = []
with concurrent.futures.ProcessPoolExecutor(
max_workers=-(-threads // 2)
max_workers=-(-threads // 2), mp_context=get_context("spawn")
) as executor:
futures = [
executor.submit(nlrexpress_subprocess, (batch, jackhmmer_db.name, models))
Expand Down