Skip to content

feat: Update chemometec_nc_view to use custom_information_aggregate_do…#1134

Open
joshua-benchling wants to merge 3 commits intomainfrom
jherna/poc_custom_information_aggregate_document_chemometec_nc_view
Open

feat: Update chemometec_nc_view to use custom_information_aggregate_do…#1134
joshua-benchling wants to merge 3 commits intomainfrom
jherna/poc_custom_information_aggregate_document_chemometec_nc_view

Conversation

@joshua-benchling
Copy link
Collaborator

This PR demonstrates the migration from the legacy custom_information_document to the new custom_information_aggregate_document format for a single parser

Changes:

  • Add add_custom_information_aggregate_document function to converter.py
  • Update cell_counting rec/_2024/_09 schema mapper to use new function
  • Update chemometec_nc_view test expectations with new format

…ation_aggregate_document

This PR migrates the cell_counting rec/_2024/_09 schema mapper from the legacy
custom_information_document to the new custom_information_aggregate_document format.

Changes:
- Add add_custom_information_aggregate_document function to converter.py
- Update _validate_structuring to handle dict types
- Add structure/unstructure hooks for custom_information_aggregate_document
- Update cell_counting rec/_2024/_09 schema mapper to use new function
- Update test expectations for all parsers using this schema mapper:
  - beckman_vi_cell_blu (4 files)
  - beckman_vi_cell_xr (10 files)
  - chemometec_nc_view (1 file)
  - chemometec_nucleoview (8 files)
  - revvity_matrix (4 files)
  - roche_cedex_hires (4 files)

The new format uses the ASM standard structure:
- custom_information_aggregate_document contains custom_information_document array
- Each item has datum_label, scalar type (scalar_double_datum, scalar_string_datum, etc.), and optional unit
@joshua-benchling joshua-benchling force-pushed the jherna/poc_custom_information_aggregate_document_chemometec_nc_view branch from 819bad4 to 7c304e9 Compare January 9, 2026 05:04
@joshua-benchling joshua-benchling marked this pull request as ready for review January 20, 2026 18:29
@joshua-benchling joshua-benchling requested review from a team and slopez-b as code owners January 20, 2026 18:29
Copy link
Collaborator

@nathan-stender nathan-stender left a comment

Choose a reason for hiding this comment

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

Code LGTM - however title and description need update, as this change affects not just chemometec, but all cell counters.

Also - want to make sure we merge support for custom_information_aggregate_document in CSV parser library before merging this. That PR is currently waiting on some tests - perhaps some test outputs from this PR can be used to implement

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