asebind 0.1.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.
Files changed (45) hide show
  1. asebind/__init__.py +3 -0
  2. asebind/__main__.py +4 -0
  3. asebind/ase/__init__.py +1 -0
  4. asebind/ase/betabinom.py +173 -0
  5. asebind/benchmark/__init__.py +1 -0
  6. asebind/benchmark/asbdata.py +107 -0
  7. asebind/benchmark/clean.py +38 -0
  8. asebind/benchmark/features.py +71 -0
  9. asebind/benchmark/metrics.py +69 -0
  10. asebind/benchmark/models.py +151 -0
  11. asebind/benchmark/retest.py +183 -0
  12. asebind/benchmark/splits.py +61 -0
  13. asebind/cli.py +302 -0
  14. asebind/cli_model.py +539 -0
  15. asebind/config.py +340 -0
  16. asebind/data/asebind.example.yaml +56 -0
  17. asebind/finemap.py +86 -0
  18. asebind/haplotype.py +141 -0
  19. asebind/io/__init__.py +1 -0
  20. asebind/io/variants.py +107 -0
  21. asebind/model/__init__.py +1 -0
  22. asebind/model/adastra.py +113 -0
  23. asebind/model/classifier.py +122 -0
  24. asebind/model/context.py +60 -0
  25. asebind/model/features.py +201 -0
  26. asebind/model/other_motifs.py +168 -0
  27. asebind/model/train.py +331 -0
  28. asebind/motifs/__init__.py +1 -0
  29. asebind/motifs/escore.py +112 -0
  30. asebind/motifs/pwm.py +203 -0
  31. asebind/mpra.py +94 -0
  32. asebind/predict.py +163 -0
  33. asebind/resources/__init__.py +1 -0
  34. asebind/resources/ancestral.py +74 -0
  35. asebind/resources/conservation.py +77 -0
  36. asebind/resources/fetch.py +227 -0
  37. asebind/resources/genome.py +93 -0
  38. asebind/resources/registry.py +304 -0
  39. asebind/runrecord.py +108 -0
  40. asebind/tools.py +170 -0
  41. asebind-0.1.0.dist-info/METADATA +138 -0
  42. asebind-0.1.0.dist-info/RECORD +45 -0
  43. asebind-0.1.0.dist-info/WHEEL +4 -0
  44. asebind-0.1.0.dist-info/entry_points.txt +2 -0
  45. asebind-0.1.0.dist-info/licenses/LICENSE +21 -0
asebind/runrecord.py ADDED
@@ -0,0 +1,108 @@
1
+ """Run record written next to every output (I-4): config, tools, resources, packages, platform."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import hashlib
6
+ import json
7
+ import platform
8
+ import sys
9
+ from collections.abc import Iterable, Sequence
10
+ from datetime import datetime, timezone
11
+ from importlib import metadata
12
+ from pathlib import Path
13
+ from typing import Any
14
+
15
+ from asebind import __version__
16
+ from asebind.config import ResolvedConfig
17
+ from asebind.tools import ResolvedTool
18
+
19
+ RECORD_NAME = "asebind_run.json"
20
+
21
+ # Packages whose versions can change numbers; recorded when installed.
22
+ TRACKED_PACKAGES = (
23
+ "asebind",
24
+ "click",
25
+ "pydantic",
26
+ "PyYAML",
27
+ "numpy",
28
+ "pandas",
29
+ "scipy",
30
+ "scikit-learn",
31
+ "statsmodels",
32
+ "openpyxl",
33
+ "matplotlib",
34
+ "pysam",
35
+ "tensorflow",
36
+ "torch",
37
+ )
38
+
39
+
40
+ def sha256(path: Path, chunk: int = 1 << 20) -> str:
41
+ h = hashlib.sha256()
42
+ with path.open("rb") as fh:
43
+ while block := fh.read(chunk):
44
+ h.update(block)
45
+ return h.hexdigest()
46
+
47
+
48
+ def resource_entry(p: Path) -> dict[str, Any]:
49
+ """A file: size and sha256. A folder: file count, total size and sha256 of its sorted (name, size) listing."""
50
+ if p.is_dir():
51
+ files = sorted(f for f in p.rglob("*") if f.is_file())
52
+ listing = "".join(f"{f.relative_to(p).as_posix()}\t{f.stat().st_size}\n" for f in files)
53
+ return {
54
+ "path": str(p),
55
+ "kind": "folder",
56
+ "files": len(files),
57
+ "bytes": sum(f.stat().st_size for f in files),
58
+ "listing_sha256": hashlib.sha256(listing.encode()).hexdigest(),
59
+ }
60
+ return {"path": str(p), "bytes": p.stat().st_size, "sha256": sha256(p)}
61
+
62
+
63
+ def package_versions(names: Iterable[str] = TRACKED_PACKAGES) -> dict[str, str]:
64
+ out = {}
65
+ for name in names:
66
+ try:
67
+ out[name] = metadata.version(name)
68
+ except metadata.PackageNotFoundError:
69
+ continue
70
+ return out
71
+
72
+
73
+ def build_record(
74
+ command: Sequence[str],
75
+ resolved: ResolvedConfig,
76
+ tools: Iterable[ResolvedTool] = (),
77
+ resources: Iterable[Path] = (),
78
+ ) -> dict[str, Any]:
79
+ return {
80
+ "asebind_version": __version__,
81
+ "created_utc": datetime.now(timezone.utc).isoformat(timespec="seconds"),
82
+ "command": list(command),
83
+ "config_file": str(resolved.yaml_path) if resolved.yaml_path else None,
84
+ "config_layers": resolved.layers,
85
+ "config": resolved.as_dict(),
86
+ "config_sources": {k: src for k, _, src in resolved.leaves() if src != "default"},
87
+ "tools": [
88
+ {
89
+ "name": t.name,
90
+ "found": t.found,
91
+ "method": t.method,
92
+ "executable": t.executable,
93
+ "version": t.version,
94
+ }
95
+ for t in tools
96
+ ],
97
+ "resources": [resource_entry(Path(p)) for p in resources],
98
+ "python": sys.version.split()[0],
99
+ "platform": platform.platform(),
100
+ "packages": package_versions(),
101
+ }
102
+
103
+
104
+ def write_record(outdir: Path, record: dict[str, Any], name: str = RECORD_NAME) -> Path:
105
+ outdir.mkdir(parents=True, exist_ok=True)
106
+ path = outdir / name
107
+ path.write_text(json.dumps(record, indent=2, sort_keys=False) + "\n", encoding="utf-8")
108
+ return path
asebind/tools.py ADDED
@@ -0,0 +1,170 @@
1
+ """Locate external tools (FIMO, bedtools, samtools ...) from the configuration (docs/CONFIG.md, I-25).
2
+
3
+ Order tried for each tool: explicit ``path`` -> HPC ``module`` -> ``conda_env`` -> ``container`` -> ``PATH``.
4
+ The first method that yields a working executable is used; ``asebind doctor`` reports which one and why the
5
+ others were skipped. No cluster path is hard-coded here: everything comes from the config.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import os
11
+ import shlex
12
+ import shutil
13
+ import subprocess
14
+ from collections.abc import Callable, Sequence
15
+ from dataclasses import dataclass, field
16
+ from pathlib import Path
17
+
18
+ from asebind.config import ToolConfig
19
+
20
+ Runner = Callable[[Sequence[str], float], "subprocess.CompletedProcess[str]"]
21
+
22
+ # Child Python processes must not inherit a module-set PYTHONPATH (it breaks venvs on our cluster).
23
+ CLEAN_PYTHON_ENV = "unset PYTHONPATH PYTHONHOME"
24
+
25
+
26
+ def default_runner(cmd: Sequence[str], timeout: float) -> subprocess.CompletedProcess[str]:
27
+ return subprocess.run(list(cmd), capture_output=True, text=True, timeout=timeout, check=False)
28
+
29
+
30
+ @dataclass
31
+ class ResolvedTool:
32
+ name: str
33
+ found: bool
34
+ method: str | None = None # path | module | conda | container | PATH
35
+ executable: str | None = None
36
+ prefix: list[str] = field(default_factory=list) # argv prefix for module/conda/container
37
+ setup: str = "" # shell commands run before the tool (module method only)
38
+ version: str | None = None
39
+ tried: list[str] = field(default_factory=list) # one line per method tried
40
+
41
+ def argv(self, args: Sequence[str]) -> list[str]:
42
+ """Full command line to run this tool with ``args``."""
43
+ if not self.found or self.executable is None:
44
+ raise RuntimeError(f"tool {self.name!r} was not found: " + "; ".join(self.tried))
45
+ if self.method == "module":
46
+ cmd = " ".join(shlex.quote(a) for a in [self.executable, *args])
47
+ return [*self.prefix, f"{self.setup} && {cmd}"]
48
+ return [*self.prefix, self.executable, *args]
49
+
50
+
51
+ def _first_line(text: str) -> str | None:
52
+ for line in text.splitlines():
53
+ line = line.strip()
54
+ if line:
55
+ return line[:200]
56
+ return None
57
+
58
+
59
+ def _version(argv: list[str], runner: Runner, timeout: float) -> str | None:
60
+ try:
61
+ cp = runner(argv, timeout)
62
+ except (OSError, subprocess.TimeoutExpired):
63
+ return None
64
+ return _first_line(cp.stdout) or _first_line(cp.stderr)
65
+
66
+
67
+ def _from_path(spec: str, exe: str) -> str | None:
68
+ p = Path(spec).expanduser()
69
+ if p.is_dir():
70
+ for cand in (p / exe, p / f"{exe}.exe"):
71
+ if cand.is_file():
72
+ return str(cand)
73
+ return None
74
+ return str(p) if p.is_file() else None
75
+
76
+
77
+ def resolve_tool(
78
+ name: str,
79
+ cfg: ToolConfig,
80
+ runner: Runner = default_runner,
81
+ which: Callable[[str], str | None] = shutil.which,
82
+ timeout: float = 30.0,
83
+ ) -> ResolvedTool:
84
+ exe = cfg.executable or name
85
+ res = ResolvedTool(name=name, found=False)
86
+
87
+ # 1. explicit path
88
+ if cfg.path:
89
+ hit = _from_path(cfg.path, exe)
90
+ if hit:
91
+ res.found, res.method, res.executable = True, "path", hit
92
+ res.version = _version([hit, *cfg.version_args], runner, timeout)
93
+ return res
94
+ res.tried.append(f"path: {cfg.path} has no {exe} executable")
95
+
96
+ # 2. HPC environment module, loaded in a login shell for this subprocess only
97
+ if cfg.module:
98
+ bash = which("bash")
99
+ if bash is None:
100
+ res.tried.append(f"module {cfg.module}: no bash to run `module load`")
101
+ else:
102
+ script = f"{CLEAN_PYTHON_ENV}; module load {shlex.quote(cfg.module)}"
103
+ try:
104
+ cp = runner([bash, "-lc", f"{script} && command -v {shlex.quote(exe)}"], timeout)
105
+ where = _first_line(cp.stdout) if cp.returncode == 0 else None
106
+ except (OSError, subprocess.TimeoutExpired) as e:
107
+ where = None
108
+ res.tried.append(f"module {cfg.module}: {e}")
109
+ if where:
110
+ res.found, res.method, res.executable = True, "module", exe
111
+ res.prefix = [bash, "-lc"]
112
+ res.setup = script
113
+ res.version = _version(res.argv(cfg.version_args), runner, timeout)
114
+ res.tried.append(f"module {cfg.module}: {where}")
115
+ return res
116
+ if not any(t.startswith(f"module {cfg.module}") for t in res.tried):
117
+ res.tried.append(f"module {cfg.module}: `module load` failed or {exe} not on PATH after it")
118
+
119
+ # 3. conda environment (name or prefix)
120
+ if cfg.conda_env:
121
+ conda = which("conda") or which("mamba")
122
+ if conda is None:
123
+ res.tried.append(f"conda_env {cfg.conda_env}: conda not found")
124
+ else:
125
+ flag = "-p" if ("/" in cfg.conda_env or os.sep in cfg.conda_env) else "-n"
126
+ prefix = [conda, "run", flag, cfg.conda_env]
127
+ version = _version([*prefix, exe, *cfg.version_args], runner, timeout)
128
+ if version is not None:
129
+ res.found, res.method, res.executable, res.prefix, res.version = (
130
+ True,
131
+ "conda",
132
+ exe,
133
+ prefix,
134
+ version,
135
+ )
136
+ return res
137
+ res.tried.append(f"conda_env {cfg.conda_env}: {exe} did not run")
138
+
139
+ # 4. container image (apptainer / singularity / docker)
140
+ if cfg.container:
141
+ engine = which("apptainer") or which("singularity") or which("docker")
142
+ if engine is None:
143
+ res.tried.append(f"container {cfg.container}: no apptainer, singularity or docker")
144
+ else:
145
+ is_docker = Path(engine).stem.lower() == "docker"
146
+ prefix = [engine, "run", "--rm", cfg.container] if is_docker else [engine, "exec", cfg.container]
147
+ version = _version([*prefix, exe, *cfg.version_args], runner, timeout)
148
+ if version is not None:
149
+ res.found, res.method, res.executable, res.prefix, res.version = (
150
+ True,
151
+ "container",
152
+ exe,
153
+ prefix,
154
+ version,
155
+ )
156
+ return res
157
+ res.tried.append(f"container {cfg.container}: {exe} did not run")
158
+
159
+ # 5. PATH
160
+ hit = which(exe)
161
+ if hit:
162
+ res.found, res.method, res.executable = True, "PATH", hit
163
+ res.version = _version([hit, *cfg.version_args], runner, timeout)
164
+ return res
165
+ res.tried.append(f"PATH: {exe} not found")
166
+ return res
167
+
168
+
169
+ def resolve_all(tools: dict[str, ToolConfig], **kw) -> list[ResolvedTool]:
170
+ return [resolve_tool(name, cfg, **kw) for name, cfg in tools.items()]
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.5
2
+ Name: asebind
3
+ Version: 0.1.0
4
+ Summary: Predict variant effects on transcription-factor binding and test them against allele-specific expression
5
+ Project-URL: Homepage, https://github.com/AlsammanAlsamman/ASEbind
6
+ Project-URL: Repository, https://github.com/AlsammanAlsamman/ASEbind
7
+ Project-URL: Documentation, https://github.com/AlsammanAlsamman/ASEbind/blob/main/docs/ASEbind_tutorial.pdf
8
+ Project-URL: Issues, https://github.com/AlsammanAlsamman/ASEbind/issues
9
+ Author: The ASEbind authors
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: click>=8.1
19
+ Requires-Dist: joblib>=1.2
20
+ Requires-Dist: numpy>=1.24
21
+ Requires-Dist: openpyxl>=3.1
22
+ Requires-Dist: pandas>=2.0
23
+ Requires-Dist: pydantic>=2.5
24
+ Requires-Dist: pyyaml>=6.0
25
+ Requires-Dist: scikit-learn>=1.3
26
+ Provides-Extra: cnn
27
+ Requires-Dist: tensorflow-cpu>=2.13; (platform_system != 'Darwin') and extra == 'cnn'
28
+ Requires-Dist: tensorflow>=2.13; (platform_system == 'Darwin') and extra == 'cnn'
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=7.4; extra == 'dev'
31
+ Requires-Dist: ruff>=0.4; extra == 'dev'
32
+ Provides-Extra: evolution
33
+ Requires-Dist: pybigwig>=0.3.22; extra == 'evolution'
34
+ Description-Content-Type: text/markdown
35
+
36
+ <p align="center">
37
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/ASEbind/main/docs/assets/asebind_logo_rounded.png" alt="ASEbind" width="280">
38
+ </p>
39
+
40
+ <p align="center">
41
+ <b>Does this variant change transcription-factor binding?</b><br>
42
+ Calibrated probabilities of gain, loss or no change for every SNP &times; TF,
43
+ learned from allele-specific binding measured in ChIP-seq.
44
+ </p>
45
+
46
+ <p align="center">
47
+ <img src="https://img.shields.io/badge/python-%E2%89%A53.10-2a78d6" alt="Python 3.10+">
48
+ <img src="https://img.shields.io/badge/licence-MIT-d9d8d3" alt="MIT licence">
49
+ <a href="https://pypi.org/project/asebind/">
50
+ <img src="https://img.shields.io/pypi/v/asebind?color=2a78d6" alt="PyPI"></a>
51
+ <img src="https://img.shields.io/badge/TFs-275-e34948" alt="275 TFs">
52
+ </p>
53
+
54
+ ---
55
+
56
+ ## Why ASEbind
57
+
58
+ - **Learned from measurements, not motif scores alone.** 612,864 SNP &times; TF observations from
59
+ [ADASTRA](https://adastra.autosome.org) allele-specific ChIP-seq: 75,584 gains, 124,798 losses and
60
+ 412,482 measured *no-change* sites.
61
+ - **275 TFs**, 65 of them with protein-binding-microarray evidence as well as a motif.
62
+ - **Probabilities you can trust as probabilities.** Calibration error 0.028, against
63
+ 0.217 for plain gradient boosting.
64
+ - **Consistent by construction.** Swapping the two alleles swaps gain and loss exactly.
65
+ - **Careful with input.** Genome build check, swapped and minus-strand alleles fixed and flagged, A/T and C/G SNPs
66
+ flagged.
67
+
68
+ ## How it works
69
+
70
+ <p align="center">
71
+ <img src="https://raw.githubusercontent.com/AlsammanAlsamman/ASEbind/main/docs/assets/how_it_works.svg" alt="How ASEbind works" width="100%">
72
+ </p>
73
+
74
+ Steps 1-6 run on your variants. The model in step 5 was trained once on measured allele-specific
75
+ binding and tested on SNPs, chromosomes and TFs it had not seen.
76
+
77
+ ## Quick start
78
+
79
+ ```bash
80
+ pip install asebind
81
+ asebind fetch asebind_model hocomoco_v12 jaspar2024 hg19 # model, motifs and genome (~1 GB, once)
82
+ asebind predict my_variants.vcf --out results # P(gain/loss/none) per variant x TF
83
+
84
+ # the worked example below needs the repository's example files
85
+ git clone https://github.com/AlsammanAlsamman/ASEbind.git && cd ASEbind
86
+ asebind --config examples/quickstart/asebind.yaml predict # -> results/quickstart/
87
+ ```
88
+
89
+ Five well-studied regulatory SNPs, scored with no tuning (`examples/quickstart/expected/`; top calls, P in brackets):
90
+
91
+ | SNP | Gene | What is known | ASEbind |
92
+ |---|---|---|---|
93
+ | `rs12740374` | SORT1 | the T allele creates a C/EBP site (Musunuru et al. 2010) | CEBPA gained (0.69), CEBPB gained (0.68), CEBPG gained (0.57) |
94
+ | `rs6983267` | MYC 8q24 | the G allele binds TCF7L2 more strongly (Pomerantz et al. 2009) | LEF1 gained (0.65), TCF7 gained (0.62), PRDM1 lost (0.56) |
95
+ | `rs1421085` | FTO | the C allele disrupts an ARID5B motif (Claussnitzer et al. 2015) | ONECUT2 lost (0.66) |
96
+ | `rs4784227` | TOX3 | the T allele increases FOXA1 binding (Cowper-Sal-lari et al. 2012) | MAFG gained (0.51) |
97
+ | `rs10993994` | MSMB | the T allele lowers promoter activity and CREB binding (Lou et al. 2009) | CREB1 lost (0.76), ATF1 lost (0.63), CREM lost (0.53) |
98
+
99
+ A step-by-step guide with the output explained is in **[docs/ASEbind_tutorial.pdf](https://github.com/AlsammanAlsamman/ASEbind/blob/main/docs/ASEbind_tutorial.pdf)**.
100
+
101
+ ## How accurate is it
102
+
103
+ Held out from training (5 folds; `benchmarks/PHASE3_REPORT.md`):
104
+
105
+ | Held out | Gain vs loss AUC | Macro AUC (3 classes) | Calibration error | Calibration error, plain boosting |
106
+ |---|---|---|---|---|
107
+ | unseen SNPs | 0.63 | 0.59 | 0.028 | 0.217 |
108
+ | unseen chromosomes | 0.63 | 0.59 | 0.029 | 0.218 |
109
+ | unseen TFs | 0.63 | 0.58 | 0.030 | 0.213 |
110
+
111
+ Telling gain from loss from sequence alone is hard, and the AUCs are modest. Use the probabilities, not only the
112
+ calls.
113
+
114
+ ## What it does not do
115
+
116
+ Tested genome-wide and reported as found (`benchmarks/validation_v1/`):
117
+
118
+ - **Predict which copy of a gene is more expressed.** Summed over the variants on each copy, binding changes did
119
+ not explain Geuvadis allele-specific expression beyond the eQTL itself. Where the lead eQTL could not explain it,
120
+ direction agreement was 52% (95% CI 47%-57%). The positive
121
+ control, the lead eQTL allele, agreed 85%.
122
+ - **Improve fine-mapping as a prior.** No gain in ranking MPRA-validated variants on held-out chromosomes (AUPRC
123
+ difference -0.003, 95% CI -0.0285 to 0.0199). On its own, the score separates MPRA emVars from other active
124
+ variants with AUC 0.54.
125
+
126
+ ## More
127
+
128
+ | | |
129
+ |---|---|
130
+ | [Tutorial (PDF)](https://github.com/AlsammanAlsamman/ASEbind/blob/main/docs/ASEbind_tutorial.pdf) | install, predict, read the output, ASE test |
131
+ | [docs/CONFIG.md](https://github.com/AlsammanAlsamman/ASEbind/blob/main/docs/CONFIG.md) | configuration: YAML, command line, environment, HPC modules |
132
+ | [benchmarks/PHASE3_REPORT.md](https://github.com/AlsammanAlsamman/ASEbind/blob/main/benchmarks/PHASE3_REPORT.md) | the model on ADASTRA, every split |
133
+ | [scripts/hpc/](https://github.com/AlsammanAlsamman/ASEbind/blob/main/scripts/hpc/README.md) | retrain or re-run the validations on a SLURM cluster |
134
+
135
+ **Licence:** MIT. The model was trained on ADASTRA, HOCOMOCO v12, JASPAR 2024 and CIS-BP data; please cite those
136
+ resources too.
137
+
138
+ <sub>This README is generated by `benchmarks/make_readme.py`: every number above is read from a result file.</sub>
@@ -0,0 +1,45 @@
1
+ asebind/__init__.py,sha256=qJJOsHeffr69l0pWRVyYnQ2SzGvkReC1IcWsGMMZZmY,112
2
+ asebind/__main__.py,sha256=6lRL6rZsa9a83fNrCZ8AMWd1TjSRK2uNd5Hb_JpJkXM,68
3
+ asebind/cli.py,sha256=VvlxyePSpIldz2nB332z1GsJIJQUKjp5rYkHDd6wudg,9568
4
+ asebind/cli_model.py,sha256=jhcjaPwqldxbc_Y0jY0zOw0sgNN1xt5ZgYgRkdvDXVM,22108
5
+ asebind/config.py,sha256=FI7APYfLJXs-e81W0_Bu_qDjtLPKlxnGjPv4zyG41nU,11989
6
+ asebind/finemap.py,sha256=s3GmY5Ylv80Ig2ExbEyONZrrQOP8HuK-sNqJilZZIDM,3679
7
+ asebind/haplotype.py,sha256=IMBdSBCIn0YXJrfNFrKa99_jF7ViMyNp64Nk4lp0OEI,6950
8
+ asebind/mpra.py,sha256=MOdV49Ao0A3R9Mtv9ypoUfX-eYZTbFiELZ5dqAhwit4,3628
9
+ asebind/predict.py,sha256=6c30viMG9-GWyZx5zeYapHnvtTdB7E8yycz30KZjSZk,6997
10
+ asebind/runrecord.py,sha256=_Kp7Eswrxn6Ku4pJ6GKm7kKeKurFWqQqKITjLVGYJhs,3388
11
+ asebind/tools.py,sha256=zc3r1wubjc0arJagfA9YSMMaexjC79BV51DUft2J6n0,6936
12
+ asebind/ase/__init__.py,sha256=Wecxc5unvJtKNcl3xRuk8Gt5yYMovmfxOPQfSCUp8FY,62
13
+ asebind/ase/betabinom.py,sha256=qMLjvflBeQooCILsJ8mZ8Xq8AdzM37_5fRs6SUOtbf0,6999
14
+ asebind/benchmark/__init__.py,sha256=ySkgBvs4f9E5QR_NSoauSrDqeuzHvOKuyaXIPjd6zXM,84
15
+ asebind/benchmark/asbdata.py,sha256=_74SCRfOJri5f7aD-JTJLNualXkFKq-BpCNKnT4lXWE,4148
16
+ asebind/benchmark/clean.py,sha256=5EQbrwObDFdk9Be4C32iw2gK07UDRp7QmaI3U33dyYM,1625
17
+ asebind/benchmark/features.py,sha256=Lf19eyAgy3GSo1obfFY0y9CQQgHiK_JZDRqaExESGbw,2402
18
+ asebind/benchmark/metrics.py,sha256=03T11y38iK5otRENQV9pTU4ly7VgnyxQ6nI_l_68qeo,2507
19
+ asebind/benchmark/models.py,sha256=AVZq0VbBPsMNm46JDMjv7LoOCrSywR6Hy1BVM4sDkuM,5584
20
+ asebind/benchmark/retest.py,sha256=0Kw7N7x4jRom1dFYfi2OJvahXRPVDZzkD7eESpYHwwk,7788
21
+ asebind/benchmark/splits.py,sha256=6m4NaUgdsLxWPqtgInRv5u4QYH_cYGQ46AxsyOfNryU,2687
22
+ asebind/data/asebind.example.yaml,sha256=fqBY5p3JmhXVbdlDhljAO8c_c3cnnLLobUqMJkJXhbs,2117
23
+ asebind/io/__init__.py,sha256=-Cu5rcxzTV-gmkPbAG-0f7TgU1-HmdOAPzdNH3zeEFk,47
24
+ asebind/io/variants.py,sha256=eNjszAEVSpVDNsh3KqR7b_yMMcZFc29Q2wn_xhz296I,5209
25
+ asebind/model/__init__.py,sha256=UaLV_xDE-oUwPJMuYpT6eIdc0WLjcHLRFZL6VbCkfN4,98
26
+ asebind/model/adastra.py,sha256=UgkGZbX9VkRkPKQ8t-TLzAxh8gOCxglK3mi7WYdzaZ0,4556
27
+ asebind/model/classifier.py,sha256=IQ4P-v_ENZ6xtUuNLTbyCE1drbTUbECb9SVLQMhGWwE,4564
28
+ asebind/model/context.py,sha256=HSUldCLnOE5vCjfWb0XMesnaNgEdMDhK99VbQcP2f2o,2253
29
+ asebind/model/features.py,sha256=Z9zbX9LO6y5NHkSqZasSYW9XTR2KYYcSrx_2nDhmsjo,8533
30
+ asebind/model/other_motifs.py,sha256=hhX2nhxGPCq4hmlY6oPNVFSJAknmXzIT7l3KbW_QgII,7302
31
+ asebind/model/train.py,sha256=-7iWMgEFaY_pH_ViBwxJCGcX1ePuU9-7mdMoBQ9oGAA,13258
32
+ asebind/motifs/__init__.py,sha256=dpk99KKEb_F7NYl-OjbS5KFsILuESzIUW69qoXmI1PA,112
33
+ asebind/motifs/escore.py,sha256=bx7BXp_wdEA9kVEu5R8WbDYt5QCZ98IyiVCrAQDnyuY,4963
34
+ asebind/motifs/pwm.py,sha256=88GgYUEjx3X_KITIQIXgW_0lTG7ZdoahZKWHEM70LjA,8022
35
+ asebind/resources/__init__.py,sha256=hATZQ2bML7aZMjs7CawomQnPsnBrOcqxE6Z9fVPrTDQ,110
36
+ asebind/resources/ancestral.py,sha256=rkkNXvM2JjIoMvGnGReYdrYL79OF_waTpdM-yQlSRbs,2751
37
+ asebind/resources/conservation.py,sha256=zUEr32qytLPIpfcx16yr8-8U4mDOgz4coPxaexrr-7o,3652
38
+ asebind/resources/fetch.py,sha256=AoTZ79zIE_G4afJsRnsxyaTH9JpfXDvMKyiR1l9y6tY,8578
39
+ asebind/resources/genome.py,sha256=SLjhAUp96Ar8TWTVFXkJoj7cyv_Lct9ETWSX9hW2IW4,3662
40
+ asebind/resources/registry.py,sha256=YM5oGSZW2nckvgdNupThHnkrNc7cXYNXnbaxK8bkoIg,13497
41
+ asebind-0.1.0.dist-info/METADATA,sha256=X8U2h2yWEwVtTe2yxG52cCVRkORf6pSpsvXc0Aq-wpQ,6853
42
+ asebind-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
43
+ asebind-0.1.0.dist-info/entry_points.txt,sha256=lYSTVcAVZolfZG3pBvm0nlgKzdIJsh5r3RnHhaB-RE0,45
44
+ asebind-0.1.0.dist-info/licenses/LICENSE,sha256=YyMTyB_jsA-K_-Puyv6AnTRP8y0TLTs5DgHpPwvcyzA,1076
45
+ asebind-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ asebind = asebind.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The ASEbind authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.