Skip to content

Preserve unmapped SDRF comments in run.parquet - #384

Merged
Shen-YuFei merged 5 commits into
devfrom
copilot/fix-comment-columns-drop
Nov 12, 2026
Merged

Shen-YuFei merged 5 commits into
devfrom
copilot/fix-comment-columns-drop

Conversation

Copilot AI commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Mapping: Convert unmapped comment names to x_sdrf_<snake_case_name>; existing standard SDRF fields keep their current mappings.
  • Run schema: Allow declared extension columns and merge values per run when needed.
  • Example:
    comment[roi id] → x_sdrf_roi_id
    

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3340fc3b-f1a5-4da8-aa17-da0e5fc6fce9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codacy-production

codacy-production Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

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>
Copilot AI changed the title [WIP] Fix run.parquet to retain SDRF comment columns Preserve unmapped SDRF comments in run.parquet Nov 10, 2026
Copilot AI requested a review from ypriverol November 10, 2026 06:15
@ypriverol
ypriverol requested review from timosachsenberg and removed request for ypriverol November 10, 2026 06:59
@ypriverol
ypriverol marked this pull request as ready for review November 10, 2026 06:59
@qodo-code-review

Copy link
Copy Markdown

ⓘ 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 timosachsenberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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] and comment[associated file uri] now appear as x_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 merge and qpxc migrate rebuild views through writers that drop x_ run columns (with a writer warning), so the new columns do not survive those commands. That is the existing behaviour for x_ 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 in tests/converters/test_sdrf_run_metadata.py (both append at the end).

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.

run.parquet drops SDRF comment[...] columns it does not know (extra characteristics are kept in sample.parquet)

4 participants