annotuneagent 0.1.1__tar.gz → 0.1.2__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.1 → annotuneagent-0.1.2}/CHANGELOG.md +37 -1
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/CITATION.cff +2 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/PKG-INFO +8 -3
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/README.md +7 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/api/index.md +4 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/index.md +1 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/installation.md +4 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/quickstart.md +20 -1
- annotuneagent-0.1.2/docs/tutorials/gse266598_annotation.ipynb +2043 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/tutorials/index.md +11 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/__init__.py +7 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/_version.py +1 -1
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/annotate.py +15 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/arbitrate.py +32 -18
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/cli.py +29 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/decide.py +4 -0
- annotuneagent-0.1.2/src/annotuneagent/geo.py +614 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/hypotheses.py +11 -8
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/local_lora.py +12 -1
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/markers.py +25 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/markers.tsv +1 -1
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/prepare.py +18 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/votes.py +15 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/workflow.py +88 -13
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent.egg-info/SOURCES.txt +3 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_annotate.py +112 -4
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_cli.py +37 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_decide.py +18 -0
- annotuneagent-0.1.2/tests/test_geo.py +238 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_local_lora.py +46 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_markers.py +13 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_prepare.py +7 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_version.py +2 -2
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_votes.py +17 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_workflow.py +130 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/.github/workflows/publish.yml +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/.github/workflows/tests.yml +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/.gitignore +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/.readthedocs.yaml +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/LICENSE +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/MANIFEST.in +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/SECURITY.md +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/_static/css/custom.css +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/_templates/README.md +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/conf.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/marker_sources.md +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/requirements.txt +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/tutorials/load_model.ipynb +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/tutorials/pbmc8k_annotation.ipynb +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/docs/tutorials/report.md +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/pyproject.toml +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/setup.cfg +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/__main__.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/evaluate.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/evidence.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/granularity/__init__.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/granularity/cl_dag.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/granularity/ontology_map.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/granularity/relations.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/marker_plot.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/mltools.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/ontology/cl_isa.json +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/ontology/granularity_policy.yaml +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/ontology/ontology_map.jsonl +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/py.typed +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/read.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/LICENSE +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/merges.txt +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/tokenizer.json +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/tokenizer_config.json +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/vocab.json +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_evaluate.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_evidence.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_granularity.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_mltools.py +0 -0
- {annotuneagent-0.1.1 → annotuneagent-0.1.2}/tests/test_read.py +0 -0
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
-
## [
|
|
5
|
+
## [0.1.2] - 2026-11-10
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `geo_info` reads a GEO series record: sample titles, accessions, and
|
|
10
|
+
characteristics, without the count matrices. `read_geo` downloads the
|
|
11
|
+
samples you name and joins them. `groups` sets `obs["group"]`. The GEO
|
|
12
|
+
title stays in `obs["sample"]`.
|
|
13
|
+
- A tutorial runs [GSE266598](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE266598)
|
|
14
|
+
from the series page through `prepare` and annotation.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- The CLI refuses to write the JSON report, the labeled h5ad, or the marker
|
|
19
|
+
PDF onto an input file, or to use one path for two of those outputs.
|
|
20
|
+
- A T-cell subtype with no receptor gene detected in 25% of the cluster is
|
|
21
|
+
left out of `dictionary_hits`, is not a vote, and is not written when it is
|
|
22
|
+
the only name still in the judgment.
|
|
23
|
+
- `read_geo` keeps an uncompressed 10x file uncompressed. Several h5 matrices
|
|
24
|
+
use the one filtered file; otherwise the call raises. A sample title that
|
|
25
|
+
contains spaces can be passed as one string.
|
|
26
|
+
- Reusing a server this process did not start checks `/props` and
|
|
27
|
+
`/lora-adapters` again.
|
|
28
|
+
|
|
29
|
+
- `prepare` drops a stored neighbors record that has no `n_neighbors` before
|
|
30
|
+
it builds the graph. Hao 2021 PBMC carries that record, and Scanpy raised
|
|
31
|
+
`KeyError` on it.
|
|
32
|
+
- A marker score keeps every positive gene in the mean. A gene detected in
|
|
33
|
+
fewer than 25% of the cells contributes 0. Dropping that gene let monocyte
|
|
34
|
+
clusters match memory CD4 T cell on `S100a4` and `Cd44` alone.
|
|
35
|
+
- A name whose cited markers fail the expression check is not kept when the
|
|
36
|
+
name and ML models agree on another lineage. A marker call that already
|
|
37
|
+
failed is not written again in its place.
|
|
38
|
+
- A name under T cell cannot win the marker score unless `CD3D`, `CD3E`,
|
|
39
|
+
`CD3G`, or `TRAC` is detected in at least 25% of the cluster. Mouse symbols
|
|
40
|
+
are `Cd3d`, `Cd3e`, `Cd3g`, and `Trac`. The T cell row itself is unchanged.
|
|
41
|
+
- Human memory CD4 T cell uses `SLC4A10` and `TRAV1-2` as negative markers.
|
|
6
42
|
|
|
7
43
|
## [0.1.1] - 2026-11-09
|
|
8
44
|
|
|
@@ -17,8 +17,8 @@ authors:
|
|
|
17
17
|
orcid: "https://orcid.org/0000-0002-9276-9129"
|
|
18
18
|
repository-code: "https://github.com/leelieber2025/AnnoTuneAgent"
|
|
19
19
|
license: Apache-2.0
|
|
20
|
-
version: 0.1.
|
|
21
|
-
date-released: "2026-11-
|
|
20
|
+
version: 0.1.2
|
|
21
|
+
date-released: "2026-11-10"
|
|
22
22
|
keywords:
|
|
23
23
|
- single-cell
|
|
24
24
|
- RNA-seq
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: annotuneagent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Cluster-level cell-type annotation from marker, name, and ML results
|
|
5
5
|
Author-email: "Zhao Li (李钊)" <leelieber@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -159,6 +159,11 @@ directory when there is no h5). Scrublet and SOLO run per sample on those
|
|
|
159
159
|
filtered counts. `doublet_chip="10k"` (default) uses 0.8% multiplets per
|
|
160
160
|
1,000 recovered cells, and `"20k"` uses 0.4%.
|
|
161
161
|
|
|
162
|
+
`geo_info("GSE341410")` lists the samples in a GEO series. `read_geo` then
|
|
163
|
+
downloads the ones you name, and `groups` sets the condition in `obs["group"]`.
|
|
164
|
+
[docs/tutorials/gse266598_annotation.ipynb](docs/tutorials/gse266598_annotation.ipynb)
|
|
165
|
+
follows one series from the GEO page through annotation.
|
|
166
|
+
|
|
162
167
|
To score a caller-supplied list instead of the built-in dictionary:
|
|
163
168
|
|
|
164
169
|
```python
|
|
@@ -207,12 +212,12 @@ The tokenizer is installed with the package. See
|
|
|
207
212
|
|
|
208
213
|
## Status
|
|
209
214
|
|
|
210
|
-
**0.1.
|
|
215
|
+
**0.1.2 (Alpha).** Import as `import annotuneagent as ata`.
|
|
211
216
|
|
|
212
217
|
## Citation
|
|
213
218
|
|
|
214
219
|
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
215
|
-
Pin the package version used in the analysis, for example `annotuneagent==0.1.
|
|
220
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.2`.
|
|
216
221
|
|
|
217
222
|
## License
|
|
218
223
|
|
|
@@ -106,6 +106,11 @@ directory when there is no h5). Scrublet and SOLO run per sample on those
|
|
|
106
106
|
filtered counts. `doublet_chip="10k"` (default) uses 0.8% multiplets per
|
|
107
107
|
1,000 recovered cells, and `"20k"` uses 0.4%.
|
|
108
108
|
|
|
109
|
+
`geo_info("GSE341410")` lists the samples in a GEO series. `read_geo` then
|
|
110
|
+
downloads the ones you name, and `groups` sets the condition in `obs["group"]`.
|
|
111
|
+
[docs/tutorials/gse266598_annotation.ipynb](docs/tutorials/gse266598_annotation.ipynb)
|
|
112
|
+
follows one series from the GEO page through annotation.
|
|
113
|
+
|
|
109
114
|
To score a caller-supplied list instead of the built-in dictionary:
|
|
110
115
|
|
|
111
116
|
```python
|
|
@@ -154,12 +159,12 @@ The tokenizer is installed with the package. See
|
|
|
154
159
|
|
|
155
160
|
## Status
|
|
156
161
|
|
|
157
|
-
**0.1.
|
|
162
|
+
**0.1.2 (Alpha).** Import as `import annotuneagent as ata`.
|
|
158
163
|
|
|
159
164
|
## Citation
|
|
160
165
|
|
|
161
166
|
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
162
|
-
Pin the package version used in the analysis, for example `annotuneagent==0.1.
|
|
167
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.2`.
|
|
163
168
|
|
|
164
169
|
## License
|
|
165
170
|
|
|
@@ -58,6 +58,7 @@ scFair supplies the gene list and the resolution is half of its suggestion.
|
|
|
58
58
|
|------|----------|
|
|
59
59
|
| {doc}`installation`, {doc}`quickstart` | Install, then a first call |
|
|
60
60
|
| {doc}`tutorials/pbmc8k_annotation` | PBMC 8k: `prepare`, then the name and ML models |
|
|
61
|
+
| {doc}`tutorials/gse266598_annotation` | GEO GSE266598: download, then `prepare` and annotation |
|
|
61
62
|
| {doc}`tutorials/load_model` | Download the weights and run a local or remote model server |
|
|
62
63
|
| {doc}`tutorials/report` | What each part of the `run` report is for, including the text to paste |
|
|
63
64
|
| {doc}`api/index` | Function signatures |
|
|
@@ -11,7 +11,7 @@ import annotuneagent as ata
|
|
|
11
11
|
print(ata.__version__)
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
The version is set in `src/annotuneagent/_version.py` (currently **0.1.
|
|
14
|
+
The version is set in `src/annotuneagent/_version.py` (currently **0.1.2**).
|
|
15
15
|
|
|
16
16
|
From a checkout:
|
|
17
17
|
|
|
@@ -54,4 +54,6 @@ the reviewed name map. The tokenizer files come from `Qwen/Qwen3.5-4B`
|
|
|
54
54
|
## Next
|
|
55
55
|
|
|
56
56
|
{doc}`quickstart` for a first call, {doc}`tutorials/pbmc8k_annotation` for QC and
|
|
57
|
-
annotation, {doc}`tutorials/
|
|
57
|
+
annotation, {doc}`tutorials/gse266598_annotation` for a GEO series from the
|
|
58
|
+
series page through annotation, and {doc}`tutorials/load_model` for a local or
|
|
59
|
+
remote model server.
|
|
@@ -28,6 +28,23 @@ adata = ata.read_10x("outs", ["sample_a", "sample_b"])
|
|
|
28
28
|
adata = ata.prepare(adata, species="mouse", batch_key="sample")
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
To start from a GEO series, `ata.geo_info` reads the series record and lists
|
|
32
|
+
each sample title, accession, and characteristics. It does not download
|
|
33
|
+
counts. Print that result, choose the samples, and pass the names you want
|
|
34
|
+
to `ata.read_geo`. `obs["sample"]` stays the GEO title. `obs["group"]` is the
|
|
35
|
+
name you pass. Use either column as `batch_key`.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
info = ata.geo_info("GSE341410")
|
|
39
|
+
adata = ata.read_geo(info, samples=["B1", "B3"], groups="B1: control B3: Day7")
|
|
40
|
+
adata = ata.prepare(adata, species="mouse", batch_key="sample")
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
{doc}`tutorials/gse266598_annotation` runs this path on
|
|
44
|
+
[GSE266598](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE266598):
|
|
45
|
+
read the series page, download the two calvarial samples, then `prepare` and
|
|
46
|
+
`run`.
|
|
47
|
+
|
|
31
48
|
## Run the name and ML models
|
|
32
49
|
|
|
33
50
|
The call above collects the marker score only. To also run the name and ML
|
|
@@ -236,7 +253,9 @@ result, and writes the title. Doubt is recorded in `annotune_hint` and in
|
|
|
236
253
|
- `no_marker_passed`: none of the name's cited markers passed the expression
|
|
237
254
|
check. The name stays, the hint reads `no marker passed`, and the dotplot
|
|
238
255
|
shows the best-measured cited genes. If the marker call is a different name
|
|
239
|
-
that did pass, that name is written instead.
|
|
256
|
+
that did pass, that name is written instead. An unchecked marker call is
|
|
257
|
+
tried once. If it fails, and the name and ML models agree on another
|
|
258
|
+
lineage, that agreed name is written instead.
|
|
240
259
|
- `mixed_programs`: a cluster under 40 cells shows two programs. It is named
|
|
241
260
|
only when the marker score, name model, and ML model give the same name. The
|
|
242
261
|
hint lists the programs. Otherwise the cluster stays unnamed.
|