Skip to main content

Vendor-neutral mass-spec I/O: Thermo / Bruker / Waters to mzML, with Arrow streaming. Python bindings to the openmassspec-io Rust crate.

Project description

openmassspec-io (Python)

Python bindings for the openmassspec-io Rust crate. Detect a Thermo / Bruker / Waters acquisition on disk, convert it to mzML, or stream spectra as zero-copy NumPy arrays / pyarrow record batches.

import openmassspec_io as opio

fmt = opio.detect("sample.raw")        # -> "thermo" | "bruker" | "waters" | None
opio.to_mzml("sample.raw", "sample.mzML", indexed=True)

for spec in opio.iter_spectra("sample.raw"):
    print(spec.native_id, spec.ms_level, spec.mz.shape)

# Optional Arrow stream (requires pyarrow):
reader = opio.read_arrow("sample.raw", batch_size=1024)
for batch in reader:
    print(batch.num_rows)

Build from source:

pip install maturin
maturin develop --release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmassspec_io-1.0.0.tar.gz (33.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

openmassspec_io-1.0.0-cp39-abi3-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9+Windows x86-64

openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

openmassspec_io-1.0.0-cp39-abi3-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

openmassspec_io-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file openmassspec_io-1.0.0.tar.gz.

File metadata

  • Download URL: openmassspec_io-1.0.0.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openmassspec_io-1.0.0.tar.gz
Algorithm Hash digest
SHA256 98a5fc56bb1673ad898094e6c79777cb1d99d82bd92ab203149a5acc663dac31
MD5 a50a6d46db0818682183d2a80e1a7c57
BLAKE2b-256 cc5e7f1e1f56928a7c12bacbb62f658bfa314f9bf8eeb0d97bbf4d52a724458a

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0.tar.gz:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmassspec_io-1.0.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for openmassspec_io-1.0.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2be5fab5f6a58f6b42582a6957e4215987ffac52929df898d88575d380acdade
MD5 3462746e758141e0572e3db8854b9625
BLAKE2b-256 6f497e1b790cb4277d0233ea3c0512d6e3ff0960ec1127f133317acc2597e290

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0-cp39-abi3-win_amd64.whl:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a286767fb7cdeaa8f41254e367b7654a4541797ecc9196354ab6b449f55e3f5c
MD5 c38ee2a5e8ef8f6223faa598dba3dc77
BLAKE2b-256 feb7db5959ddc0af428c441a1f57082ef48fac8cfdfef0ee65e1af0ac1b97f37

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d8f1195ea2e3fb4cf65537312cde6fd87ac1b82e58d22726db6b749a3adc0a41
MD5 f85245f0217b3813294e51381c8fab69
BLAKE2b-256 b4409ef2183ee9f2d9a1f8255a8c58d8fd5b75c0641c04e1c5805f657bab199b

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmassspec_io-1.0.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for openmassspec_io-1.0.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4efe21c8a68c582d84c4b967231e27d5c91d6ee75bf57cd5afbcb652f0d4a6ce
MD5 247f6992696667cf5ce5f9ff39a25045
BLAKE2b-256 f067c6bdeb3f88b1dc290a3a4a034aadfea86a93228313bc938cf0a17d6ebfd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmassspec_io-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for openmassspec_io-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2185bacf490c9c4d0466695bff76c1bbc3f8a342d7f39eaa8a4c20cd950b6295
MD5 d078bfa34b6d7aa1e5780f9f3dbd6790
BLAKE2b-256 a51e113e13ebbd658f651350fc245944b4420a2d2473d3eac1b90b76742e712e

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmassspec_io-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenMassSpec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page