[codex] refactor: rename ligand receptor workflow to cci#2
Conversation
There was a problem hiding this comment.
Sorry @hutaobo, your pull request is larger than the review limit of 150000 diff characters
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cf4868cbe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "DEFAULT_ATERA_WTA_CERVICAL_CONTOUR_KEY": (".atera_wta_cervical_end_to_end", "DEFAULT_ATERA_WTA_CERVICAL_CONTOUR_KEY"), | ||
| "DEFAULT_ATERA_WTA_CERVICAL_DATASET_PATH": (".atera_wta_cervical_end_to_end", "DEFAULT_ATERA_WTA_CERVICAL_DATASET_PATH"), | ||
| "DEFAULT_ATERA_WTA_CERVICAL_EXPANDED_CONTOUR_KEY": (".atera_wta_cervical_end_to_end", "DEFAULT_ATERA_WTA_CERVICAL_EXPANDED_CONTOUR_KEY"), | ||
| "DEFAULT_ATERA_WTA_CERVICAL_LR_PANEL": (".atera_wta_cervical_end_to_end", "DEFAULT_ATERA_WTA_CERVICAL_LR_PANEL"), |
There was a problem hiding this comment.
Export the renamed cervical CCI panel constant
pyXenium.validation now advertises DEFAULT_ATERA_WTA_CERVICAL_LR_PANEL, but atera_wta_cervical_end_to_end.py only defines DEFAULT_ATERA_WTA_CERVICAL_CCI_PANEL. Because __getattr__ resolves this mapping dynamically, any code that imports or accesses DEFAULT_ATERA_WTA_CERVICAL_LR_PANEL (including from pyXenium.validation import * via __all__) will raise AttributeError at runtime instead of returning the panel constant.
Useful? React with 👍 / 👎.
Summary
This PR performs the intentional breaking rename from the ligand-receptor workflow to the CCI/TopoLink-CCI workflow across source, tests, docs, tutorials, benchmark scaffolding, and tracked topology artifacts.
What changed
pyXenium.cci.cci_topology_analysisand removes the old publicpyXenium.ligand_receptorpackage.LR_scoretoCCI_score, and renames the input argument fromlr_pairstointeraction_pairswhile preserving biologicalligand/receptortable columns for CCI LR-resource mode.atera-lr/lr_2026_ateratoatera-cci/cci_2026_atera, including env names, runner utilities, CLI docs, and scaffold files.pyXenium.cci,cci.html, andcci_benchmarking.htmlinstead of the old ligand-receptor pages.Breaking change
Old public imports and CLI names are intentionally not retained:
pyXenium.ligand_receptoris removed.ligand_receptor_topology_analysisis removed from the public API.pyxenium benchmark atera-lr ...is replaced bypyxenium benchmark atera-cci ....Third-party API names such as Squidpy
ligrec, COMMOT ligand-receptor database calls, and R package argument names are kept where required by external packages.Validation
python -m compileall src\pyXenium benchmarking\cci_2026_atera\scripts benchmarking\cci_2026_atera\runners\pythonpython -m pytest tests/test_topology_analysis.py tests/test_cci_benchmarking.py tests/test_cci_benchmark_cli.py tests/test_pdc_benchmark_scripts.py tests/test_validation_module.py -qpython -m pytest tests/test_cli.py tests/test_contour_boundary_ecology.py tests/test_gmi_pdc_plan.py -qfrom pyXenium.cci import cci_topology_analysispasses.from pyXenium.ligand_receptor import ligand_receptor_topology_analysisraisesModuleNotFoundError.python -m sphinx -b html docs docs\_build\html.pyXenium.ligand_receptor,ligand_receptor_topology_analysis,atera-lr,lr_2026_atera,LR_score,lr_pairs,pyx-lr,r-lr.Notes
The local working tree still contains unrelated unstaged WIP and generated benchmark outputs. They were intentionally excluded from this PR.