annotuneagent 0.1.6__tar.gz → 0.1.7__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 (77) hide show
  1. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/CHANGELOG.md +7 -0
  2. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/CITATION.cff +1 -1
  3. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/PKG-INFO +3 -3
  4. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/README.md +2 -2
  5. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/installation.md +1 -1
  6. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/_version.py +1 -1
  7. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/cli.py +6 -2
  8. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/decide.py +1 -3
  9. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/local_lora.py +3 -1
  10. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/workflow.py +0 -7
  11. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_version.py +2 -2
  12. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/.github/workflows/publish.yml +0 -0
  13. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/.github/workflows/tests.yml +0 -0
  14. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/.gitignore +0 -0
  15. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/.readthedocs.yaml +0 -0
  16. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/LICENSE +0 -0
  17. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/MANIFEST.in +0 -0
  18. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/SECURITY.md +0 -0
  19. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/_static/css/custom.css +0 -0
  20. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/_templates/README.md +0 -0
  21. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/api/index.md +0 -0
  22. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/conf.py +0 -0
  23. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/index.md +0 -0
  24. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/marker_sources.md +0 -0
  25. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/quickstart.md +0 -0
  26. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/requirements.txt +0 -0
  27. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/tutorials/gse266598_annotation.ipynb +0 -0
  28. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/tutorials/index.md +0 -0
  29. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/tutorials/load_model.ipynb +0 -0
  30. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/tutorials/pbmc8k_annotation.ipynb +0 -0
  31. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/docs/tutorials/report.md +0 -0
  32. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/pyproject.toml +0 -0
  33. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/setup.cfg +0 -0
  34. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/__init__.py +0 -0
  35. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/__main__.py +0 -0
  36. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/annotate.py +0 -0
  37. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/arbitrate.py +0 -0
  38. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/evaluate.py +0 -0
  39. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/evidence.py +0 -0
  40. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/geo.py +0 -0
  41. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/granularity/__init__.py +0 -0
  42. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/granularity/cl_dag.py +0 -0
  43. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/granularity/ontology_map.py +0 -0
  44. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/granularity/relations.py +0 -0
  45. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/hypotheses.py +0 -0
  46. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/marker_plot.py +0 -0
  47. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/markers.py +0 -0
  48. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/markers.tsv +0 -0
  49. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/mltools.py +0 -0
  50. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/ontology/cl_isa.json +0 -0
  51. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/ontology/granularity_policy.yaml +0 -0
  52. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/ontology/ontology_map.jsonl +0 -0
  53. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/prepare.py +0 -0
  54. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/py.typed +0 -0
  55. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/read.py +0 -0
  56. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/tokenizer/LICENSE +0 -0
  57. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/tokenizer/merges.txt +0 -0
  58. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/tokenizer/tokenizer.json +0 -0
  59. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/tokenizer/tokenizer_config.json +0 -0
  60. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/tokenizer/vocab.json +0 -0
  61. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent/votes.py +0 -0
  62. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/src/annotuneagent.egg-info/SOURCES.txt +0 -0
  63. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_annotate.py +0 -0
  64. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_bugfixes_1111.py +0 -0
  65. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_cli.py +0 -0
  66. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_decide.py +0 -0
  67. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_evaluate.py +0 -0
  68. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_evidence.py +0 -0
  69. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_geo.py +0 -0
  70. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_granularity.py +0 -0
  71. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_local_lora.py +0 -0
  72. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_markers.py +0 -0
  73. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_mltools.py +0 -0
  74. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_prepare.py +0 -0
  75. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_read.py +0 -0
  76. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_votes.py +0 -0
  77. {annotuneagent-0.1.6 → annotuneagent-0.1.7}/tests/test_workflow.py +0 -0
@@ -4,6 +4,13 @@ All notable changes to this project are documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.1.7] - 2026-11-19
8
+
9
+ ### Fixed
10
+
11
+ - Remove the unused merged-id list in `merge_same_labels`. `ruff` failed the
12
+ 0.1.6 tests job on that assignment. Annotation behavior matches 0.1.6.
13
+
7
14
  ## [0.1.6] - 2026-11-19
8
15
 
9
16
  ### Changed
@@ -15,7 +15,7 @@ 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
18
+ version: 0.1.7
19
19
  date-released: "2026-11-17"
20
20
  keywords:
21
21
  - single-cell
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: annotuneagent
3
- Version: 0.1.6
3
+ Version: 0.1.7
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
@@ -223,12 +223,12 @@ The tokenizer is installed with the package. See
223
223
 
224
224
  ## Status
225
225
 
226
- **0.1.6 (Alpha).** Import as `import annotuneagent as ata`.
226
+ **0.1.7 (Alpha).** Import as `import annotuneagent as ata`.
227
227
 
228
228
  ## Citation
229
229
 
230
230
  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`.
231
+ Pin the package version used in the analysis, for example `annotuneagent==0.1.7`.
232
232
 
233
233
  ## License
234
234
 
@@ -169,12 +169,12 @@ The tokenizer is installed with the package. See
169
169
 
170
170
  ## Status
171
171
 
172
- **0.1.6 (Alpha).** Import as `import annotuneagent as ata`.
172
+ **0.1.7 (Alpha).** Import as `import annotuneagent as ata`.
173
173
 
174
174
  ## Citation
175
175
 
176
176
  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`.
177
+ Pin the package version used in the analysis, for example `annotuneagent==0.1.7`.
178
178
 
179
179
  ## License
180
180
 
@@ -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.6**).
14
+ The version is set in `src/annotuneagent/_version.py` (currently **0.1.7**).
15
15
 
16
16
  From a checkout:
17
17
 
@@ -7,7 +7,7 @@ from __future__ import annotations
7
7
 
8
8
  __all__ = ["__version__", "version", "version_tuple"]
9
9
 
10
- __version__ = "0.1.6"
10
+ __version__ = "0.1.7"
11
11
  version = __version__
12
12
 
13
13
  _parts: list[int | str] = []
@@ -240,9 +240,13 @@ def main(argv: list[str] | None = None) -> int:
240
240
  help="server root, default http://127.0.0.1:8080; reuse requires matching GGUF and adapters",
241
241
  )
242
242
  parser.add_argument("--name-url", help="name adapter server root")
243
- parser.add_argument("--ml-url", help="accepted and not called; the check rule replaces the ML request")
243
+ parser.add_argument(
244
+ "--ml-url", help="accepted and not called; the check rule replaces the ML request"
245
+ )
244
246
  parser.add_argument("--name-adapter", help="name LoRA GGUF loaded on the base")
245
- parser.add_argument("--ml-adapter", help="accepted and not loaded; the check rule replaces the ML request")
247
+ parser.add_argument(
248
+ "--ml-adapter", help="accepted and not loaded; the check rule replaces the ML request"
249
+ )
246
250
  parser.add_argument(
247
251
  "--base",
248
252
  help="merged name GGUF, or the base used with --name-adapter",
@@ -779,9 +779,7 @@ def check_proposal(
779
779
  states = {name: status(item) for name, item in by_name.items()}
780
780
  state = states.get(proposal) if proposal else None
781
781
  clean = [
782
- name
783
- for name, item_status in states.items()
784
- if item_status == "clean" and name != proposal
782
+ name for name, item_status in states.items() if item_status == "clean" and name != proposal
785
783
  ]
786
784
  if state == "clean":
787
785
  return {"action": "agree", "name": proposal, "reason": "agree", "also_clean": clean}
@@ -775,7 +775,9 @@ def _loaded_servers() -> list[dict]:
775
775
  names = [part for value in _all_args(argv, "--lora") for part in value.split(",") if part]
776
776
  if len(names) == 2:
777
777
  adapters = dict(zip(_TASKS, names, strict=True))
778
- elif len(names) == 1 and "name" in set(re.split(r"[^a-z0-9]+", Path(names[0]).name.lower())):
778
+ elif len(names) == 1 and "name" in set(
779
+ re.split(r"[^a-z0-9]+", Path(names[0]).name.lower())
780
+ ):
779
781
  adapters = {"name": names[0]}
780
782
  else:
781
783
  adapters = {}
@@ -2109,19 +2109,12 @@ def merge_same_labels(adata: AnnData, cluster_key: str, label_key: str) -> list[
2109
2109
  for uid, found in names_per_unit.items():
2110
2110
  if len(found) == 1:
2111
2111
  by_name[next(iter(found))].append(uid)
2112
- chosen_for: dict[str, str] = {}
2113
2112
  merged: list[dict[str, object]] = []
2114
2113
  for name, members in by_name.items():
2115
2114
  ordered = sorted(members, key=_unit_key)
2116
2115
  chosen = ordered[0]
2117
- for uid in ordered:
2118
- chosen_for[uid] = chosen
2119
2116
  if len(ordered) > 1:
2120
2117
  merged.append({"name": name, "cluster": chosen, "members": ordered})
2121
- new_ids = [
2122
- chosen_for[str(uid)] if ok and str(uid) in chosen_for else str(uid)
2123
- for uid, ok in zip(unit, named, strict=True)
2124
- ]
2125
2118
  return merged
2126
2119
 
2127
2120
 
@@ -2,5 +2,5 @@ from annotuneagent._version import __version__, version_tuple
2
2
 
3
3
 
4
4
  def test_version_tuple():
5
- assert __version__ == "0.1.6"
6
- assert version_tuple == (0, 1, 6)
5
+ assert __version__ == "0.1.7"
6
+ assert version_tuple == (0, 1, 7)
File without changes
File without changes
File without changes
File without changes
File without changes