XspecT 0.2.3__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xspect-0.2.3/src/XspecT.egg-info → xspect-0.2.5}/PKG-INFO +4 -3
- {xspect-0.2.3 → xspect-0.2.5}/README.md +3 -2
- {xspect-0.2.3 → xspect-0.2.5}/pyproject.toml +1 -1
- {xspect-0.2.3 → xspect-0.2.5/src/XspecT.egg-info}/PKG-INFO +4 -3
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/main.py +2 -1
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/models/probabilistic_filter_svm_model.py +2 -1
- {xspect-0.2.3 → xspect-0.2.5}/.github/workflows/black.yml +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/.github/workflows/docs.yml +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/.github/workflows/pylint.yml +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/.github/workflows/pypi.yml +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/.github/workflows/test.yml +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/.gitignore +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/LICENSE +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/About.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/AddFilter.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/AddSpecies1.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/AddSpecies2.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/BF.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/ClAssT_Ergebnis1.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/ClAssT_Ergebnis2.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/ClAssT_Ergebnis3.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/ClAssT_Hauptseite.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/CommandLine_Input.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/CommandLine_results.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/CommandLine_whole.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/How2Use.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/HowtouseAspecT.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Ergebnis1.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Ergebnis2.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Ergebnis3.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Ergebnis4.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Hauptseite.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Runtime.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Runtime_Oxa.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/XspecT_Startseite.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/change_pw.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/modify_vecs.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Instructions/pictures/secretkey.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/Makefile +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/cli.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/conf.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/diagrams/probabilistic_filter_models.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/img/logo.png +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/index.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/input_data.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/installation.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/make.bat +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/quickstart.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/docs/web.md +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/setup.cfg +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/XspecT.egg-info/SOURCES.txt +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/XspecT.egg-info/dependency_links.txt +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/XspecT.egg-info/entry_points.txt +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/XspecT.egg-info/requires.txt +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/XspecT.egg-info/top_level.txt +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/__init__.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/definitions.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/download_filters.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/fastapi.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/file_io.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/model_management.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/models/__init__.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/models/probabilistic_filter_model.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/models/probabilistic_single_filter_model.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/models/result.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/pipeline.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/run.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/__init__.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/create_svm.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/extract_and_concatenate.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/html_scrap.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/ncbi_api/__init__.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/ncbi_api/download_assemblies.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/ncbi_api/ncbi_assembly_metadata.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/ncbi_api/ncbi_children_tree.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/src/xspect/train_filter/ncbi_api/ncbi_taxon_metadata.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/__init__.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/conftest.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_cli.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_file_io.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_model_management.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_model_result.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_pipeline.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_probabilistic_filter_model.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_probabilistic_filter_svm_model.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_probabilistic_single_filter_model.py +0 -0
- {xspect-0.2.3 → xspect-0.2.5}/tests/test_train.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: XspecT
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Tool to monitor and characterize pathogens using Bloom filters.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -60,7 +60,8 @@ Requires-Dist: pytest-cov; extra == "test"
|
|
|
60
60
|
[](https://github.com/pylint-dev/pylint)
|
|
61
61
|
[](https://github.com/psf/black)
|
|
62
62
|
|
|
63
|
-
<img src="/
|
|
63
|
+
<img src="/docs/img/logo.png" height="50%" width="50%">
|
|
64
|
+
|
|
64
65
|
<!-- start intro -->
|
|
65
66
|
XspecT is a Python-based tool to taxonomically classify sequence-reads (or assembled genomes) on the species and/or sub-type level using [Bloom Filters] and a [Support Vector Machine]. It also identifies existing [blaOxa-genes] and provides a list of relevant research papers for further information.
|
|
66
67
|
<br/><br/>
|
|
@@ -84,7 +85,7 @@ To install Xspect, please download the lastest 64 bit Python version and install
|
|
|
84
85
|
```
|
|
85
86
|
pip install xspect
|
|
86
87
|
```
|
|
87
|
-
Please note that
|
|
88
|
+
Please note that Windows and Alpine Linux is currently not supported.
|
|
88
89
|
|
|
89
90
|
## Usage
|
|
90
91
|
### Get the Bloomfilters
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
[](https://github.com/pylint-dev/pylint)
|
|
4
4
|
[](https://github.com/psf/black)
|
|
5
5
|
|
|
6
|
-
<img src="/
|
|
6
|
+
<img src="/docs/img/logo.png" height="50%" width="50%">
|
|
7
|
+
|
|
7
8
|
<!-- start intro -->
|
|
8
9
|
XspecT is a Python-based tool to taxonomically classify sequence-reads (or assembled genomes) on the species and/or sub-type level using [Bloom Filters] and a [Support Vector Machine]. It also identifies existing [blaOxa-genes] and provides a list of relevant research papers for further information.
|
|
9
10
|
<br/><br/>
|
|
@@ -27,7 +28,7 @@ To install Xspect, please download the lastest 64 bit Python version and install
|
|
|
27
28
|
```
|
|
28
29
|
pip install xspect
|
|
29
30
|
```
|
|
30
|
-
Please note that
|
|
31
|
+
Please note that Windows and Alpine Linux is currently not supported.
|
|
31
32
|
|
|
32
33
|
## Usage
|
|
33
34
|
### Get the Bloomfilters
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: XspecT
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Tool to monitor and characterize pathogens using Bloom filters.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -60,7 +60,8 @@ Requires-Dist: pytest-cov; extra == "test"
|
|
|
60
60
|
[](https://github.com/pylint-dev/pylint)
|
|
61
61
|
[](https://github.com/psf/black)
|
|
62
62
|
|
|
63
|
-
<img src="/
|
|
63
|
+
<img src="/docs/img/logo.png" height="50%" width="50%">
|
|
64
|
+
|
|
64
65
|
<!-- start intro -->
|
|
65
66
|
XspecT is a Python-based tool to taxonomically classify sequence-reads (or assembled genomes) on the species and/or sub-type level using [Bloom Filters] and a [Support Vector Machine]. It also identifies existing [blaOxa-genes] and provides a list of relevant research papers for further information.
|
|
66
67
|
<br/><br/>
|
|
@@ -84,7 +85,7 @@ To install Xspect, please download the lastest 64 bit Python version and install
|
|
|
84
85
|
```
|
|
85
86
|
pip install xspect
|
|
86
87
|
```
|
|
87
|
-
Please note that
|
|
88
|
+
Please note that Windows and Alpine Linux is currently not supported.
|
|
88
89
|
|
|
89
90
|
## Usage
|
|
90
91
|
### Get the Bloomfilters
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
import datetime
|
|
5
|
+
import uuid
|
|
5
6
|
import click
|
|
6
7
|
import uvicorn
|
|
7
8
|
from xspect import fastapi
|
|
@@ -77,7 +78,7 @@ def classify(genus, path, meta, step):
|
|
|
77
78
|
for idx, file_path in enumerate(file_paths):
|
|
78
79
|
run = pipeline.run(file_path)
|
|
79
80
|
time_str = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
|
|
80
|
-
save_path = get_xspect_runs_path() / f"run_{time_str}.json"
|
|
81
|
+
save_path = get_xspect_runs_path() / f"run_{time_str}_{uuid.uuid4()}.json"
|
|
81
82
|
run.save(save_path)
|
|
82
83
|
print(
|
|
83
84
|
f"[{idx+1}/{len(file_paths)}] Run finished. Results saved to '{save_path}'."
|
|
@@ -107,7 +107,7 @@ class ProbabilisticFilterSVMModel(ProbabilisticFilterModel):
|
|
|
107
107
|
),
|
|
108
108
|
filter_ids: list[str] = None,
|
|
109
109
|
step: int = 1,
|
|
110
|
-
) ->
|
|
110
|
+
) -> ModelResult:
|
|
111
111
|
"""Predict the labels of the sequences"""
|
|
112
112
|
# get scores and format them for the SVM
|
|
113
113
|
res = super().predict(sequence_input, filter_ids, step=step)
|
|
@@ -119,6 +119,7 @@ class ProbabilisticFilterSVMModel(ProbabilisticFilterModel):
|
|
|
119
119
|
self.slug(),
|
|
120
120
|
res.hits,
|
|
121
121
|
res.num_kmers,
|
|
122
|
+
sparse_sampling_step=step,
|
|
122
123
|
prediction=str(svm.predict(svm_scores)[0]),
|
|
123
124
|
)
|
|
124
125
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|