Repository navigation
Preserve unmapped SDRF comments in run.parquet - #384
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 5 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
timosachsenberg
left a comment
There was a problem hiding this comment.
Reviewed at 1dd6a64 and ran an independent set of tests against it (written separately for #380, offline, pandas 3.1.1 / duckdb 2.0.0): all pass. Covered: an unmapped comment[roi id] appears exactly once as x_sdrf_roi_id and the mapped run fields are unchanged; a run with several SDRF rows gets the distinct values joined in file order (sentinel only when nothing else); the dataset validates and reads back through Dataset.run. Looks good to me.
Notes, none blocking:
comment[file uri]andcomment[associated file uri]now appear asx_sdrf_file_uri/x_sdrf_associated_file_uri, since no run field reads them (only the quantms_msstats adapter uses them for matching). Probably fine; just so it is intentional.qpxc mergeandqpxc migraterebuild views through writers that dropx_run columns (with a writer warning), so the new columns do not survive those commands. That is the existing behaviour forx_columns, but worth a follow-up issue now that the converter writes them routinely.- Values are written as pandas parsed them, so a numeric-looking comment (
007) only comes out as written together with #385. The two PRs conflict only intests/converters/test_sdrf_run_metadata.py(both append at the end).
Unrecognized
comment[...]columns were dropped during SDRF conversion, losing per-run annotations such as region, batch, or plate identifiers. Preserve them as queryable run extension columns.x_sdrf_<snake_case_name>; existing standard SDRF fields keep their current mappings.