docs: fix fabricated API in README + quickstart - #28
Draft
nceglia wants to merge 1 commit into
Draft
Conversation
Both the README and docs/usage/quickstart.md documented an API that does not exist or is wrong: global_joint_distribution, probability_ternary, polar_plot (deprecation path), register_model phenotype_prob_slot="X_tcri_phenotypes", clonotypic_entropy(adata, cov, "phenotype"), n_latent=10, and more. The README is the PyPI long-description, so it would ship looking authoritative but wrong. Replace both with one accurate, runnable quickstart taken from the test suite (setup_anndata -> TCRIModel -> train -> register_model -> mutual_information / clonotypic_entropy / phenotypic_entropy), and point to the Read the Docs site (real API reference + the D2 concepts page) rather than duplicating a hand-written API in the README. Docs build clean (0 warnings); the fabricated names are gone from the output. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The README and
docs/usage/quickstart.mdboth documented an API that's wrong or nonexistent —global_joint_distribution,probability_ternary,polar_plot(deprecation path),register_model(..., "X_tcri_phenotypes")(real slot isX_tcri_probabilities),clonotypic_entropy(adata, cov, "phenotype")(no such positional),n_latent=10(real default 128), and more. Since the README is the PyPI long-description, this would ship to PyPI looking authoritative but broken.Replaced both with one accurate, runnable quickstart lifted from the test suite (ground truth):
setup_anndata→TCRIModel(adata)→train→register_model→mutual_information/clonotypic_entropy/phenotypic_entropy. The README now points to the Read the Docs site (the real API reference + the D2 concepts page) instead of duplicating a hand-written API.Verification
tests/test_metricsand the function defs).python -m sphinx -b html docs <out>→ build succeeded, 0 warnings; the fabricated names are gone from the builtquickstart.html.Closes the README API-cleanup item flagged before the PyPI release.
🤖 Generated with Claude Code