Skip to main content

imspy-predictors

ML-based predictors for CCS, retention time, and fragment intensity in mass spectrometry.

Installation

pip install imspy-predictors

For remote model access via Koina servers:

pip install imspy-predictors[koina]

Features

  • CCS Prediction: Deep learning models for collision cross section / ion mobility prediction
  • Retention Time Prediction: GRU-based retention time predictors
  • Fragment Intensity Prediction: Prosit 2023 timsTOF intensity predictor
  • Charge State Prediction: Binomial and deep learning charge state distribution models
  • Koina Integration: Access remote prediction models via Koina servers (optional)

Available Koina Remote Models

When using pip install imspy-predictors[koina], remote models can be configured in TimSim's [models] TOML section:

Task Model Name
RT Deeplc_hela_hf, Chronologer_RT, AlphaPeptDeep_rt_generic, Prosit_2019_irt
CCS AlphaPeptDeep_ccs_generic, IM2Deep
Intensity prosit, alphapeptdeep, ms2pip
[models]
rt_model = "AlphaPeptDeep_rt_generic"
ccs_model = ""                          # "" = local PyTorch model
intensity_model = "prosit"

Quick Start

from imspy_predictors import (
    load_deep_ccs_predictor,
    load_deep_retention_time_predictor,
    Prosit2023TimsTofWrapper,
)

# Load CCS predictor
ccs_model = load_deep_ccs_predictor()

# Load RT predictor
rt_model = load_deep_retention_time_predictor()

# Load intensity predictor
intensity_model = Prosit2023TimsTofWrapper()

Submodules

  • ccs/: CCS / ion mobility prediction
  • rt/: Retention time prediction
  • intensity/: Fragment intensity prediction (Prosit)
  • ionization/: Charge state distribution prediction
  • koina_models/: Koina remote model access (requires koinapy)
  • utilities/: Tokenizers for ML models

Dependencies

  • imspy-core: Core data structures (required)
  • PyTorch: Deep learning framework (required)
  • koinapy: Koina API client (optional, for remote models)

Optional Dependencies

Some functionality requires additional packages:

  • imspy-search: For PSM-based predictions using sagepy
  • imspy-simulation: For simulation utilities (e.g., flatten_prosit_array)
  • imspy-core: Core data structures and timsTOF readers
  • imspy-search: Database search functionality
  • imspy-simulation: Simulation tools for timsTOF data
  • imspy-vis: Visualization tools

License

MIT License - see LICENSE file for details.

Metadata

Release files for imspy-predictors 0.5.3

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-predictors 0.5.3
File Size Uploaded Provenance Actions
imspy_predictors-0.5.3.tar.gz 102.0 kB Without provenance Details for imspy_predictors-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imspy-predictors 0.5.3
File Interpreter ABI Platform Actions
imspy_predictors-0.5.3-py3-none-any.whl Python 3 none any Details for imspy_predictors-0.5.3-py3-none-any.whl

Total release size: 219.8 kB

Release files / imspy_predictors-0.5.3.tar.gz

Download URL imspy_predictors-0.5.3.tar.gz
Size 102.0 kB
Tags Source
SHA-256 checksum
How to use checksums
56fd1ab6f1fecec3be86a079e5ca45c0c818337de2fc175f92ad99d3bf7f7d69
BLAKE2b-256 checksum
How to use checksums
1408b9a41cb50fdbf3487448ba2b39a6ce3c6ecfb9fde8d447fd3335faf06747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / imspy_predictors-0.5.3-py3-none-any.whl

Download URL imspy_predictors-0.5.3-py3-none-any.whl
Size 117.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80e57a15dc9689bdd7d112d32d1a72a5f3812b1a06cb270c401fc45dab491bd7
BLAKE2b-256 checksum
How to use checksums
65c1b4b75ba67188d1d53f1188d52ec74e1cf37ab3139c7f6ae0c7b6223c0b97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for imspy-predictors 0.5.3

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.

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