Skip to content

Conversation

@Caroline-99
Copy link
Contributor

  • Added a proper validation-reporting package (src/amica/validation_reporting/) with config, loaders, pure stats, and Markdown renderers so the CXG outputs can be summarized without copy-pasted scripts.
  • Added scripts/generate_validation_reports.py (main script) as the main entry point under scripts/, exposing flags for directory overrides, report selection, ontology controls, and reuse via amica.validation_reporting.generate_reports.
  • Documented the workflow (docs/validation_reporting.md), covering required inputs, CLI usage, and ontology requirements, and verified the script against the real output/ data (raw and filtered report regenerated).

@Caroline-99 Caroline-99 requested a review from ubyndr December 17, 2025 12:58
@Caroline-99 Caroline-99 self-assigned this Dec 17, 2025
@Caroline-99 Caroline-99 marked this pull request as draft December 17, 2025 12:58
Comment on lines 38 to 44
Key flags:

- `--output-root`: base directory that contains `raw_output/`, `pandasaurus_cxg_outputs_30/`, and `reports/`. Defaults to `resources/cxg/output`.
- `--raw-output-dir`, `--match-type-dir`, `--reports-dir`: override individual directories if they live elsewhere.
- `--skip-filtered`, `--skip-examples`, `--skip-raw-stats`: toggle which reports are generated.
- `--skip-ontology`: skip the online OLS lookup entirely.
- `--ontology-adapter`: use a custom oaklib adapter string (e.g., `pronto:/path/to/cl.owl`) for offline runs. Defaults to `ols:cl`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you expand the docstring/README to explain when someone should use --raw-output-dir, --match-type-dir, or --reports-dir, and what happens if those directories are missing? Similarly, can you describe the intended use cases for the --skip-* toggles and clarify whether --skip-ontology impacts the accuracy of the filtered stats?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ubyndr I have updated the doc. Could you please review it and let me know if I need to add anything else? Thank you

Copy link
Collaborator

@ubyndr ubyndr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Caroline-99 Caroline-99 requested a review from ubyndr January 7, 2026 15:30
@ubyndr ubyndr marked this pull request as ready for review January 13, 2026 14:32
@ubyndr ubyndr merged commit afe3343 into main Jan 13, 2026
1 check passed
@ubyndr ubyndr deleted the validation_refactoring branch January 13, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants