Repository navigation
Add transparent .zip decompression for XML formats and Bruker .d - #9139
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…Source Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add missing #include <cstddef> for size_t in ZipIfstream.h - Move test ZIP files to src/tests/class_tests/openms/data/ - Use Deisotoper_input1.mzML (exists in unit test data dir) instead of SimpleSearchEngine_1.mzML (only in TOPP test dir) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds native ZIP support: new ZipIfstream/ZipInputStream (libzip-backed), recognizes ZIP via 'P''K' magic bytes, integrates ZIP into compressed parsing and FileHandler detection (including .d.zip for BRUKER_TDF), updates CMake, and adds unit tests and FileTypes::ZIP. Changes
Sequence DiagramsequenceDiagram
participant XMLFile as XMLFile
participant CIS as CompressedInputSource
participant ZIS as ZipInputStream
participant ZIF as ZipIfstream
participant LIB as libzip
XMLFile->>CIS: makeStream(systemId)
CIS->>CIS: read magic bytes
alt magic == 'P''K'
CIS->>ZIS: new ZipInputStream(systemId)
ZIS->>ZIF: construct ZipIfstream(systemId)
ZIF->>LIB: zip_open(filename)
LIB-->>ZIF: archive handle
ZIF->>LIB: enumerate entries (skip dirs)
LIB-->>ZIF: entry list
ZIF->>LIB: zip_fopen(single_entry)
LIB-->>ZIF: entry handle
ZIS-->>CIS: stream ready
else other compression
CIS->>CIS: use gzip/bzip2 path
end
XMLFile->>ZIS: readBytes(buffer, n)
ZIS->>ZIF: read(buffer, n)
ZIF->>LIB: zip_fread(entry, buffer, n)
LIB-->>ZIF: bytes
ZIF-->>ZIS: bytes read
ZIS-->>XMLFile: decompressed data
Possibly related PRs
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/openms/source/FORMAT/FileHandler.cpp (1)
381-400: Consider usingSizeinstead ofsize_t.Line 387 uses
size_tforbytes_read, but OpenMS coding guidelines specify usingSizefromOpenMS/CONCEPT/Types.hfor STL.size()values and similar size types. This is consistent with other parts of the codebase.Note that the existing bzip2 and gzip blocks (lines 347, 367) also use
size_t, so this may be an existing pattern in this function. Consider updating all three for consistency if you address this.♻️ Suggested fix
else if (bz[0] == 'P' && bz[1] == 'K') // ZIP { ZipIfstream zip_file(filename.c_str()); // read in 1024 bytes (keep last byte for zero to end string) char buffer[1024]; - size_t bytes_read = zip_file.read(buffer, 1024-1); + Size bytes_read = zip_file.read(buffer, 1024-1); buffer[bytes_read] = '\0';As per coding guidelines: "Use
Size/SignedSizetypes for STL.size()values in OpenMS".🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/FileHandler.cpp` around lines 381 - 400, Replace the use of size_t for read-length variables with OpenMS's Size type: change the declaration of bytes_read in the ZIP branch (the variable read from ZipIfstream in the block using ZipIfstream zip_file and char buffer[1024]) to Size, and update the analogous bytes_read declarations in the bzip2 and gzip branches for consistency; ensure the OpenMS/CONCEPT/Types.h header is included if not already so Size is available.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/openms/include/OpenMS/FORMAT/ZipInputStream.h`:
- Around line 38-42: Add Doxygen method-level comments for the three newly added
public overrides: curPos(), readBytes(XMLByte* const to_fill, const XMLSize_t
max_to_read), and getContentType() const in class ZipInputStream; for each
method add an `@brief` line, a blank line, and a short detailed description
following the project's Doxygen style (e.g., purpose, parameters for readBytes,
return details), ensuring the required `@brief` tag is present and placed
immediately above each method declaration.
In `@src/openms/source/FORMAT/ZipIfstream.cpp`:
- Around line 107-124: In ZipIfstream::read, zip_fread returning 0 is treated as
EOF which incorrectly triggers close() and sets stream_at_end_ even when the
caller requested a zero-length read (n == 0); modify ZipIfstream::read to
immediately return 0 when n == 0 before calling zip_fread so the stream state is
preserved, i.e. add an early-return for n==0 at the start of ZipIfstream::read
and keep the existing handling of zip_fread == 0 (EOF) only for actual non-zero
reads, leaving close() and stream_at_end_ unchanged for true EOF cases.
---
Nitpick comments:
In `@src/openms/source/FORMAT/FileHandler.cpp`:
- Around line 381-400: Replace the use of size_t for read-length variables with
OpenMS's Size type: change the declaration of bytes_read in the ZIP branch (the
variable read from ZipIfstream in the block using ZipIfstream zip_file and char
buffer[1024]) to Size, and update the analogous bytes_read declarations in the
bzip2 and gzip branches for consistency; ensure the OpenMS/CONCEPT/Types.h
header is included if not already so Size is available.
🪄 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: 85a7fae7-d04a-4bae-b2de-e5343e7214a3
⛔ Files ignored due to path filters (4)
src/tests/class_tests/openms/data/Deisotoper_input1.mzML.zipis excluded by!**/*.zipsrc/tests/class_tests/openms/data/DirEntry.mzML.zipis excluded by!**/*.zipsrc/tests/class_tests/openms/data/Empty.zipis excluded by!**/*.zipsrc/tests/class_tests/openms/data/MultiEntry.mzML.zipis excluded by!**/*.zip
📒 Files selected for processing (13)
src/openms/include/OpenMS/FORMAT/FileTypes.hsrc/openms/include/OpenMS/FORMAT/ZipIfstream.hsrc/openms/include/OpenMS/FORMAT/ZipInputStream.hsrc/openms/include/OpenMS/FORMAT/sources.cmakesrc/openms/source/FORMAT/CompressedInputSource.cppsrc/openms/source/FORMAT/FileHandler.cppsrc/openms/source/FORMAT/FileTypes.cppsrc/openms/source/FORMAT/XMLFile.cppsrc/openms/source/FORMAT/ZipIfstream.cppsrc/openms/source/FORMAT/ZipInputStream.cppsrc/openms/source/FORMAT/sources.cmakesrc/tests/class_tests/openms/executables.cmakesrc/tests/class_tests/openms/source/ZipIfstream_test.cpp
Extract ZIP archive to temp directory, find the .d directory inside, and pass it to BrukerTimsFile::load(). Temp directory is cleaned up automatically when the TempDir goes out of scope. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Address CodeRabbit review: - Add Doxygen blocks for curPos, readBytes, getContentType overrides - Early-return on n==0 in ZipIfstream::read() to avoid false EOF Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/openms/source/FORMAT/FileHandler.cpp (1)
244-248:⚠️ Potential issue | 🟡 MinorRemove or restrict ZIP suffix stripping in
getTypeByFileName()to input-only paths, since ZIP output is not supported.
getTypeByFileName()strips compression suffixes (.zip,.gz,.bz2) by recursively calling itself on the prefix. However, this method is used bystoreExperiment()and other output methods (line 1012). ZIP archives are not in thestoreExperiment()switch statement (which defaults to throwingInvalidFileType), so.zipshould not be accepted as a suffix for output files—yet the recursive stripping silently convertsfoo.mzML.ziptoMZMLtype, allowing the file to be written without compression.Additionally, there is a case-sensitivity mismatch: line 189 checks
normalized.hasSuffix(".zip")(lowercase only), whilegetTypeByFileName()usestmp.toUpper()then compares to"ZIP". This means.ZIP(uppercase) is handled differently in the read and write paths.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/FileHandler.cpp` around lines 244 - 248, getTypeByFileName() currently strips compression suffixes ("BZ2","GZ","ZIP") unconditionally and uses uppercase tmp, causing ZIP to be treated differently across read/write paths and allowing unsupported .zip outputs; update getTypeByFileName() to stop stripping ".zip" for output paths (either remove "ZIP" from the stripped-list or add a boolean parameter like strip_compression_only_for_input and use it where called from input routines), ensure callers such as storeExperiment() still receive the full filename so .zip is not converted to MZML for writing, and normalize case handling to be consistent with normalized.hasSuffix() (use a single case-insensitive check or lowercase comparisons) so ".ZIP" and ".zip" behave identically.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/openms/source/FORMAT/FileHandler.cpp`:
- Around line 189-190: The runtime checks that test normalized.hasSuffix(".zip")
are case-sensitive and should be adjusted to be case-insensitive to match
getTypeByFileName(); update the checks in FileHandler.cpp (the conditional using
File::exists, File::isDirectory and normalized.hasSuffix(".zip")) to either call
a case-insensitive hasSuffix overload (e.g. hasSuffix(".zip",
/*caseInsensitive*/ true)) or compare a lowercased filename suffix (e.g.
normalized.toLower().hasSuffix(".zip")), and apply the same change to the other
occurrence noted near line 937 so both places accept .ZIP, .Zip, etc.,
consistently with getTypeByFileName().
- Around line 941-949: The code currently only checks the temp directory's first
level with std::filesystem::directory_iterator and can leave load_path
unchanged, so before calling BrukerTimsFile::load() update the logic that finds
the `.d` folder: use std::filesystem::recursive_directory_iterator (or
explicitly descend one extra level) to locate the first directory whose
extension() == ".d", set load_path to that path when found, and otherwise fail
early (throw/log an error) indicating no valid `.d` folder was found so
BrukerTimsFile::load() is not called with an incorrect path; update references
around the directory scan (the loop using std::filesystem::directory_iterator
and the variable load_path) to implement this validation.
- Around line 387-389: The current check in FileHandler.cpp uses only bz[0]=='P'
&& bz[1]=='K', which is too broad; change the detection to verify a full ZIP
signature before constructing ZipIfstream (e.g., check bz[0]=='P' && bz[1]=='K'
&& bz[2]==0x03 && bz[3]==0x04 or accept other valid ZIP signatures like
PK\x01\x02/PK\x05\x06), so only real ZIP files are routed into ZipIfstream and
spurious two-byte matches do not cause decompression errors.
---
Outside diff comments:
In `@src/openms/source/FORMAT/FileHandler.cpp`:
- Around line 244-248: getTypeByFileName() currently strips compression suffixes
("BZ2","GZ","ZIP") unconditionally and uses uppercase tmp, causing ZIP to be
treated differently across read/write paths and allowing unsupported .zip
outputs; update getTypeByFileName() to stop stripping ".zip" for output paths
(either remove "ZIP" from the stripped-list or add a boolean parameter like
strip_compression_only_for_input and use it where called from input routines),
ensure callers such as storeExperiment() still receive the full filename so .zip
is not converted to MZML for writing, and normalize case handling to be
consistent with normalized.hasSuffix() (use a single case-insensitive check or
lowercase comparisons) so ".ZIP" and ".zip" behave identically.
🪄 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: 727805b3-7829-4e0b-827a-5e9e37b4a5fc
📒 Files selected for processing (1)
src/openms/source/FORMAT/FileHandler.cpp
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/openms/include/OpenMS/FORMAT/ZipInputStream.h`:
- Around line 20-36: The public API lacks full Doxygen blocks: replace the terse
/// comments for class ZipInputStream and its public methods (constructors
ZipInputStream(const String&), ZipInputStream(const char* const), destructor
~ZipInputStream(), and bool getIsOpen() const) with proper Doxygen `@brief` blocks
followed by a blank line and a short detailed description, add an `@ingroup` tag
to the class docblock, and for each constructor document possible exceptions
(e.g. file-not-found, invalid-zip, IO errors) using `@throws` (or `@exception`) so
callers know what can be thrown; ensure the destructor and getIsOpen() have full
Doxygen descriptions as well.
🪄 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: 35744104-9747-4c41-b161-fcb8c5024005
📒 Files selected for processing (2)
src/openms/include/OpenMS/FORMAT/ZipInputStream.hsrc/openms/source/FORMAT/ZipIfstream.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
- src/openms/source/FORMAT/ZipIfstream.cpp
| /** | ||
| * @brief Implements the BinInputStream class of the xerces-c library in order to read ZIP compressed XML files. | ||
| */ | ||
| class OPENMS_DLLAPI ZipInputStream : | ||
| public xercesc::BinInputStream | ||
| { | ||
| public: | ||
| /// Constructor | ||
| explicit ZipInputStream(const String& file_name); | ||
|
|
||
| explicit ZipInputStream(const char* const file_name); | ||
|
|
||
| /// Destructor | ||
| ~ZipInputStream() override; | ||
|
|
||
| /// returns true if file is open | ||
| bool getIsOpen() const; |
There was a problem hiding this comment.
Complete Doxygen coverage for the new public API surface.
The class-level block and method docs are partially complete, but Line 27–Line 36 still use minimal /// comments (no full @brief blocks), and constructor docs do not list possible exceptions. Also add the relevant @ingroup tag to the class documentation block.
As per coding guidelines: "Add Doxygen comments for new public methods and classes", "Document possible exceptions in C++ function/method documentation", "Use @brief plus blank line plus detailed description in Doxygen comments; required @brief tag", and "Use @defgroup and @ingroup tags for grouping related documentation in Doxygen".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/openms/include/OpenMS/FORMAT/ZipInputStream.h` around lines 20 - 36, The
public API lacks full Doxygen blocks: replace the terse /// comments for class
ZipInputStream and its public methods (constructors ZipInputStream(const
String&), ZipInputStream(const char* const), destructor ~ZipInputStream(), and
bool getIsOpen() const) with proper Doxygen `@brief` blocks followed by a blank
line and a short detailed description, add an `@ingroup` tag to the class
docblock, and for each constructor document possible exceptions (e.g.
file-not-found, invalid-zip, IO errors) using `@throws` (or `@exception`) so callers
know what can be thrown; ensure the destructor and getIsOpen() have full Doxygen
descriptions as well.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Use full 4-byte ZIP signature (PK\x03\x04) instead of just PK - Use recursive_directory_iterator for .d.zip extraction, error if no .d found - Make .zip suffix checks case-insensitive Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The ZIP type added READABLE property but the test expectation was not updated to reflect the new count. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add two missing changelog entries for commits after the last sync (#9140): - #9139: Transparent .zip decompression for XML formats and Bruker .d - #9143: Fix segfault in OpenSwathWorkflow with use_consensus=false Co-authored-by: Copilot <[email protected]>
Add two missing changelog entries for commits after the last sync (#9140): - #9139: Transparent .zip decompression for XML formats and Bruker .d - #9143: Fix segfault in OpenSwathWorkflow with use_consensus=false Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
…ller (#10273) * [FIX] BrukerTimsFile: read zipped .d directories (.d.zip) in every caller 'FileConverter -in DDA_HeLa_50ng_5_6min.d.zip -out x.mzML' failed with "File not readable (... .d.zip (opentims: Not a directory))", and so did pyOpenMS BrukerTimsFile().load() on the archive, although the CHANGELOG announces transparent .zip input for Bruker .d directories (#9139). #9139 unpacked a .d.zip only inside FileHandler::loadExperiment(). Its getType() reports the archive as BRUKER_TDF, and every caller that needs BrukerTimsFile::Config calls BrukerTimsFile directly instead of going through FileHandler: FileConverter, PeakPickerIM, CometAdapter, ProteomicsLFQ, SwathFile (OpenSwathWorkflow) and the pyOpenMS binding. They passed the archive path straight to opentims, which only opens directories. #9139 verified .d.zip loading through FileHandler only, and no test loads a .d.zip at all (the "[DATA] .d.zip load" item of the 3.6.0 testing plan #9460 was never done). The unpacking moves from FileHandler into BrukerTimsFile, the component that hands the path to opentims: load(), transform(), readDIAMetadata() and loadDIAStreaming() unpack a .d.zip into a TempDir that lives for the call and read the (possibly nested) .d directory inside, with the same lookup and "ZIP archive does not contain a .d directory" error as before. The source file metadata keeps naming the archive the user gave, not the temporary directory. FileHandler now delegates, so there is one implementation instead of a second one in each tool. Test: an SDK- and data-free BrukerTimsFile_test section zips a directory without a .d (ParseError) and one with a nested run.d (which must reach opentims). Both checks fail before this change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [FIX] BrukerTimsFile, ZipArchiveFile: unpack a DIA .d.zip once, bound extraction This addresses the two concerns CodeRabbit's security review raised on this PR. DIA. SwathFile (OpenSwathWorkflow) sizes its consumer from readDIAMetadata() and then streams the spectra with loadDIAStreaming(), on one BrukerTimsFile. Each call unpacked the .d.zip into its own temporary directory. The archive was unpacked twice, and the metadata and the spectra could come from different extractions. readDIAMetadata() now keeps its extraction, and the next call on the same object reads it if that call asks for the same archive. Any call other than readDIAMetadata() removes the kept files, as does destroying the object. Extraction. ZipArchiveFile::unzipDirectory() had no limit on what an archive can write, and this PR makes it reachable from every BrukerTimsFile caller, not only FileHandler. Before writing anything, it now rejects an archive with more than 100000 entries, or one whose declared uncompressed size exceeds the free space of the temporary directory. It also stops an entry that inflates beyond its declared size. With libzip 1.11.4, the version vcpkg builds, the old code wrote a 256 MiB entry declared as 1000 bytes in full and reported success. Tests. ZipArchiveFile_test extracts a stored entry whose headers declare 1000 of its 1 MiB. BrukerTimsFile_test deletes the archive after readDIAMetadata(). It then expects loadDIAStreaming() to read the kept files, and load() after that to find nothing kept. Both sections fail without this change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * ZipArchiveFile: reject an archive when the free space is unknown If std::filesystem::space() failed, unzipDirectory() skipped the free-space check and extracted anyway, so the stated limit did not hold on that path (found by CodeRabbit). It now rejects the archive with the error the query returned. The query asks about the directory that unzipDirectory() has just created, so this should happen only in unusual setups. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [FIX] BrukerTimsFile: read the .d that holds analysis.tdf, skip __MACOSX Unpacking a .d.zip took the first .d directory that recursive_directory_iterator returned. That order is unspecified, and an archive made with macOS's "Compress" also holds __MACOSX/<name>.d with AppleDouble files only. On ext4, run.d.zip, A.d.zip and X1.d.zip in that layout handed __MACOSX/<name>.d to opentims; sample.d.zip, B.d.zip and run2.d.zip did not. Now the shallowest .d that holds analysis.tdf or analysis.tdf_bin is read, as FileHandler::getType() requires of a directory, and the first by name among equals. __MACOSX is skipped. An archive without such a .d is reported as a ParseError before opentims sees it. Also from the review: - ZipArchiveFile::unzipDirectory compared paths as string prefixes, so '../parquet_unpacked_x/f' was extracted next to the target directory. It now compares path elements (lexically_relative). Such a file stayed inside the per-call TempDir. - FileTypes.cpp still said that FileHandler unpacks .d.zip. Tests: a BrukerTimsFile section with a macOS-style archive and one without analysis.tdf, and a ZipArchiveFile section for the sibling entry. Both fail on the previous head and pass now. The two existing .d.zip sections put a placeholder analysis.tdf into run.d, so they still reach opentims. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * ZipArchiveFile: let an archive use at most 90% of the free space CodeRabbit's security review of #10273 kept one concern. The free-space check let an archive declare, and write, all of the free space in the temporary directory, so a crafted archive could fill a filesystem that other work shares. unzipDirectory now rejects an archive whose declared size is more than 90% of the free space. That also leaves room for the output, which usually goes to the same filesystem. Checked with ZIP64 archives that declare 95% and 80% of the free space in /tmp. The first is now rejected (d01ebca extracted it), and the second still extracts. The crafted bomb, 1 PiB and 100,001-entry archives are rejected as before. The 361 MB DDA_HeLa_50ng_5_6min.d.zip converts to the same mzML apart from the output name and the index offsets it shifts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 --------- Co-authored-by: Claude <[email protected]>
Summary
.zipdecompression for all XML-based file formats (mzML, featureXML, idXML, etc.), matching the existing.gz/.bz2pattern.d.zipsupport for Bruker TimsTOF data (extract-to-temp-dir approach)ZipIfstream(libzip wrapper) andZipInputStream(XercesBinInputStream) classes stream-decompress single-entry ZIP archivesFileHandler(extension + magic byte detection),XMLFile::parse_(), andCompressedInputSource::makeStream()OPENMS_HAVE_LIBZIP— compiles cleanly when libzip is unavailableChanges
ZipIfstreamZipInputStreamBinInputStreamadapter wrappingZipIfstreamFileTypes::ZIPFileHandler.d.zipextract-to-tempXMLFile::parse_()CompressedInputSourceCompressedInputSourcemakeStream()dispatchesPK→ZipInputStreamTest plan
FileInfo -in data.mzML.zipworks end-to-end.d.ziploading viaFileHandler::loadExperiment()loads 11,912 spectra from zipped TimsTOF DDA data🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes / Improvements
Tests
Chores