antigen-ml 1.0.0__py3-none-any.whl
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.
- antigen_ml/__init__.py +10 -0
- antigen_ml/_entry.py +34 -0
- antigen_ml/gui.py +688 -0
- antigen_ml/predict.py +156 -0
- antigen_ml/src/__init__.py +1 -0
- antigen_ml/src/data.py +184 -0
- antigen_ml/src/download_data.py +495 -0
- antigen_ml/src/evaluate.py +87 -0
- antigen_ml/src/features.py +176 -0
- antigen_ml/src/models_classical.py +51 -0
- antigen_ml/src/models_deep.py +170 -0
- antigen_ml/src/struct_features.py +305 -0
- antigen_ml/train.py +412 -0
- antigen_ml-1.0.0.dist-info/METADATA +413 -0
- antigen_ml-1.0.0.dist-info/RECORD +19 -0
- antigen_ml-1.0.0.dist-info/WHEEL +5 -0
- antigen_ml-1.0.0.dist-info/entry_points.txt +6 -0
- antigen_ml-1.0.0.dist-info/licenses/LICENSE +21 -0
- antigen_ml-1.0.0.dist-info/top_level.txt +1 -0
antigen_ml/__init__.py
ADDED
antigen_ml/_entry.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Entry-point wrappers called by the console_scripts / gui_scripts installed
|
|
3
|
+
by pip. gui.py / train.py / predict.py live inside the antigen_ml package
|
|
4
|
+
directory; each script uses ROOT = Path(__file__).resolve().parent and
|
|
5
|
+
sys.path.insert(0, ROOT / "src") so all internal imports resolve correctly
|
|
6
|
+
whether the package is pip-installed or run from source.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
import runpy
|
|
11
|
+
import sys
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
# After pip install antigen-ml, this file is at:
|
|
15
|
+
# site-packages/antigen_ml/_entry.py
|
|
16
|
+
# The scripts (gui.py, train.py, predict.py) and src/ are siblings:
|
|
17
|
+
# site-packages/antigen_ml/gui.py
|
|
18
|
+
# site-packages/antigen_ml/src/
|
|
19
|
+
_PKG = Path(__file__).resolve().parent
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _run(name: str) -> None:
|
|
23
|
+
script = _PKG / name
|
|
24
|
+
if not script.exists():
|
|
25
|
+
sys.exit(
|
|
26
|
+
f"[antigen-ml] Cannot find {script}.\n"
|
|
27
|
+
"Re-install: pip install --force-reinstall antigen-ml"
|
|
28
|
+
)
|
|
29
|
+
runpy.run_path(str(script), run_name="__main__")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def gui() -> None: _run("gui.py")
|
|
33
|
+
def train() -> None: _run("train.py")
|
|
34
|
+
def predict() -> None: _run("predict.py")
|