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.2

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.2
File Size Uploaded Provenance
imspy_predictors-0.5.2.tar.gz 101.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 218.7 kB

Release files / imspy_predictors-0.5.2.tar.gz

Download URL imspy_predictors-0.5.2.tar.gz
Size 101.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a515c838cd27af00983330456d4556b9c9c2fdb0db1fa0c7f692db6ca25d4b30
BLAKE2b-256 checksum
How to use checksums
05da4613728b5a6da9d111be5fde1060eaed856f0a227bfed3735b403e94fa8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

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

Download URL imspy_predictors-0.5.2-py3-none-any.whl
Size 117.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d71c5a07740820e4a84b634c01d83da805dd1d7ff6f7ecf12d2d125ce0e4d3dc
BLAKE2b-256 checksum
How to use checksums
5f0c027bb3516758e290f1213b71a5c451a29c598391c44921da121dc1d9509c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for imspy-predictors 0.5.2

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