Pyquet
Memory-efficient mzML to Parquet converter for mass spectrometry files.
Overview
Pyquet provides streaming conversion of mzML files to Parquet format with minimal memory usage, making it suitable for processing large mass spectrometry datasets without running out of memory. This project was originally developed as a side project inspired by GSoC 25' with OpenMS, with the goal of providing a simple CLI for converting .mzML to .parquet files, which is especially important in big data projects (e.g., machine learning).
Installation
From PyPI
pip install pyquet
From source
git clone https://github.com/Avni2000/pyquet.git
cd pyquet
pip install .
Development installation
git clone https://github.com/Avni2000/pyquet.git
cd pyquet
pip install -e ".[dev]"
Usage
CLI
Basic conversion:
pyquet input.mzML
or
pyquet ~/Downloads/input.mzML
Specify output file (defaults to working directory):
pyquet input.mzML -o output.parquet
Customize batch size and compression. I recommend :
pyquet input.mzML --batch-size 5000 --compression gzip
Get file information without converting:
pyquet input.mzML --info
Output Format
The converted Parquet files contain the following columns:
Depending on the type of mzml file, we have slightly different columns. Some columns may be blank, which is perfectly okay! It doesn't mean your mzml is wrong. The main expected values are time, m/z, and intensity
Contributions
It's quite a small project, feel free to make a PR or open an issue!
Metadata
Release files for PyquetMS 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyquetms-0.1.0.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyquetms-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / pyquetms-0.1.0.tar.gz
| Download URL | pyquetms-0.1.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70785b57d68113a679385d5cb9995e89db488eeb6bb8b3762735ae2446e46342
|
|
BLAKE2b-256 checksum How to use checksums |
a69b4af44e77cb48bf0e0f7646eeaf0f2f9d2067d297e9c191180875140fec70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Release files / pyquetms-0.1.0-py3-none-any.whl
| Download URL | pyquetms-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ee88a379cfab2861a9577c040b8929c335fe9737827b8c37d51b9820ae157f5
|
|
BLAKE2b-256 checksum How to use checksums |
e003806c4b5c34dcce6d18888af564dc55163d98b474134e8a1235172fdf742a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|