Skip to main content

imspy-dia

DIA processing and clustering for timsTOF IMS data.

Overview

imspy-dia provides tools for Data-Independent Acquisition (DIA) data analysis from Bruker timsTOF instruments:

  • Hierarchical DIA feature extraction - Extract MS1 precursor and MS2 fragment clusters
  • Pseudo spectrum construction - Build pseudo spectra from correlated precursor-fragment pairs
  • Isotopic feature grouping - Group isotope clusters into features with charge state assignment

Installation

pip install imspy-dia

Dependencies

  • imspy-core>=0.4.0 - Core data structures
  • imspy-connector>=0.4.0 - Rust bindings
  • pandas>=2.0.0
  • numpy>=1.24.0

Optional dependencies:

  • matplotlib - For cluster reports (pip install imspy-dia[reporting])
  • torch - For neural network-based extraction (pip install imspy-dia[torch])

Quick Start

from imspy_dia import TimsDatasetDIAClustering, build_simple_features_from_clusters

# Open a DIA dataset with clustering capabilities
ds = TimsDatasetDIAClustering("/path/to/data.d")

# Plan TOF-scan windows for MS1
plan = ds.plan_tof_scan_windows(tof_step=8, rt_window_sec=30.0, rt_hop_sec=15.0)

# Extract precursor clusters (requires peak detection)
# ... see full documentation for peak detection workflow

# Build isotopic features from precursor clusters
features = build_simple_features_from_clusters(precursor_clusters)

# Build pseudo spectra
pseudo_spectra = ds.build_pseudo_spectra_geom(
    ms1_clusters=precursor_clusters,
    ms2_clusters=fragment_clusters,
    features=features,
)

CLI Tools

Cluster Report

Generate a PDF report summarizing cluster statistics:

imspy-cluster-report --in clusters.parquet --out report.pdf --json summary.json

License

MIT License - see LICENSE file for details.

Metadata

Release files for imspy-dia 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imspy-dia 0.4.0
File Size Uploaded Provenance
imspy_dia-0.4.0.tar.gz 49.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for imspy-dia 0.4.0
File Interpreter ABI Platform
imspy_dia-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 102.7 kB

Release files / imspy_dia-0.4.0.tar.gz

Download URL imspy_dia-0.4.0.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a730b2d7bc731632c38b88bbae6891d70a394fd3317a4a7657f4de7a103ef020
BLAKE2b-256 checksum
How to use checksums
679568b8eeda87c5bb236baf20d8a562ff343af29440e713141e955d8f3fc194
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / imspy_dia-0.4.0-py3-none-any.whl

Download URL imspy_dia-0.4.0-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99a04b74df31dd40c5b393a1031701233f0101e66e50c90118df3d7c89c2aeca
BLAKE2b-256 checksum
How to use checksums
95cf758f8c30f0b1ec26256c8e7364aa1fe78db22f48d47e1a9ec4338b3bcf41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for imspy-dia 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page