annotuneagent 0.1.0__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.2/CHANGELOG.md +102 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/CITATION.cff +2 -2
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/PKG-INFO +28 -7
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/README.md +25 -5
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/api/index.md +4 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/index.md +9 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/installation.md +13 -11
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/quickstart.md +24 -1
- annotuneagent-0.1.2/docs/tutorials/gse266598_annotation.ipynb +2043 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/tutorials/index.md +23 -1
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/tutorials/load_model.ipynb +8 -7
- annotuneagent-0.1.2/docs/tutorials/report.md +126 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/pyproject.toml +2 -1
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/__init__.py +13 -3
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/_version.py +1 -1
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/annotate.py +15 -2
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/arbitrate.py +32 -18
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/cli.py +29 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/decide.py +44 -7
- annotuneagent-0.1.2/src/annotuneagent/geo.py +614 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/hypotheses.py +11 -8
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/local_lora.py +227 -36
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/markers.py +25 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/markers.tsv +1 -1
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/prepare.py +18 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/votes.py +15 -2
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/workflow.py +108 -18
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent.egg-info/SOURCES.txt +4 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_annotate.py +112 -4
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_cli.py +44 -6
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_decide.py +32 -0
- annotuneagent-0.1.2/tests/test_geo.py +238 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_local_lora.py +176 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_markers.py +13 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_prepare.py +7 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_version.py +2 -2
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_votes.py +17 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_workflow.py +173 -1
- annotuneagent-0.1.0/CHANGELOG.md +0 -50
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/.github/workflows/publish.yml +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/.github/workflows/tests.yml +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/.gitignore +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/.readthedocs.yaml +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/LICENSE +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/MANIFEST.in +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/SECURITY.md +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/_static/css/custom.css +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/_templates/README.md +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/conf.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/marker_sources.md +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/requirements.txt +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/docs/tutorials/pbmc8k_annotation.ipynb +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/setup.cfg +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/__main__.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/evaluate.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/evidence.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/granularity/__init__.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/granularity/cl_dag.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/granularity/ontology_map.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/granularity/relations.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/marker_plot.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/mltools.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/ontology/cl_isa.json +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/ontology/granularity_policy.yaml +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/ontology/ontology_map.jsonl +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/py.typed +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/read.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/LICENSE +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/merges.txt +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/tokenizer.json +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/tokenizer_config.json +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/src/annotuneagent/tokenizer/vocab.json +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_evaluate.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_evidence.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_granularity.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_mltools.py +0 -0
- {annotuneagent-0.1.0 → annotuneagent-0.1.2}/tests/test_read.py +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
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.
|
|
42
|
+
|
|
43
|
+
## [0.1.1] - 2026-11-09
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- A running server is checked with `/props` and `/lora-adapters` when `/proc`
|
|
48
|
+
is unavailable, so Windows and macOS can reuse a server this package did
|
|
49
|
+
not start.
|
|
50
|
+
- A `TaskEndpoint` URL calls `/completion` and enables one LoRA adapter for
|
|
51
|
+
that request. When `maxlen` is omitted, name allows 2048 tokens and ML
|
|
52
|
+
allows 8192. An ML prompt does not fit in the name limit.
|
|
53
|
+
- A model request waits 600 seconds. `ANNOTUNE_TIMEOUT` or the `timeout`
|
|
54
|
+
argument overrides it. Health checks stay at 2 seconds.
|
|
55
|
+
- On Windows, a process check does not call `os.kill`.
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- The load-model tutorial points Windows users to
|
|
60
|
+
[AnnoTuneLoader](https://github.com/leelieber2025/AnnoTuneLoader).
|
|
61
|
+
- A tutorial explains each field of the `run` report. The `Queries` paragraph
|
|
62
|
+
is text to paste into another model.
|
|
63
|
+
|
|
64
|
+
## [0.1.0] - 2026-11-09
|
|
65
|
+
|
|
66
|
+
First public release.
|
|
67
|
+
|
|
68
|
+
### Added
|
|
69
|
+
|
|
70
|
+
- `read_10x(base, samples)` reads one filtered 10x matrix per sample folder
|
|
71
|
+
(h5 preferred over the mtx directory), makes gene and cell names unique,
|
|
72
|
+
and joins the samples.
|
|
73
|
+
- `prepare` fits QC per sample and prints the numeric cutoffs: total counts,
|
|
74
|
+
genes per cell, percent of counts in the top 20 genes, and mitochondrial
|
|
75
|
+
percent together with the 8% floor. Ribosomal and hemoglobin shares are
|
|
76
|
+
recorded and not used as filters.
|
|
77
|
+
- `prepare` normalization is `norm="log1p"` (default) or `norm="shifted"`.
|
|
78
|
+
Neighbor-graph batch correction is `none`, `harmony`, `combat`,
|
|
79
|
+
`scanorama`, `scvi`, or `scvi+harmony`.
|
|
80
|
+
- Scrublet and SOLO run per sample on the filtered unnormalized counts.
|
|
81
|
+
`doublet_chip` is `"10k"` (0.8% multiplets per 1,000 recovered cells) or
|
|
82
|
+
`"20k"` (0.4% per 1,000). `solo_expected_rates` replaces that rate.
|
|
83
|
+
AmbiDose, when enabled, runs per sample.
|
|
84
|
+
- `run` collects three results for each cluster: the marker score, the name
|
|
85
|
+
model, and the ML model. A judgment reads those results and writes the
|
|
86
|
+
title. The title is a dictionary name. The name and ML models run when a
|
|
87
|
+
model chain is passed. The name model copies a name from the marker
|
|
88
|
+
dictionary. The ML model is trained on machine-learning measurements of
|
|
89
|
+
the cluster (differential expression and marker-panel statistics) and
|
|
90
|
+
copies a name from those candidates. A cluster can stay unnamed. A cluster
|
|
91
|
+
with two programs and fewer than 40 cells keeps the name when marker,
|
|
92
|
+
name, and ML agree. An unclear cluster can take the title of the one clear
|
|
93
|
+
cluster it touches.
|
|
94
|
+
- `annotate` scores caller-supplied positive and negative markers.
|
|
95
|
+
`evaluate` compares cluster labels with a majority author label.
|
|
96
|
+
- The CLI entry point is `annotuneagent`.
|
|
97
|
+
|
|
98
|
+
### Changed
|
|
99
|
+
|
|
100
|
+
- GGUF weights are not in the package. They are downloaded separately. The
|
|
101
|
+
tokenizer, marker table, and Cell Ontology snapshot are installed with the
|
|
102
|
+
package.
|
|
@@ -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,15 +1,16 @@
|
|
|
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
|
|
7
7
|
Project-URL: Homepage, https://github.com/leelieber2025/AnnoTuneAgent
|
|
8
|
-
Project-URL: Documentation, https://
|
|
8
|
+
Project-URL: Documentation, https://annotuneagent.readthedocs.io/
|
|
9
9
|
Project-URL: Changelog, https://github.com/leelieber2025/AnnoTuneAgent/blob/main/CHANGELOG.md
|
|
10
10
|
Project-URL: Source, https://github.com/leelieber2025/AnnoTuneAgent
|
|
11
11
|
Project-URL: Issues, https://github.com/leelieber2025/AnnoTuneAgent/issues
|
|
12
12
|
Project-URL: PyPI, https://pypi.org/project/annotuneagent/
|
|
13
|
+
Project-URL: Zenodo, https://doi.org/10.5281/zenodo.24092828
|
|
13
14
|
Keywords: single-cell,RNA-seq,cell type annotation,marker genes,bioinformatics
|
|
14
15
|
Classifier: Development Status :: 3 - Alpha
|
|
15
16
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -52,11 +53,15 @@ Dynamic: license-file
|
|
|
52
53
|
|
|
53
54
|
# AnnoTuneAgent
|
|
54
55
|
|
|
56
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
57
|
+
[](https://pepy.tech/project/annotuneagent)
|
|
58
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
59
|
+
[](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
|
|
60
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
55
61
|
[](LICENSE)
|
|
56
|
-
[](https://app.readthedocs.org/projects/annotuneagent/)
|
|
62
|
+
[](https://doi.org/10.5281/zenodo.24092828)
|
|
58
63
|
|
|
59
|
-
Documentation: [Read the Docs](https://
|
|
64
|
+
Documentation: [Read the Docs](https://annotuneagent.readthedocs.io/en/latest/).
|
|
60
65
|
|
|
61
66
|
**Cluster-level cell-type annotation for single-cell RNA-seq, with two
|
|
62
67
|
fine-tuned language models that run locally.**
|
|
@@ -127,7 +132,13 @@ Harmony, and Scanorama. If you select one that is missing, `prepare` prints
|
|
|
127
132
|
the install command and leaves the matrix unchanged. See
|
|
128
133
|
[Installation](docs/installation.md).
|
|
129
134
|
|
|
130
|
-
From a checkout:
|
|
135
|
+
From a checkout:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
git clone https://github.com/leelieber2025/AnnoTuneAgent.git
|
|
139
|
+
cd AnnoTuneAgent
|
|
140
|
+
pip install -e ".[dev]"
|
|
141
|
+
```
|
|
131
142
|
|
|
132
143
|
## First run
|
|
133
144
|
|
|
@@ -148,6 +159,11 @@ directory when there is no h5). Scrublet and SOLO run per sample on those
|
|
|
148
159
|
filtered counts. `doublet_chip="10k"` (default) uses 0.8% multiplets per
|
|
149
160
|
1,000 recovered cells, and `"20k"` uses 0.4%.
|
|
150
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
|
+
|
|
151
167
|
To score a caller-supplied list instead of the built-in dictionary:
|
|
152
168
|
|
|
153
169
|
```python
|
|
@@ -196,7 +212,12 @@ The tokenizer is installed with the package. See
|
|
|
196
212
|
|
|
197
213
|
## Status
|
|
198
214
|
|
|
199
|
-
**0.1.
|
|
215
|
+
**0.1.2 (Alpha).** Import as `import annotuneagent as ata`.
|
|
216
|
+
|
|
217
|
+
## Citation
|
|
218
|
+
|
|
219
|
+
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
220
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.2`.
|
|
200
221
|
|
|
201
222
|
## License
|
|
202
223
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# AnnoTuneAgent
|
|
2
2
|
|
|
3
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
4
|
+
[](https://pepy.tech/project/annotuneagent)
|
|
5
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
6
|
+
[](https://annotuneagent.readthedocs.io/en/latest/?badge=latest)
|
|
7
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
3
8
|
[](LICENSE)
|
|
4
|
-
[](https://app.readthedocs.org/projects/annotuneagent/)
|
|
9
|
+
[](https://doi.org/10.5281/zenodo.24092828)
|
|
6
10
|
|
|
7
|
-
Documentation: [Read the Docs](https://
|
|
11
|
+
Documentation: [Read the Docs](https://annotuneagent.readthedocs.io/en/latest/).
|
|
8
12
|
|
|
9
13
|
**Cluster-level cell-type annotation for single-cell RNA-seq, with two
|
|
10
14
|
fine-tuned language models that run locally.**
|
|
@@ -75,7 +79,13 @@ Harmony, and Scanorama. If you select one that is missing, `prepare` prints
|
|
|
75
79
|
the install command and leaves the matrix unchanged. See
|
|
76
80
|
[Installation](docs/installation.md).
|
|
77
81
|
|
|
78
|
-
From a checkout:
|
|
82
|
+
From a checkout:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
git clone https://github.com/leelieber2025/AnnoTuneAgent.git
|
|
86
|
+
cd AnnoTuneAgent
|
|
87
|
+
pip install -e ".[dev]"
|
|
88
|
+
```
|
|
79
89
|
|
|
80
90
|
## First run
|
|
81
91
|
|
|
@@ -96,6 +106,11 @@ directory when there is no h5). Scrublet and SOLO run per sample on those
|
|
|
96
106
|
filtered counts. `doublet_chip="10k"` (default) uses 0.8% multiplets per
|
|
97
107
|
1,000 recovered cells, and `"20k"` uses 0.4%.
|
|
98
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
|
+
|
|
99
114
|
To score a caller-supplied list instead of the built-in dictionary:
|
|
100
115
|
|
|
101
116
|
```python
|
|
@@ -144,7 +159,12 @@ The tokenizer is installed with the package. See
|
|
|
144
159
|
|
|
145
160
|
## Status
|
|
146
161
|
|
|
147
|
-
**0.1.
|
|
162
|
+
**0.1.2 (Alpha).** Import as `import annotuneagent as ata`.
|
|
163
|
+
|
|
164
|
+
## Citation
|
|
165
|
+
|
|
166
|
+
For the software record, cite the [Zenodo DOI](https://doi.org/10.5281/zenodo.24092828).
|
|
167
|
+
Pin the package version used in the analysis, for example `annotuneagent==0.1.2`.
|
|
148
168
|
|
|
149
169
|
## License
|
|
150
170
|
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# AnnoTuneAgent Documentation
|
|
2
2
|
|
|
3
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
4
|
+
[](https://pepy.tech/project/annotuneagent)
|
|
5
|
+
[](https://pypi.org/project/annotuneagent/)
|
|
6
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/actions/workflows/tests.yml)
|
|
7
|
+
[](https://github.com/leelieber2025/AnnoTuneAgent/blob/main/LICENSE)
|
|
8
|
+
[](https://doi.org/10.5281/zenodo.24092828)
|
|
9
|
+
|
|
3
10
|
AnnoTuneAgent annotates clustered scRNA-seq. `prepare` runs QC, gene
|
|
4
11
|
selection, and Leiden clustering. `run` collects three results for each
|
|
5
12
|
cluster: a marker score, a name-model result, and an ML-model result. A
|
|
@@ -51,7 +58,9 @@ scFair supplies the gene list and the resolution is half of its suggestion.
|
|
|
51
58
|
|------|----------|
|
|
52
59
|
| {doc}`installation`, {doc}`quickstart` | Install, then a first call |
|
|
53
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 |
|
|
54
62
|
| {doc}`tutorials/load_model` | Download the weights and run a local or remote model server |
|
|
63
|
+
| {doc}`tutorials/report` | What each part of the `run` report is for, including the text to paste |
|
|
55
64
|
| {doc}`api/index` | Function signatures |
|
|
56
65
|
| {doc}`marker_sources` | Marker reference sources and verification decisions |
|
|
57
66
|
|
|
@@ -6,14 +6,21 @@ Python 3.10–3.13.
|
|
|
6
6
|
pip install annotuneagent
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
From a checkout, `pip install -e .` installs this tree instead.
|
|
10
|
-
|
|
11
9
|
```python
|
|
12
10
|
import annotuneagent as ata
|
|
13
11
|
print(ata.__version__)
|
|
14
12
|
```
|
|
15
13
|
|
|
16
|
-
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
|
+
|
|
16
|
+
From a checkout:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
git clone https://github.com/leelieber2025/AnnoTuneAgent.git
|
|
20
|
+
cd AnnoTuneAgent
|
|
21
|
+
pip install -e ".[dev]"
|
|
22
|
+
pip install -e ".[docs]"
|
|
23
|
+
```
|
|
17
24
|
|
|
18
25
|
## Dependencies
|
|
19
26
|
|
|
@@ -32,13 +39,6 @@ package. These are optional:
|
|
|
32
39
|
If you select an optional method and its package is missing, `prepare` prints
|
|
33
40
|
the install command and leaves the matrix unchanged. ComBat is part of Scanpy.
|
|
34
41
|
|
|
35
|
-
Other extras:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pip install -e ".[docs]" # build this documentation from a checkout
|
|
39
|
-
pip install -e ".[dev]" # pytest and ruff
|
|
40
|
-
```
|
|
41
|
-
|
|
42
42
|
## Model weights
|
|
43
43
|
|
|
44
44
|
The GGUF weights are not in the Python package. Download them from the
|
|
@@ -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
|
|
@@ -184,6 +201,10 @@ panel, not to each gene separately.
|
|
|
184
201
|
and UMAP and dotplot calls. Edit the order or labels and rerun the snippet to
|
|
185
202
|
regenerate the plots.
|
|
186
203
|
|
|
204
|
+
{doc}`tutorials/report` explains every report field. The printed `Queries`
|
|
205
|
+
block is text to paste into another model. The heading is the local note.
|
|
206
|
+
The paragraph under it is the question.
|
|
207
|
+
|
|
187
208
|
A Cell Ontology id is the exact map row for the written label. An unreviewed id
|
|
188
209
|
is marked pending.
|
|
189
210
|
|
|
@@ -232,7 +253,9 @@ result, and writes the title. Doubt is recorded in `annotune_hint` and in
|
|
|
232
253
|
- `no_marker_passed`: none of the name's cited markers passed the expression
|
|
233
254
|
check. The name stays, the hint reads `no marker passed`, and the dotplot
|
|
234
255
|
shows the best-measured cited genes. If the marker call is a different name
|
|
235
|
-
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.
|
|
236
259
|
- `mixed_programs`: a cluster under 40 cells shows two programs. It is named
|
|
237
260
|
only when the marker score, name model, and ML model give the same name. The
|
|
238
261
|
hint lists the programs. Otherwise the cluster stays unnamed.
|