Skip to content

Add on-disc extractIonImage for imzML - #9654

Merged
timosachsenberg merged 8 commits into
OpenMS:developfrom
Aditya-Sarna:gsoc
Jun 29, 2026
Merged

timosachsenberg merged 8 commits into
OpenMS:developfrom
Aditya-Sarna:gsoc

Conversation

@Aditya-Sarna

@Aditya-Sarna Aditya-Sarna commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds extractIonImage() to OnDiscImzMLExperiment, enabling direct extraction of ion images for a specified m/z and ppm tolerance range from on-disk imzML data. The implementation avoids loading the entire dataset into memory, making visualization and analysis of large datasets more memory efficient.

What Changed

Added two overloads to OnDiscImzMLExperiment:

IonImage extractIonImage(double mz, double tolerance_ppm) const;

Extracts an ion image over the entire dataset by summing peak intensities within the window:

[mz - dm, mz + dm]

where:

dm = mz * tolerance_ppm * 1e-6
IonImage extractIonImage(double mz, double tolerance_ppm, Size region_id) const;

Performs the same extraction but restricts processing to a specific acquisition region.

Implementation

  • Spectra are decoded lazily from the .ibd file one pixel at a time using the existing decodeSpectrum() path.
  • The full dataset is never loaded into memory.
  • Uses the shared MSImagingGeometry mapping built during open(), ensuring pixel placement is consistent with the in-memory MSImagingExperiment::extractIonImage() implementation.

Tests

  • Added a C++ test verifying that the on-disc implementation matches MSImagingExperiment::extractIonImage() pixel-for-pixel.
  • Added an equivalent Python test to ensure consistent behavior across bindings.

Summary by CodeRabbit

  • New Features
    • Added on-demand ion image extraction for on-disc imaging data, with optional restriction to a region (region_id).
    • Added mutable access to the imaging geometry after loading.
    • Exposed the new ion-image extraction overloads to Python.
  • Bug Fixes
    • Improved input validation for non-finite/negative mz and tolerance_ppm, and clearer errors when data is unavailable or when region_id is unknown.
  • Tests
    • Added unit tests comparing on-disc vs in-memory ion images and verifying error handling.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4b7e4a74-6ef4-4ba0-ab3f-295a95dbccef

📥 Commits

Reviewing files that changed from the base of the PR and between 50beb70 and fe763f8.

📒 Files selected for processing (1)
  • src/tests/class_tests/openms/source/ImzMLFile_test.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/tests/class_tests/openms/source/ImzMLFile_test.cpp

📝 Walkthrough

Walkthrough

Adds shared ion-image extraction logic, reuses it from in-memory and on-disc experiments, and exposes new on-disc extraction overloads to Python. Tests cover whole-dataset, region-scoped extraction, and invalid-input cases.

Changes

Ion image extraction from on-disc ImzML

Layer / File(s) Summary
Shared extraction kernel and in-memory refactor
src/openms/include/OpenMS/IMAGING/IonImageExtraction.h, src/openms/include/OpenMS/IMAGING/MSImagingExperiment.h, src/openms/source/IMAGING/MSImagingExperiment.cpp
Adds the reusable Internal::extractIonImage template, removes the old private extractIntoImage_ declaration, and routes in-memory ion-image extraction through the shared helper for whole-image and region-based paths.
On-disc API declarations and implementation
src/openms/include/OpenMS/KERNEL/OnDiscImzMLExperiment.h, src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp
Adds whole-dataset and region-scoped extractIonImage declarations, mutable geometry access, and implementations that validate state, gather pixel indices, and delegate to the shared kernel.
pyOpenMS bindings
src/pyOpenMS/bindings/bind_kernel.cpp
Adds IonImage support and exposes both OnDiscImzMLExperiment.extractIonImage overloads to Python.
C++ and Python tests
src/tests/class_tests/openms/source/ImzMLFile_test.cpp, src/pyOpenMS/tests/unittests/test_ImzMLFile.py
Verifies on-disc extraction against in-memory results for whole-dataset and region-scoped cases, and checks the documented exception paths.

Possibly related PRs

  • OpenMS/OpenMS#9521: Introduces the region/ROI geometry support that the new region_id-scoped extraction path uses.

Suggested reviewers

  • timosachsenberg

Poem

🐇 I hop through spectra, bright and neat,
With ppm windows and pixel feet.
On disc or in memory, the ions align,
Region by region, the images shine.
Hop, hop, hooray!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 11.76% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding on-disc extractIonImage support for imzML.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🧹 Nitpick comments (3)
src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp (1)

257-305: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Reduce duplication between the two extractIonImage overloads.

The validation, ppm-window computation, IonImage allocation, and setMzRange are copied verbatim. Consider extracting a private helper that returns the configured image (and mz_lo/mz_hi), so both overloads only differ in the pixel set passed to extractIntoImage_.

♻️ Sketch
// in Impl:
IonImage makeWindowedImage_(double mz, double tolerance_ppm, double& mz_lo, double& mz_hi) const
{
  if (!std::isfinite(mz) || !std::isfinite(tolerance_ppm) || mz < 0.0 || tolerance_ppm < 0.0)
  {
    throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
                                  "mz and tolerance_ppm must be finite and non-negative",
                                  "mz=" + StringUtils::toStr(mz) + ", tolerance_ppm=" + StringUtils::toStr(tolerance_ppm));
  }
  if (!ibd_)
  {
    throw Exception::FileNotFound(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, ibd_path_);
  }
  const double dm = mz * tolerance_ppm * 1e-6;
  mz_lo = mz - dm;
  mz_hi = mz + dm;
  IonImage image(geometry_.getWidth(), geometry_.getHeight());
  image.setMzRange(RangeMZ(mz_lo, mz_hi));
  return image;
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp` around lines 257 - 305,
Both `OnDiscImzMLExperiment::extractIonImage` overloads duplicate the same
validation, ppm window calculation, `IonImage` construction, and `setMzRange`
setup. Extract that shared logic into a private helper (for example in the
impl/pimpl alongside `extractIntoImage_`) that returns the prepared image and
the computed `mz_lo`/`mz_hi`, then have each overload only fetch its pixel range
(`geom.getPixels()` vs `geom.getRegionPixels(region_id)`) and call
`extractIntoImage_`.
src/tests/class_tests/openms/source/ImzMLFile_test.cpp (1)

262-306: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a test for the extractIonImage(mz, tolerance_ppm, region_id) overload.

This section currently validates only the 2-argument overload, so the new region-restricted API path is still unguarded.

As per coding guidelines, "Write unit tests for new functionality and ensure existing tests pass before suggesting changes."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/tests/class_tests/openms/source/ImzMLFile_test.cpp` around lines 262 -
306, Add coverage for the new region-restricted IonImage API by extending the
existing extractIonImage test section to exercise the three-argument overload on
OnDiscImzMLExperiment. Use the same setup already in extractIonImage(double mz,
double tolerance_ppm) const, but call extractIonImage(mz, tolerance_ppm,
region_id) with a valid region from the loaded data and verify the returned
image dimensions and pixel masks/intensities against the expected region-limited
result. Keep the existing invalid-argument checks for the new overload as well
so the region_id path is also guarded.

Source: Coding guidelines

src/pyOpenMS/tests/unittests/test_ImzMLFile.py (1)

110-112: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Also assert negative tolerance_ppm raises in the Python binding test.

The C++ API validates both parameters; this test currently covers only negative mz.

✅ Minimal addition
             with self.assertRaises(Exception):
                 od.extractIonImage(-1.0, tol_ppm)
+            with self.assertRaises(Exception):
+                od.extractIonImage(mz, -1.0)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pyOpenMS/tests/unittests/test_ImzMLFile.py` around lines 110 - 112, In
the test method in test_ImzMLFile.py that currently only checks negative mz via
extractIonImage, add a second assertion that a negative tolerance_ppm value also
raises an Exception so the Python binding test matches the C++ API validation
for both parameters. Keep the change in the same test case and use the existing
od.extractIonImage call to verify the negative tolerance_ppm path.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tests/class_tests/openms/source/ImzMLFile_test.cpp`:
- Line 275: The boolean assertions in the ImzMLFile class test should use the
OpenMS-specific boolean macros instead of equality checks. Update the checks in
the ImzMLFile test case to replace `TEST_EQUAL(..., false)` and `TEST_EQUAL(...,
true)` with the corresponding `TEST_FALSE(...)` and `TEST_TRUE(...)` forms,
keeping the same expressions and test intent. Use the existing test symbols in
`ImzMLFile_test.cpp` around the `first` and related assertions to locate the
affected cases.

---

Nitpick comments:
In `@src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp`:
- Around line 257-305: Both `OnDiscImzMLExperiment::extractIonImage` overloads
duplicate the same validation, ppm window calculation, `IonImage` construction,
and `setMzRange` setup. Extract that shared logic into a private helper (for
example in the impl/pimpl alongside `extractIntoImage_`) that returns the
prepared image and the computed `mz_lo`/`mz_hi`, then have each overload only
fetch its pixel range (`geom.getPixels()` vs `geom.getRegionPixels(region_id)`)
and call `extractIntoImage_`.

In `@src/pyOpenMS/tests/unittests/test_ImzMLFile.py`:
- Around line 110-112: In the test method in test_ImzMLFile.py that currently
only checks negative mz via extractIonImage, add a second assertion that a
negative tolerance_ppm value also raises an Exception so the Python binding test
matches the C++ API validation for both parameters. Keep the change in the same
test case and use the existing od.extractIonImage call to verify the negative
tolerance_ppm path.

In `@src/tests/class_tests/openms/source/ImzMLFile_test.cpp`:
- Around line 262-306: Add coverage for the new region-restricted IonImage API
by extending the existing extractIonImage test section to exercise the
three-argument overload on OnDiscImzMLExperiment. Use the same setup already in
extractIonImage(double mz, double tolerance_ppm) const, but call
extractIonImage(mz, tolerance_ppm, region_id) with a valid region from the
loaded data and verify the returned image dimensions and pixel masks/intensities
against the expected region-limited result. Keep the existing invalid-argument
checks for the new overload as well so the region_id path is also guarded.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7ff747b9-d3fe-41ad-a3b4-3a14d7d6a25e

📥 Commits

Reviewing files that changed from the base of the PR and between ff1ce63 and eb0b6a5.

📒 Files selected for processing (5)
  • src/openms/include/OpenMS/KERNEL/OnDiscImzMLExperiment.h
  • src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp
  • src/pyOpenMS/bindings/bind_kernel.cpp
  • src/pyOpenMS/tests/unittests/test_ImzMLFile.py
  • src/tests/class_tests/openms/source/ImzMLFile_test.cpp


// Pick a real m/z present in the data (first peak of pixel 0) and a wide tolerance window.
const MSSpectrum first = od.getSpectrum(0);
TEST_EQUAL(first.empty(), false)

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use boolean-specific OpenMS test macros on Line 275 and Line 300.

Prefer TEST_FALSE/TEST_TRUE over TEST_EQUAL(..., false/true) in class tests.

♻️ Suggested update
-  TEST_EQUAL(first.empty(), false)
+  TEST_FALSE(first.empty())
...
-  TEST_EQUAL(masks_match, true)
+  TEST_TRUE(masks_match)

As per coding guidelines, "Prefer TEST_TRUE(expr) and TEST_FALSE(expr) over TEST_EQUAL(expr, true) and TEST_EQUAL(expr, false) for boolean assertions."

Also applies to: 300-300

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/tests/class_tests/openms/source/ImzMLFile_test.cpp` at line 275, The
boolean assertions in the ImzMLFile class test should use the OpenMS-specific
boolean macros instead of equality checks. Update the checks in the ImzMLFile
test case to replace `TEST_EQUAL(..., false)` and `TEST_EQUAL(..., true)` with
the corresponding `TEST_FALSE(...)` and `TEST_TRUE(...)` forms, keeping the same
expressions and test intent. Use the existing test symbols in
`ImzMLFile_test.cpp` around the `first` and related assertions to locate the
affected cases.

Source: Coding guidelines

@patrick-bo patrick-bo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall a very sensible addition, thank you for the work.

I have some conceptual concerns with this as OnDiscImzMlExperiment is in my opinion mostly an access class so I would suggest to refactor this as well as the in memory ion image extraction into a common function with wrappers around those, they are already mostly identical and I see this leading to issues downstream where one is refactored and the other forgotten.

Lift into a single extraction layer which parameterizes over how individual spectra are obtained (in-memory, no copy and on-disc with lifetime on this function).
extractIonImage should be a function over either spectrum source not duplicated onto multiple containers.

Additional point to this is that extracting Ion Images and pretty much all other individual spectra based tasks in imaging are basically a textbook example of parallelizable work. I would love to see the groundwork laid for generalizing such operations in the OnDiscImzMlExperiment, easiest implementation should be threading blocks of pixel indices while making sure no races occur in our output structures (std::vector used for the mask is packed).

@timosachsenberg

Copy link
Copy Markdown
Contributor

Building on @patrick-bo's review — I agree the duplication is the main thing to resolve here, and "parameterize over the spectrum source" is the right shape. Here's a concrete proposal for where the shared layer should live and how to keep no-copy on the in-memory path.

Why this is worth doing

The new on-disc extractIntoImage_ is a near-verbatim copy of MSImagingExperiment::extractIntoImage_; the only substantive difference is one line:

const MSSpectrum& spec = experiment_[p.spectrum_index];    // in-memory: reference, no copy
const MSSpectrum  spec = decodeSpectrum(p.spectrum_index); // on-disc:  decoded value, function lifetime

On top of that, both public overloads in both classes duplicate the validation, the dm = mz*tol*1e-6 window math, the IonImage allocation + setMzRange, and the iota-all-pixels vs getRegionPixels dispatch. Two classes, no shared base, four near-identical methods plus the copied helper — exactly the "refactor one, forget the other" hazard.

Where the shared helper lives

The layering already allows this with no new dependency edge: IMAGING already depends on KERNEL (MSImagingExperiment.h includes KERNEL/MSExperiment.h), and KERNEL/OnDiscImzMLExperiment.cpp already includes IMAGING/MSImagingGeometry.h. Both compile into the same libOpenMS, so there's no link cycle.

Since it has to be a template, it can't hide in a .cpp. Proposed home — a new header-only helper in an internal namespace:

src/openms/include/OpenMS/IMAGING/IonImageExtraction.h   (namespace OpenMS::Internal)

The key trick that preserves no-copy: the accessor returns either const MSSpectrum& or MSSpectrum, and const auto& spec = get_spectrum(...) does the right thing for both — it binds the reference directly (in-memory, no copy) or lifetime-extends the temporary for the iteration (on-disc value). A std::function<const MSSpectrum&(Size)> would not work — it would dangle on the on-disc value case, which is the lifetime concern Patrick raised.

// OpenMS/IMAGING/IonImageExtraction.h — internal, header-only
namespace OpenMS::Internal
{
  /// Build an IonImage by summing peak intensities in the ppm window for the given
  /// pixel subset. get_spectrum(spectrum_index) yields one pixel's spectrum — either
  /// `const MSSpectrum&` (in-memory, no copy) or `MSSpectrum` by value (on-disc).
  template <typename GetSpectrum>
  IonImage extractIonImage(const MSImagingGeometry& geom,
                           double mz, double tolerance_ppm,
                           const std::vector<Size>& pixel_indices,
                           Size n_spectra,
                           GetSpectrum&& get_spectrum)
  {
    if (!std::isfinite(mz) || !std::isfinite(tolerance_ppm) || mz < 0.0 || tolerance_ppm < 0.0)
      throw Exception::InvalidValue(/* ... */);

    const double dm = mz * tolerance_ppm * 1e-6;
    IonImage image(geom.getWidth(), geom.getHeight());
    image.setMzRange(RangeMZ(mz - dm, mz + dm));

    const auto& pixels = geom.getPixels();
    for (Size i : pixel_indices)
    {
      const auto& p = pixels[i];
      if (p.spectrum_index >= n_spectra) throw Exception::InvalidValue(/* ... */);
      const auto& spec = get_spectrum(p.spectrum_index);   // ref binds; value lifetime-extends
      double sum = 0.0;
      for (auto it = spec.MZBegin(mz - dm); it != spec.MZEnd(mz + dm); ++it)
        sum += static_cast<double>(it->getIntensity());
      image.setIntensity(p.x, p.y, sum);
    }
    return image;
  }
}

Both classes' methods then collapse to thin wrappers differing only in the pixel-index list and the accessor:

// MSImagingExperiment.cpp
IonImage MSImagingExperiment::extractIonImage(double mz, double tol) const {
  std::vector<Size> all(geometry_.getNumberOfPixels());
  std::iota(all.begin(), all.end(), Size(0));
  return Internal::extractIonImage(geometry_, mz, tol, all, experiment_.getNrSpectra(),
      [this](Size i) -> const MSSpectrum& { return experiment_[i]; });   // explicit ref return — required!
}

// OnDiscImzMLExperiment.cpp
IonImage OnDiscImzMLExperiment::extractIonImage(double mz, double tol) const {
  std::vector<Size> all(pimpl_->geometry_.getNumberOfPixels());
  std::iota(all.begin(), all.end(), Size(0));
  return Internal::extractIonImage(pimpl_->geometry_, mz, tol, all, pimpl_->index_.size(),
      [this](Size i) -> MSSpectrum { return pimpl_->decodeSpectrum(i); });
}

The region overloads are identical except they pass geom.getRegionPixels(region_id) instead of the iota list.

⚠️ One footgun to call out for whoever implements this: the in-memory lambda must have an explicit -> const MSSpectrum& return type. An unannotated auto-returning lambda decays to a by-value return and silently reintroduces the copy on the hot in-memory path.

Why a free template and not the alternatives

  • static/public method on MSImagingExperiment — makes OnDiscImzMLExperiment depend on a specific class, as if the on-disc path "borrows" the in-memory one. Worse semantics, same code.
  • Method on IonImage/MSImagingGeometry — those are containers; folding extraction logic in muddies their responsibility.
  • Shared base class — the two classes share one algorithm, not an is-a relationship or state. A free function over a spectrum source is the literal expression of the request.

On parallelization

Agree it's a textbook embarrassingly-parallel workload and the bit-packed std::vector<bool> mask_ race is real — setIntensity does an unsynchronized read-modify-write on the mask word, so two threads writing different pixels sharing a word still race. There's also an input-side blocker: OnDiscImzMLExperiment is documented as not thread-safe (one instance per thread), so a parallel decode needs thread-local readers / positional reads.

I'd suggest scoping the actual threading (plus a mask-storage change and thread-safe on-disc I/O) as a separate follow-up, since the serial implementation isn't a regression. The refactor above is exactly the groundwork for it: it leaves a single loop to parallelize and one place to fix the mask race, rather than two divergent copies.

Suggested actionable scope for this PR

  1. Extract the shared Internal::extractIonImage helper; reduce both classes to thin wrappers.
  2. Add a test for the 3-arg region_id overload (currently only the 2-arg path is covered — also flagged by CodeRabbit).
  3. Parallelism + mask redesign → follow-up issue.

…d in-memory processing

- Added extractIonImage function in IonImageExtraction.h for extracting ion images based on m/z values.
- Updated MSImagingExperiment and OnDiscImzMLExperiment to utilize the new extraction method.
- Removed legacy extractIntoImage_ methods to streamline the code.
- Added unit tests to validate the functionality of the new extraction method.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tests/class_tests/openms/source/ImzMLFile_test.cpp`:
- Around line 856-878: The ROI comparison in the ImzMLFile test is currently
vacuous because the hard-coded rectangle region may contribute no pixels, so the
check can pass on two empty masks. Update the test around the extractIonImage
comparisons for img and od to include one explicit positive assertion that at
least one pixel matched inside region 1, using the existing mem/ disc traversal
and masks_match logic so the test only passes when the ROI actually covers
acquired data.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bd5a6111-cef2-4a39-a63b-9f3985cfb37f

📥 Commits

Reviewing files that changed from the base of the PR and between eb0b6a5 and 50beb70.

📒 Files selected for processing (6)
  • src/openms/include/OpenMS/IMAGING/IonImageExtraction.h
  • src/openms/include/OpenMS/IMAGING/MSImagingExperiment.h
  • src/openms/include/OpenMS/KERNEL/OnDiscImzMLExperiment.h
  • src/openms/source/IMAGING/MSImagingExperiment.cpp
  • src/openms/source/KERNEL/OnDiscImzMLExperiment.cpp
  • src/tests/class_tests/openms/source/ImzMLFile_test.cpp
💤 Files with no reviewable changes (1)
  • src/openms/include/OpenMS/IMAGING/MSImagingExperiment.h

Aditya-Sarna and others added 3 commits June 27, 2026 02:34
@Aditya-Sarna

Copy link
Copy Markdown
Contributor Author

@timosachsenberg @patrick-bo This PR is ready for review. I have incorporated your suggestions by refactoring the extractIonImage() logic into a shared implementation, removing the duplication between in-memory and on-disc implementations.

@timosachsenberg

Copy link
Copy Markdown
Contributor

looks good to me!

@timosachsenberg
timosachsenberg merged commit 8b3a5d4 into OpenMS:develop Jun 29, 2026
9 of 10 checks passed
timosachsenberg added a commit that referenced this pull request Jun 30, 2026
- #9654: on-disc extractIonImage for imzML (IonImageExtraction.h shared kernel,
  OnDiscImzMLExperiment::extractIonImage without full dataset load)
- #9683: perf fix for three O(N²)/O(P²) hotspots in
  PeptideAndProteinQuant::quantifyProteins that caused hangs on large
  isobaric inputs (~7M PSMs)
- #9511: vcpkg integration (GSOC 2026) — vcpkg.json, CMakePresets.json,
  and CI workflow for reproducible dependency management


Claude-Session: https://claude.ai/code/session_01KNeJXnuadWQJgwm5kXVQjo

Co-authored-by: Claude <[email protected]>
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