Skip to main content

A package to convert mzML files to HDF5 for deep learning.

Project description

mzrt2h5

License: MIT

A Python package to convert mzML files to HDF5 format for deep learning applications.

Installation

pip install -r requirements.txt
pip install .

Usage

from mzrt2h5.processing import save_dataset_as_sparse_h5
from mzrt2h5.dataset import DynamicSparseH5Dataset

# Process mzML files and save to HDF5
save_dataset_as_sparse_h5(
    folder="path/to/your/mzML_files",
    save_path="output.h5",
    rt_precision=0.1,
    mz_precision=0.01,
    metadata_csv_path="path/to/your/metadata.csv",
)

# Create a PyTorch dataset
dataset = DynamicSparseH5Dataset(
    h5_path="output.h5",
    target_rt_precision=0.5,
    target_mz_precision=0.05,
)

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

mzrt2h5-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

mzrt2h5-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file mzrt2h5-0.1.0.tar.gz.

File metadata

  • Download URL: mzrt2h5-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for mzrt2h5-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8703b3204a3bf4fbf12e5c74c4078c799b91c540c67989232135ddfaa2cf09a
MD5 0b635bb704b5d6e1b9fa13a05d24a499
BLAKE2b-256 916c027d8caf3ed84f0dfc9a760eb56133740bc0d489b597e6727db7dcbbb7b0

See more details on using hashes here.

File details

Details for the file mzrt2h5-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mzrt2h5-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for mzrt2h5-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c309797d5bba151582d80924e5cbeacbe8f707cc2c3596ff8c880ab89bd7f9b4
MD5 3c1f4c44920a598d72763e31c0a59578
BLAKE2b-256 9b625d59f6658a5411f8faef023c9367fc0d35d598a1c9d5bbc87bf3be68c406

See more details on using hashes here.

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