annotuneagent 0.1.6__tar.gz → 0.1.8__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.
Files changed (81) hide show
  1. annotuneagent-0.1.8/.github/workflows/downloads-badge.yml +50 -0
  2. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/.gitignore +1 -1
  3. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/CHANGELOG.md +33 -0
  4. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/CITATION.cff +2 -2
  5. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/PKG-INFO +19 -15
  6. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/README.md +18 -14
  7. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/index.md +5 -2
  8. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/installation.md +3 -1
  9. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/quickstart.md +11 -1
  10. annotuneagent-0.1.8/docs/tutorials/gse266598_annotation.ipynb +2042 -0
  11. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/tutorials/index.md +1 -1
  12. annotuneagent-0.1.8/docs/tutorials/load_model.ipynb +173 -0
  13. annotuneagent-0.1.8/docs/tutorials/pbmc8k_annotation.ipynb +1266 -0
  14. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/_version.py +1 -1
  15. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/cli.py +6 -2
  16. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/decide.py +1 -3
  17. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/local_lora.py +3 -1
  18. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/marker_plot.py +13 -2
  19. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/markers.py +2 -0
  20. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/markers.tsv +25 -23
  21. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/ontology/ontology_map.jsonl +1 -0
  22. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/workflow.py +119 -13
  23. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent.egg-info/SOURCES.txt +1 -0
  24. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_cli.py +1 -1
  25. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_markers.py +60 -2
  26. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_version.py +2 -2
  27. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_workflow.py +251 -1
  28. annotuneagent-0.1.6/docs/tutorials/gse266598_annotation.ipynb +0 -2049
  29. annotuneagent-0.1.6/docs/tutorials/load_model.ipynb +0 -290
  30. annotuneagent-0.1.6/docs/tutorials/pbmc8k_annotation.ipynb +0 -1229
  31. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/.github/workflows/publish.yml +0 -0
  32. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/.github/workflows/tests.yml +0 -0
  33. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/.readthedocs.yaml +0 -0
  34. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/LICENSE +0 -0
  35. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/MANIFEST.in +0 -0
  36. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/SECURITY.md +0 -0
  37. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/_static/css/custom.css +0 -0
  38. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/_templates/README.md +0 -0
  39. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/api/index.md +0 -0
  40. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/conf.py +0 -0
  41. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/marker_sources.md +0 -0
  42. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/requirements.txt +0 -0
  43. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/docs/tutorials/report.md +0 -0
  44. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/pyproject.toml +0 -0
  45. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/setup.cfg +0 -0
  46. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/__init__.py +0 -0
  47. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/__main__.py +0 -0
  48. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/annotate.py +0 -0
  49. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/arbitrate.py +0 -0
  50. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/evaluate.py +0 -0
  51. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/evidence.py +0 -0
  52. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/geo.py +0 -0
  53. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/granularity/__init__.py +0 -0
  54. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/granularity/cl_dag.py +0 -0
  55. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/granularity/ontology_map.py +0 -0
  56. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/granularity/relations.py +0 -0
  57. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/hypotheses.py +0 -0
  58. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/mltools.py +0 -0
  59. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/ontology/cl_isa.json +0 -0
  60. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/ontology/granularity_policy.yaml +0 -0
  61. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/prepare.py +0 -0
  62. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/py.typed +0 -0
  63. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/read.py +0 -0
  64. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/tokenizer/LICENSE +0 -0
  65. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/tokenizer/merges.txt +0 -0
  66. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/tokenizer/tokenizer.json +0 -0
  67. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/tokenizer/tokenizer_config.json +0 -0
  68. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/tokenizer/vocab.json +0 -0
  69. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/src/annotuneagent/votes.py +0 -0
  70. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_annotate.py +0 -0
  71. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_bugfixes_1111.py +0 -0
  72. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_decide.py +0 -0
  73. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_evaluate.py +0 -0
  74. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_evidence.py +0 -0
  75. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_geo.py +0 -0
  76. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_granularity.py +0 -0
  77. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_local_lora.py +0 -0
  78. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_mltools.py +0 -0
  79. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_prepare.py +0 -0
  80. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/tests/test_read.py +0 -0
  81. {annotuneagent-0.1.6 → annotuneagent-0.1.8}/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
@@ -35,7 +35,7 @@ docs/api/generated/
35
35
  # .readthedocs.yaml, .github/workflows).
36
36
  # Not uploaded:
37
37
  data/
38
- scripts/
38
+ /scripts/
39
39
  DEVLOG.md
40
40
  AGENTS.md
41
41
  review.md
@@ -4,6 +4,39 @@ All notable changes to this project are documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.1.8] - 2026-11-20
8
+
9
+ ### Changed
10
+
11
+ - A check-accepted fibroblast, smooth muscle cell, macrophage, or monocyte
12
+ yields to a program-specific marker on another lineage, and to a
13
+ program-specific descendant. One broad title does not replace another.
14
+ Any check-accepted name yields when its own program is off and the marker
15
+ is program-specific on another lineage.
16
+ - A name the check rule accepted stays when no dictionary panel is on.
17
+ The same keep applies when the name model and the marker score agree,
18
+ unless an ML call is on another lineage. The hint lists the uncovered genes.
19
+ - Tongue maps to the skin page. An author tissue that matches one page,
20
+ such as large intestine, uses that page's aliases.
21
+ - Dictionary panels with one positive gene now have a second, except human
22
+ juxtaglomerular cells (`REN`). Prostate basal cells add KRT14 and KRT15.
23
+ Non-keratinized squamous epithelium is KRT4 and KRT13. Tenocytes add COMP
24
+ and CILP. Lyve1-positive macrophages use LYVE1 and F13A1, with PRG4 as a
25
+ negative. Mouse pericytes include Notch3. Superficial-zone chondrocytes
26
+ use PRG4, SFRP1, and COL2A1. Mammary basal cells use KRT5, KRT14, and
27
+ ACTA2. Smooth muscle treats KRT5 and KRT14 as negatives. Luminal mammary
28
+ epithelium adds KRT19.
29
+ - Marker dot plots use square cells. The load-model tutorial downloads the
30
+ one merged GGUF. Docs include the Bioconda install and weekly download
31
+ badges.
32
+
33
+ ## [0.1.7] - 2026-11-19
34
+
35
+ ### Fixed
36
+
37
+ - Remove the unused merged-id list in `merge_same_labels`. `ruff` failed the
38
+ 0.1.6 tests job on that assignment. Annotation behavior matches 0.1.6.
39
+
7
40
  ## [0.1.6] - 2026-11-19
8
41
 
9
42
  ### Changed
@@ -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.6
19
- date-released: "2026-11-17"
18
+ version: 0.1.8
19
+ date-released: "2026-11-20"
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.6
3
+ Version: 0.1.8
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
@@ -56,6 +56,9 @@ Dynamic: license-file
56
56
 
57
57
  [![PyPI version](https://img.shields.io/pypi/v/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
58
58
  [![PyPI downloads](https://img.shields.io/pepy/dt/annotuneagent.svg?label=PyPI%20downloads)](https://pepy.tech/project/annotuneagent)
59
+ [![Bioconda](https://img.shields.io/conda/vn/bioconda/annotuneagent.svg)](https://anaconda.org/bioconda/annotuneagent)
60
+ [![Bioconda downloads](https://img.shields.io/conda/dn/bioconda/annotuneagent.svg?label=Bioconda%20downloads)](https://anaconda.org/bioconda/annotuneagent)
61
+ [![Total downloads](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/leelieber2025/AnnoTuneAgent/badges/downloads.json)](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
59
62
  [![Python versions](https://img.shields.io/pypi/pyversions/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
60
63
  [![Documentation Status](https://readthedocs.org/projects/annotuneagent/badge/?version=latest)](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
61
64
  [![CI](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml/badge.svg)](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
@@ -69,7 +72,8 @@ language model runs locally, and a check rule reads the marker measurements.**
69
72
 
70
73
  Each cluster gets a marker score and a name-model result. The check rule
71
74
  keeps that name, replaces it, or drops it. The marker score can still name
72
- the cluster when the check drops the proposal. Every call stays auditable.
75
+ the cluster when the check drops the proposal. The report keeps the name,
76
+ the check result, and the reason.
73
77
 
74
78
  ## What is fine-tuned
75
79
 
@@ -111,18 +115,17 @@ raw counts ─ prepare ─▶ QC, doublets, normalization, batch correction, Lei
111
115
  validated marker panels, dotplot, report, annotated h5ad
112
116
  ```
113
117
 
114
- - **A rule, not a second model.** The check reads the measurements. It does
115
- not call another adapter. Mixed programs and unvalidated names stay flagged
116
- (`mixed_programs`, `near_clear_cluster`, `subcluster_labels`,
117
- `no_marker_passed`, `check_rule`) so you can review them.
118
- - **Marker evidence is checked, not quoted.** Panels are selected from cited
119
- dictionary markers and validated against measured expression and
120
- specificity in your data.
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.
118
+ - The check reads the measurements. Mixed programs and names that fail the
119
+ marker check stay flagged (`mixed_programs`, `near_clear_cluster`,
120
+ `subcluster_labels`, `no_marker_passed`, `check_rule`).
121
+ - Panels come from cited dictionary markers. A gene stays on the plot when
122
+ it is enriched in that label and specific against the other labels.
123
+ - The report stores the name-model answer, the check result, the panel, and
124
+ the reason.
123
125
 
124
- The name model runs when `models` is passed (or `--name-adapter` / `--name-url`
125
- is given). Without it, `run` uses the marker score alone.
126
+ The name model runs when `models` is passed, or when the command line sets
127
+ `--base`, `--name-url`, or `--name-adapter`. Without that, `run` uses the
128
+ marker score alone.
126
129
 
127
130
  ## Install
128
131
 
@@ -130,6 +133,7 @@ Python 3.10–3.13.
130
133
 
131
134
  ```bash
132
135
  pip install annotuneagent
136
+ # or: conda install -c conda-forge -c bioconda annotuneagent
133
137
  ```
134
138
 
135
139
  Local GGUF models need `pip install 'annotuneagent[models]'`, which installs
@@ -223,12 +227,12 @@ The tokenizer is installed with the package. See
223
227
 
224
228
  ## Status
225
229
 
226
- **0.1.6 (Alpha).** Import as `import annotuneagent as ata`.
230
+ **0.1.8 (Alpha).** Import as `import annotuneagent as ata`.
227
231
 
228
232
  ## Citation
229
233
 
230
234
  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.6`.
235
+ Pin the package version used in the analysis, for example `annotuneagent==0.1.8`.
232
236
 
233
237
  ## License
234
238
 
@@ -2,6 +2,9 @@
2
2
 
3
3
  [![PyPI version](https://img.shields.io/pypi/v/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
4
4
  [![PyPI downloads](https://img.shields.io/pepy/dt/annotuneagent.svg?label=PyPI%20downloads)](https://pepy.tech/project/annotuneagent)
5
+ [![Bioconda](https://img.shields.io/conda/vn/bioconda/annotuneagent.svg)](https://anaconda.org/bioconda/annotuneagent)
6
+ [![Bioconda downloads](https://img.shields.io/conda/dn/bioconda/annotuneagent.svg?label=Bioconda%20downloads)](https://anaconda.org/bioconda/annotuneagent)
7
+ [![Total downloads](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/leelieber2025/AnnoTuneAgent/badges/downloads.json)](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
5
8
  [![Python versions](https://img.shields.io/pypi/pyversions/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
6
9
  [![Documentation Status](https://readthedocs.org/projects/annotuneagent/badge/?version=latest)](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
7
10
  [![CI](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml/badge.svg)](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. Every call stays auditable.
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
- - **A rule, not a second model.** The check reads the measurements. It does
61
- not call another adapter. Mixed programs and unvalidated names stay flagged
62
- (`mixed_programs`, `near_clear_cluster`, `subcluster_labels`,
63
- `no_marker_passed`, `check_rule`) so you can review them.
64
- - **Marker evidence is checked, not quoted.** Panels are selected from cited
65
- dictionary markers and validated against measured expression and
66
- specificity in your data.
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 (or `--name-adapter` / `--name-url`
71
- is given). Without it, `run` uses the marker score alone.
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.6 (Alpha).** Import as `import annotuneagent as ata`.
176
+ **0.1.8 (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.6`.
181
+ Pin the package version used in the analysis, for example `annotuneagent==0.1.8`.
178
182
 
179
183
  ## License
180
184
 
@@ -2,6 +2,9 @@
2
2
 
3
3
  [![PyPI version](https://img.shields.io/pypi/v/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
4
4
  [![PyPI downloads](https://img.shields.io/pepy/dt/annotuneagent.svg?label=PyPI%20downloads)](https://pepy.tech/project/annotuneagent)
5
+ [![Bioconda](https://img.shields.io/conda/vn/bioconda/annotuneagent.svg)](https://anaconda.org/bioconda/annotuneagent)
6
+ [![Bioconda downloads](https://img.shields.io/conda/dn/bioconda/annotuneagent.svg?label=Bioconda%20downloads)](https://anaconda.org/bioconda/annotuneagent)
7
+ [![Total downloads](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/leelieber2025/AnnoTuneAgent/badges/downloads.json)](https://github.com/leelieber2025/AnnoTuneAgent/blob/badges/history.json)
5
8
  [![Python versions](https://img.shields.io/pypi/pyversions/annotuneagent.svg)](https://pypi.org/project/annotuneagent/)
6
9
  [![CI](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml/badge.svg)](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
7
10
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](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 not
19
- a model. A positive marker supports a type when its log fold change is above
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.6**).
16
+ The version is set in `src/annotuneagent/_version.py` (currently **0.1.8**).
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
@@ -279,8 +280,17 @@ written or withheld. Those fields stay on the report.
279
280
  - `no_marker_passed`: none of the name's cited markers passed the expression
280
281
  check. The name stays, the hint reads `no marker passed`, and the dotplot
281
282
  shows the best-measured cited genes. When the check rule kept that name, a
282
- different marker call does not replace it. Otherwise a marker call that
283
+ different marker call does not replace it, unless the kept name is
284
+ fibroblast, smooth muscle cell, macrophage, or monocyte and the marker is
285
+ a program-specific type on another lineage. Otherwise a marker call that
283
286
  passed is written, and an unchecked marker call is tried once.
287
+ - A name the check rule accepted stays when no dictionary panel is detected
288
+ in the majority of the cluster. The same is true when the name model and
289
+ the marker score already agree, unless an ML call is on another lineage.
290
+ The hint lists the enriched genes that are not in those panels. A
291
+ check-accepted fibroblast, smooth muscle cell, macrophage, or monocyte
292
+ yields to a program-specific descendant. Any check-accepted name yields
293
+ to a program-specific marker on another lineage when its own program is off.
284
294
  - `mixed_programs`: a cluster under 40 cells shows two programs. It stays
285
295
  unnamed. The hint lists the programs.
286
296
  - `near_clear_cluster`: a cluster with an unclear name takes the title of the