Repository navigation
Copyedit the documentation, correct the pancreas data description, rbeam plot changes - #4
Merged
Merged
Conversation
…rence lines Replace beam_rank_bars with beam_rank_dots, which draws one dot per series joined by a line so that reversed axes do not make the longest bar the worst method. Colour the attribution bars with the role palette shared by the sensitivity and variance plots. Add a size key option to the funky heatmap, label the group alpha and the bound in the reliability plot, and keep the P-score and method labels of the forest and critical difference plots inside the panel.
Plain sentences in the README, site index, contributing guide, package description, explanations, how-tos, tutorial and vignettes. Correct three statements that disagreed with the code: the optional card fields in the metric card how-to, the range check (card consistency audit, not the schema) and the OWL classes. Tran dataset 4 and the scIB pancreas task share four of their studies; the data README, the loader docstring and the cross-benchmark vignettes no longer call them the same data. Ignore R build leftovers and the generated man pages.
Axis labels say fraction instead of share, the specification curve names the method shown, the reliability plot has room above the group alpha line and puts the bound label in the facet with the lowest bars.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The inverted-range guidance contradicts runtime behavior, and the new size-legend branch lacks test coverage.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
This PR copyedits beam’s documentation, corrects the pancreas benchmark description, and updates rbeam visualizations.
Changes:
- Clarifies documentation and the partial overlap between pancreas datasets.
- Replaces
beam_rank_barswithbeam_rank_dotsand improves plot labels, colors, legends, and spacing. - Updates tests, exports, changelog, and ignored R build artifacts.
| File | Description |
|---|---|
src/beam/plot.py |
Renames variance proportions as fractions. |
src/beam/datasets.py |
Corrects pancreas benchmark overlap documentation. |
src/beam/data/README.md |
Documents the actual pancreas studies. |
README.md |
Reworks project and usage descriptions. |
r/beam/vignettes/ranking.Rmd |
Clarifies blinding terminology. |
r/beam/vignettes/metric-diagnostics.Rmd |
Clarifies blinding terminology. |
r/beam/vignettes/heterogeneity.Rmd |
Clarifies blinding terminology. |
r/beam/vignettes/cross-benchmark.Rmd |
Corrects pancreas overlap and related wording. |
r/beam/vignettes/cell-type-annotation.Rmd |
Clarifies blinding terminology. |
r/beam/tests/testthat/test-plots.R |
Updates the rank-plot smoke test. |
r/beam/R/plot_kinds.R |
Improves labels, colors, annotations, and clipping. |
r/beam/R/plot_grouped.R |
Replaces grouped rank bars with dots and ranges. |
r/beam/R/plot_builders.R |
Adds custom stacked-plot palettes. |
r/beam/R/funky_heatmap.R |
Adds an optional circle-size legend. |
r/beam/NAMESPACE |
Exports beam_rank_dots. |
r/beam/DESCRIPTION |
Rewrites the package description. |
index.qmd |
Reworks the documentation landing page. |
examples/transportation/transportation.qmd |
Clarifies MEREC’s zero handling. |
examples/m4/m4.qmd |
Updates variance terminology. |
examples/duo2018/duo2018.qmd |
Clarifies pooling and missing-data handling. |
examples/cross_benchmark/cross_benchmark.qmd |
Corrects pancreas overlap and terminology. |
examples/cell_type_annotation/cell_type_annotation.qmd |
Clarifies dataset coverage and comparisons. |
docs/tutorials/quickstart.md |
Copyedits introductory instructions. |
docs/README.md |
Clarifies the directory’s purpose. |
docs/metric-cards.qmd |
Documents optional card normalization. |
docs/how-to/run.md |
Expands manifest documentation. |
docs/how-to/run-heterogeneity-from-the-cli.md |
Clarifies required long-format input. |
docs/how-to/install.md |
Clarifies R installation constraints. |
docs/how-to/blind-an-analysis.md |
Clarifies method-label masking. |
docs/how-to/add-a-metric-card.md |
Updates optional fields and validation guidance. |
docs/explanations/weighting-schemes.md |
Copyedits CRITIC and MEREC descriptions. |
docs/explanations/reference-levels.md |
Clarifies reference-level checks. |
docs/explanations/rank-sensitivity.md |
Clarifies failure and missing-data behavior. |
docs/explanations/pairwise-method-comparison.md |
Copyedits implementation attribution. |
docs/explanations/ontology-mappings.md |
Clarifies URI requirements. |
docs/explanations/normalization-and-scales.md |
Clarifies normalization errors and audits. |
docs/explanations/missing-data.md |
Updates missing-cell terminology. |
docs/explanations/method-by-dataset-heterogeneity.md |
Clarifies tied ranks. |
docs/explanations/funky-heatmaps-and-robustness.md |
Clarifies caller-supplied panels. |
docs/explanations/dataset-concordance-and-discrimination.md |
Copyedits ranking behavior. |
docs/explanations/cards-and-pipeline.qmd |
Clarifies range-validation errors. |
docs/explanations/card-data-consistency.md |
Clarifies consistency-audit behavior. |
docs/explanations/attribution-synthesis.md |
Copyedits attribution descriptions. |
docs/explanations/analysis-blinding.md |
Clarifies seal handling. |
CONTRIBUTING.md |
Simplifies contribution guidance. |
CHANGELOG.md |
Records the rbeam plotting changes. |
.gitignore |
Ignores R build and generated documentation files. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+54
to
+55
| show_aggregation = TRUE, cliques = NULL, | ||
| size_legend = FALSE, ...) { |
| ``` | ||
|
|
||
| The schema check runs against every card in the registry. A missing required field, a polarity that does not match the polarity enum, or an inverted range (lower > upper) raises an error. | ||
| The schema check runs against every card in the registry. A missing required field or a polarity outside the polarity enum raises an error. An inverted range (lower > upper) passes the schema check; `beam.rank` reports it as a violation in the [card-data consistency report](../explanations/card-data-consistency.md). |
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.


This is a copyedit of the documentation, with one correction to the data description and a few changes to the rbeam plots.
beam_rank_dotsreplacesbeam_rank_bars. Calls to the old name will fail.beam_funky_heatmap(size_legend = TRUE)adds a key for the circle size..gitignorelists the R build leftovers and the generated man pages.pytestgives 893 passed and 3 skipped, andruff checkis clean. I did not runR CMD checklocally.