annotuneagent 0.1.7__tar.gz → 0.1.9__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.
- annotuneagent-0.1.9/.github/workflows/downloads-badge.yml +50 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/.github/workflows/tests.yml +2 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/.gitignore +1 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/CHANGELOG.md +43 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/CITATION.cff +2 -2
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/PKG-INFO +20 -15
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/README.md +18 -14
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/api/index.md +8 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/conf.py +2 -2
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/index.md +5 -2
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/installation.md +3 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/quickstart.md +11 -2
- annotuneagent-0.1.9/docs/tutorials/gse266598_annotation.ipynb +2041 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/tutorials/index.md +1 -1
- annotuneagent-0.1.9/docs/tutorials/load_model.ipynb +172 -0
- annotuneagent-0.1.9/docs/tutorials/pbmc8k_annotation.ipynb +1265 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/pyproject.toml +7 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/__init__.py +0 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/_version.py +1 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/annotate.py +2 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/arbitrate.py +1 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/cli.py +32 -36
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/decide.py +14 -192
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/evaluate.py +1 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/evidence.py +3 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/geo.py +17 -10
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/local_lora.py +19 -13
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/marker_plot.py +32 -4
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/markers.py +8 -5
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/markers.tsv +25 -23
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/ontology/ontology_map.jsonl +1 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/prepare.py +16 -9
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/read.py +4 -1
- annotuneagent-0.1.9/src/annotuneagent/workflow/__init__.py +512 -0
- annotuneagent-0.1.9/src/annotuneagent/workflow/models.py +404 -0
- annotuneagent-0.1.9/src/annotuneagent/workflow/neighbors.py +569 -0
- annotuneagent-0.1.9/src/annotuneagent/workflow/reporting.py +511 -0
- annotuneagent-0.1.9/src/annotuneagent/workflow/rules.py +1096 -0
- annotuneagent-0.1.9/src/annotuneagent/workflow/subcluster.py +522 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent.egg-info/SOURCES.txt +7 -1
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_bugfixes_1111.py +5 -12
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_cli.py +74 -10
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_decide.py +4 -57
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_geo.py +8 -6
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_markers.py +60 -2
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_version.py +2 -2
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_workflow.py +262 -15
- annotuneagent-0.1.7/docs/tutorials/gse266598_annotation.ipynb +0 -2049
- annotuneagent-0.1.7/docs/tutorials/load_model.ipynb +0 -290
- annotuneagent-0.1.7/docs/tutorials/pbmc8k_annotation.ipynb +0 -1229
- annotuneagent-0.1.7/src/annotuneagent/workflow.py +0 -3230
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/.github/workflows/publish.yml +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/.readthedocs.yaml +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/LICENSE +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/MANIFEST.in +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/SECURITY.md +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/_static/css/custom.css +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/_templates/README.md +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/marker_sources.md +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/requirements.txt +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/docs/tutorials/report.md +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/setup.cfg +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/__main__.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/granularity/__init__.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/granularity/cl_dag.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/granularity/ontology_map.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/granularity/relations.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/hypotheses.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/mltools.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/ontology/cl_isa.json +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/ontology/granularity_policy.yaml +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/py.typed +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/tokenizer/LICENSE +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/tokenizer/merges.txt +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/tokenizer/tokenizer.json +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/tokenizer/tokenizer_config.json +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/tokenizer/vocab.json +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/src/annotuneagent/votes.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_annotate.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_evaluate.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_evidence.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_granularity.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_local_lora.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_mltools.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_prepare.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_read.py +0 -0
- {annotuneagent-0.1.7 → annotuneagent-0.1.9}/tests/test_votes.py +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Downloads badge
|
|
2
|
+
|
|
3
|
+
# Weekly refresh of badges/downloads.json, Saturday 06:17 UTC. This is the
|
|
4
|
+
# only workflow for that update. Test CI does not listen to the badges
|
|
5
|
+
# branch, and an unchanged total does not create a commit.
|
|
6
|
+
on:
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: '17 6 * * 6'
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: downloads-badge
|
|
16
|
+
cancel-in-progress: false
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
update:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Check out badges branch
|
|
25
|
+
run: |
|
|
26
|
+
git config --global user.name "github-actions[bot]"
|
|
27
|
+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
28
|
+
url="https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
|
|
29
|
+
if git ls-remote --exit-code --heads "$url" badges >/dev/null 2>&1; then
|
|
30
|
+
git clone --depth 1 --branch badges "$url" badges-data
|
|
31
|
+
else
|
|
32
|
+
mkdir badges-data
|
|
33
|
+
cd badges-data
|
|
34
|
+
git init -q -b badges
|
|
35
|
+
git remote add origin "$url"
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
- name: Update counts
|
|
39
|
+
run: python3 .github/scripts/downloads_badge.py annotuneagent badges-data
|
|
40
|
+
|
|
41
|
+
- name: Commit and push
|
|
42
|
+
working-directory: badges-data
|
|
43
|
+
run: |
|
|
44
|
+
git add history.json downloads.json
|
|
45
|
+
if git diff --cached --quiet; then
|
|
46
|
+
echo "No changes"
|
|
47
|
+
else
|
|
48
|
+
git commit -q -m "Update download counts"
|
|
49
|
+
git push origin HEAD:badges
|
|
50
|
+
fi
|
|
@@ -62,9 +62,10 @@ jobs:
|
|
|
62
62
|
python-version: "3.12"
|
|
63
63
|
cache: pip
|
|
64
64
|
cache-dependency-path: pyproject.toml
|
|
65
|
-
- run: pip install "ruff>=0.4.0,<0.17"
|
|
65
|
+
- run: pip install "ruff>=0.4.0,<0.17" "mypy>=1.10"
|
|
66
66
|
- run: ruff check src tests
|
|
67
67
|
- run: ruff format --check src tests
|
|
68
|
+
- run: mypy
|
|
68
69
|
|
|
69
70
|
package:
|
|
70
71
|
runs-on: ubuntu-latest
|
|
@@ -4,6 +4,49 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.9] - 2026-12-01
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- `ModelChain` holds the name endpoint only. `--ml-url` and `--ml-adapter`
|
|
12
|
+
are removed. The check rule still keeps, replaces, or drops the name.
|
|
13
|
+
- A CLI run with `--species` and neither `--types` nor `--hypotheses` uses
|
|
14
|
+
the built-in dictionary. `--cluster-key` is checked before the input is
|
|
15
|
+
read. A missing optional package exits 2.
|
|
16
|
+
- Samples that share one GEO condition are reported with a warning.
|
|
17
|
+
A saved marker dot plot closes its figure.
|
|
18
|
+
- The cluster workflow is the `annotuneagent.workflow` package. The public
|
|
19
|
+
names also include `attach`, `dictionary_hypotheses`,
|
|
20
|
+
`hypotheses_from_names`, `marker_names`, `suggest_tissues`,
|
|
21
|
+
`tissue_pages`, `fit_ranker`, and `conformal_quantile`.
|
|
22
|
+
- Lint runs mypy, and ruff also checks bugbear and pyupgrade.
|
|
23
|
+
|
|
24
|
+
## [0.1.8] - 2026-11-20
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- A check-accepted fibroblast, smooth muscle cell, macrophage, or monocyte
|
|
29
|
+
yields to a program-specific marker on another lineage, and to a
|
|
30
|
+
program-specific descendant. One broad title does not replace another.
|
|
31
|
+
Any check-accepted name yields when its own program is off and the marker
|
|
32
|
+
is program-specific on another lineage.
|
|
33
|
+
- A name the check rule accepted stays when no dictionary panel is on.
|
|
34
|
+
The same keep applies when the name model and the marker score agree,
|
|
35
|
+
unless an ML call is on another lineage. The hint lists the uncovered genes.
|
|
36
|
+
- Tongue maps to the skin page. An author tissue that matches one page,
|
|
37
|
+
such as large intestine, uses that page's aliases.
|
|
38
|
+
- Dictionary panels with one positive gene now have a second, except human
|
|
39
|
+
juxtaglomerular cells (`REN`). Prostate basal cells add KRT14 and KRT15.
|
|
40
|
+
Non-keratinized squamous epithelium is KRT4 and KRT13. Tenocytes add COMP
|
|
41
|
+
and CILP. Lyve1-positive macrophages use LYVE1 and F13A1, with PRG4 as a
|
|
42
|
+
negative. Mouse pericytes include Notch3. Superficial-zone chondrocytes
|
|
43
|
+
use PRG4, SFRP1, and COL2A1. Mammary basal cells use KRT5, KRT14, and
|
|
44
|
+
ACTA2. Smooth muscle treats KRT5 and KRT14 as negatives. Luminal mammary
|
|
45
|
+
epithelium adds KRT19.
|
|
46
|
+
- Marker dot plots use square cells. The load-model tutorial downloads the
|
|
47
|
+
one merged GGUF. Docs include the Bioconda install and weekly download
|
|
48
|
+
badges.
|
|
49
|
+
|
|
7
50
|
## [0.1.7] - 2026-11-19
|
|
8
51
|
|
|
9
52
|
### Fixed
|
|
@@ -15,8 +15,8 @@ authors:
|
|
|
15
15
|
orcid: "https://orcid.org/0000-0002-9276-9129"
|
|
16
16
|
repository-code: "https://github.com/leelieber2025/AnnoTuneAgent"
|
|
17
17
|
license: Apache-2.0
|
|
18
|
-
version: 0.1.
|
|
19
|
-
date-released: "2026-
|
|
18
|
+
version: 0.1.9
|
|
19
|
+
date-released: "2026-12-01"
|
|
20
20
|
keywords:
|
|
21
21
|
- single-cell
|
|
22
22
|
- RNA-seq
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: annotuneagent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Cluster-level cell-type annotation from a marker score and a name model
|
|
5
5
|
Author-email: "Zhao Li (李钊)" <leelieber@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -41,6 +41,7 @@ Requires-Dist: jinja2>=3.1; extra == "models"
|
|
|
41
41
|
Provides-Extra: scfair
|
|
42
42
|
Requires-Dist: scfair>=0.8; extra == "scfair"
|
|
43
43
|
Provides-Extra: dev
|
|
44
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
44
45
|
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
45
46
|
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
46
47
|
Requires-Dist: ruff<0.17,>=0.4.0; extra == "dev"
|
|
@@ -56,6 +57,9 @@ Dynamic: license-file
|
|
|
56
57
|
|
|
57
58
|
[](https://pypi.org/project/annotuneagent/)
|
|
58
59
|
[](https://pepy.tech/project/annotuneagent)
|
|
60
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
61
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
62
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
|
|
59
63
|
[](https://pypi.org/project/annotuneagent/)
|
|
60
64
|
[](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
|
|
61
65
|
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
@@ -69,7 +73,8 @@ language model runs locally, and a check rule reads the marker measurements.**
|
|
|
69
73
|
|
|
70
74
|
Each cluster gets a marker score and a name-model result. The check rule
|
|
71
75
|
keeps that name, replaces it, or drops it. The marker score can still name
|
|
72
|
-
the cluster when the check drops the proposal.
|
|
76
|
+
the cluster when the check drops the proposal. The report keeps the name,
|
|
77
|
+
the check result, and the reason.
|
|
73
78
|
|
|
74
79
|
## What is fine-tuned
|
|
75
80
|
|
|
@@ -111,18 +116,17 @@ raw counts ─ prepare ─▶ QC, doublets, normalization, batch correction, Lei
|
|
|
111
116
|
validated marker panels, dotplot, report, annotated h5ad
|
|
112
117
|
```
|
|
113
118
|
|
|
114
|
-
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
- **Every title is traceable.** The report records the name-model answer, the
|
|
122
|
-
check result, the panel, and the reason a cluster was or was not settled.
|
|
119
|
+
- The check reads the measurements. Mixed programs and names that fail the
|
|
120
|
+
marker check stay flagged (`mixed_programs`, `near_clear_cluster`,
|
|
121
|
+
`subcluster_labels`, `no_marker_passed`, `check_rule`).
|
|
122
|
+
- Panels come from cited dictionary markers. A gene stays on the plot when
|
|
123
|
+
it is enriched in that label and specific against the other labels.
|
|
124
|
+
- The report stores the name-model answer, the check result, the panel, and
|
|
125
|
+
the reason.
|
|
123
126
|
|
|
124
|
-
The name model runs when `models` is passed
|
|
125
|
-
|
|
127
|
+
The name model runs when `models` is passed, or when the command line sets
|
|
128
|
+
`--base`, `--name-url`, or `--name-adapter`. Without that, `run` uses the
|
|
129
|
+
marker score alone.
|
|
126
130
|
|
|
127
131
|
## Install
|
|
128
132
|
|
|
@@ -130,6 +134,7 @@ Python 3.10–3.13.
|
|
|
130
134
|
|
|
131
135
|
```bash
|
|
132
136
|
pip install annotuneagent
|
|
137
|
+
# or: conda install -c conda-forge -c bioconda annotuneagent
|
|
133
138
|
```
|
|
134
139
|
|
|
135
140
|
Local GGUF models need `pip install 'annotuneagent[models]'`, which installs
|
|
@@ -223,12 +228,12 @@ The tokenizer is installed with the package. See
|
|
|
223
228
|
|
|
224
229
|
## Status
|
|
225
230
|
|
|
226
|
-
**0.1.
|
|
231
|
+
**0.1.9 (Alpha).** Import as `import annotuneagent as ata`.
|
|
227
232
|
|
|
228
233
|
## Citation
|
|
229
234
|
|
|
230
235
|
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
231
|
-
Pin the package version used in the analysis, for example `annotuneagent==0.1.
|
|
236
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.9`.
|
|
232
237
|
|
|
233
238
|
## License
|
|
234
239
|
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/annotuneagent/)
|
|
4
4
|
[](https://pepy.tech/project/annotuneagent)
|
|
5
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
6
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
7
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
|
|
5
8
|
[](https://pypi.org/project/annotuneagent/)
|
|
6
9
|
[](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
|
|
7
10
|
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
@@ -15,7 +18,8 @@ language model runs locally, and a check rule reads the marker measurements.**
|
|
|
15
18
|
|
|
16
19
|
Each cluster gets a marker score and a name-model result. The check rule
|
|
17
20
|
keeps that name, replaces it, or drops it. The marker score can still name
|
|
18
|
-
the cluster when the check drops the proposal.
|
|
21
|
+
the cluster when the check drops the proposal. The report keeps the name,
|
|
22
|
+
the check result, and the reason.
|
|
19
23
|
|
|
20
24
|
## What is fine-tuned
|
|
21
25
|
|
|
@@ -57,18 +61,17 @@ raw counts ─ prepare ─▶ QC, doublets, normalization, batch correction, Lei
|
|
|
57
61
|
validated marker panels, dotplot, report, annotated h5ad
|
|
58
62
|
```
|
|
59
63
|
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- **Every title is traceable.** The report records the name-model answer, the
|
|
68
|
-
check result, the panel, and the reason a cluster was or was not settled.
|
|
64
|
+
- The check reads the measurements. Mixed programs and names that fail the
|
|
65
|
+
marker check stay flagged (`mixed_programs`, `near_clear_cluster`,
|
|
66
|
+
`subcluster_labels`, `no_marker_passed`, `check_rule`).
|
|
67
|
+
- Panels come from cited dictionary markers. A gene stays on the plot when
|
|
68
|
+
it is enriched in that label and specific against the other labels.
|
|
69
|
+
- The report stores the name-model answer, the check result, the panel, and
|
|
70
|
+
the reason.
|
|
69
71
|
|
|
70
|
-
The name model runs when `models` is passed
|
|
71
|
-
|
|
72
|
+
The name model runs when `models` is passed, or when the command line sets
|
|
73
|
+
`--base`, `--name-url`, or `--name-adapter`. Without that, `run` uses the
|
|
74
|
+
marker score alone.
|
|
72
75
|
|
|
73
76
|
## Install
|
|
74
77
|
|
|
@@ -76,6 +79,7 @@ Python 3.10–3.13.
|
|
|
76
79
|
|
|
77
80
|
```bash
|
|
78
81
|
pip install annotuneagent
|
|
82
|
+
# or: conda install -c conda-forge -c bioconda annotuneagent
|
|
79
83
|
```
|
|
80
84
|
|
|
81
85
|
Local GGUF models need `pip install 'annotuneagent[models]'`, which installs
|
|
@@ -169,12 +173,12 @@ The tokenizer is installed with the package. See
|
|
|
169
173
|
|
|
170
174
|
## Status
|
|
171
175
|
|
|
172
|
-
**0.1.
|
|
176
|
+
**0.1.9 (Alpha).** Import as `import annotuneagent as ata`.
|
|
173
177
|
|
|
174
178
|
## Citation
|
|
175
179
|
|
|
176
180
|
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
177
|
-
Pin the package version used in the analysis, for example `annotuneagent==0.1.
|
|
181
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.9`.
|
|
178
182
|
|
|
179
183
|
## License
|
|
180
184
|
|
|
@@ -23,8 +23,16 @@ The public API is the names below and `annotuneagent.__version__`.
|
|
|
23
23
|
annotate
|
|
24
24
|
evaluate
|
|
25
25
|
Hypothesis
|
|
26
|
+
dictionary_hypotheses
|
|
27
|
+
hypotheses_from_names
|
|
28
|
+
marker_names
|
|
29
|
+
suggest_tissues
|
|
30
|
+
tissue_pages
|
|
31
|
+
attach
|
|
26
32
|
local_models
|
|
27
33
|
local_server
|
|
28
34
|
ModelChain
|
|
29
35
|
TaskEndpoint
|
|
36
|
+
fit_ranker
|
|
37
|
+
conformal_quantile
|
|
30
38
|
```
|
|
@@ -85,9 +85,9 @@ intersphinx_mapping = {
|
|
|
85
85
|
"python": ("https://docs.python.org/3", None),
|
|
86
86
|
"numpy": ("https://numpy.org/doc/stable/", None),
|
|
87
87
|
"pandas": ("https://pandas.pydata.org/docs/", None),
|
|
88
|
-
"scipy": ("https://docs.scipy.org/doc/scipy/
|
|
88
|
+
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
|
|
89
89
|
"scanpy": ("https://scanpy.readthedocs.io/en/stable/", None),
|
|
90
|
-
"anndata": ("https://anndata.readthedocs.io/en/
|
|
90
|
+
"anndata": ("https://anndata.readthedocs.io/en/latest/", None),
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
html_theme = "sphinx_book_theme"
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/annotuneagent/)
|
|
4
4
|
[](https://pepy.tech/project/annotuneagent)
|
|
5
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
6
|
+
[](https://anaconda.org/bioconda/annotuneagent)
|
|
7
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
|
|
5
8
|
[](https://pypi.org/project/annotuneagent/)
|
|
6
9
|
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
7
10
|
[](https://github.com/leelieber2025/AnnoTuneAgent/blob/main/LICENSE)
|
|
@@ -15,8 +18,8 @@ proposal. A cluster can stay unnamed. Clusters with the same title are merged.
|
|
|
15
18
|
|
|
16
19
|
The name model is one merged Q6_K GGUF, `Qwen3.5-4B-annotune-v9k-name.Q6_K.gguf`.
|
|
17
20
|
It runs locally and copies
|
|
18
|
-
a name from the marker dictionary hits (`dictionary_hits`). The check is
|
|
19
|
-
|
|
21
|
+
a name from the marker dictionary hits (`dictionary_hits`). The check is a
|
|
22
|
+
fixed rule. A positive marker supports a type when its log fold change is above
|
|
20
23
|
0.5 and it is detected in at least 25% of the cluster. A negative marker
|
|
21
24
|
blocks a type only when it is that common and its log fold change is at least
|
|
22
25
|
1. The proposal stays when at least two markers support it and none block it.
|
|
@@ -4,6 +4,8 @@ Python 3.10–3.13.
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
pip install annotuneagent
|
|
7
|
+
# or
|
|
8
|
+
conda install -c conda-forge -c bioconda annotuneagent
|
|
7
9
|
```
|
|
8
10
|
|
|
9
11
|
```python
|
|
@@ -11,7 +13,7 @@ import annotuneagent as ata
|
|
|
11
13
|
print(ata.__version__)
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
The version is set in `src/annotuneagent/_version.py` (currently **0.1.
|
|
16
|
+
The version is set in `src/annotuneagent/_version.py` (currently **0.1.9**).
|
|
15
17
|
|
|
16
18
|
From a checkout:
|
|
17
19
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
```bash
|
|
4
4
|
pip install annotuneagent
|
|
5
|
+
# or: conda install -c conda-forge -c bioconda annotuneagent
|
|
5
6
|
```
|
|
6
7
|
|
|
7
8
|
```python
|
|
@@ -67,7 +68,6 @@ token.
|
|
|
67
68
|
model = "/path/to/Qwen3.5-4B-annotune-v9k-name.Q6_K.gguf"
|
|
68
69
|
models = ata.ModelChain(
|
|
69
70
|
name=ata.TaskEndpoint(base=model, maxlen=2048, server="http://127.0.0.1:8080"),
|
|
70
|
-
ml=ata.TaskEndpoint(),
|
|
71
71
|
)
|
|
72
72
|
report = ata.run(adata, "leiden", species="human", models=models)
|
|
73
73
|
```
|
|
@@ -279,8 +279,17 @@ written or withheld. Those fields stay on the report.
|
|
|
279
279
|
- `no_marker_passed`: none of the name's cited markers passed the expression
|
|
280
280
|
check. The name stays, the hint reads `no marker passed`, and the dotplot
|
|
281
281
|
shows the best-measured cited genes. When the check rule kept that name, a
|
|
282
|
-
different marker call does not replace it
|
|
282
|
+
different marker call does not replace it, unless the kept name is
|
|
283
|
+
fibroblast, smooth muscle cell, macrophage, or monocyte and the marker is
|
|
284
|
+
a program-specific type on another lineage. Otherwise a marker call that
|
|
283
285
|
passed is written, and an unchecked marker call is tried once.
|
|
286
|
+
- A name the check rule accepted stays when no dictionary panel is detected
|
|
287
|
+
in the majority of the cluster. The same is true when the name model and
|
|
288
|
+
the marker score already agree.
|
|
289
|
+
The hint lists the enriched genes that are not in those panels. A
|
|
290
|
+
check-accepted fibroblast, smooth muscle cell, macrophage, or monocyte
|
|
291
|
+
yields to a program-specific descendant. Any check-accepted name yields
|
|
292
|
+
to a program-specific marker on another lineage when its own program is off.
|
|
284
293
|
- `mixed_programs`: a cluster under 40 cells shows two programs. It stays
|
|
285
294
|
unnamed. The hint lists the programs.
|
|
286
295
|
- `near_clear_cluster`: a cluster with an unclear name takes the title of the
|