imspy-simulation
TimsTOF data simulation tools for proteomics.
Installation
pip install imspy-simulation
For search integration (validation workflows):
pip install imspy-simulation[search]
For KOINA remote model support (optional):
pip install imspy-predictors[koina]
Features
- Frame Builders: DIA and DDA frame simulation with annotation support
- TimSim: Complete simulation pipeline for synthetic timsTOF data
- Prediction Models: Local PyTorch models with optional KOINA remote model support (see Prediction Models)
- Validation: Tools for validating simulated data against search results
- Integration Testing (EVAL): Automated validation against DiaNN, FragPipe, and Sage (see Integration Testing)
- Isotope Simulation: Accurate isotope distribution generation
- TDF Writing: Write simulated data to Bruker TDF format
Quick Start
from imspy_simulation import (
DIAFrameBuilder,
DDAFrameBuilder,
SimulationDatabase,
TransmissionHandle,
create_frame_builder,
AcquisitionMode,
)
# Create a DIA frame builder
frame_builder = DIAFrameBuilder(
database_path="path/to/synthetic_data.db",
num_threads=16,
)
# Build frames
frames = frame_builder.build_frames([1, 2, 3])
CLI Tools
timsim
Full simulation pipeline:
timsim config.toml
timsim config.toml --save-path output.d --reference-path reference.d --fasta-path proteome.fasta
Prediction Models
TimSim uses deep learning models for retention time, ion mobility (CCS), and fragment intensity prediction. By default, local PyTorch models are used. Optionally, remote models can be accessed via KOINA servers:
[models]
rt_model = "" # "" = local (default), or e.g. "Deeplc_hela_hf"
ccs_model = "" # "" = local (default), or e.g. "AlphaPeptDeep_ccs_generic"
intensity_model = "" # "" = local (default), or e.g. "prosit", "alphapeptdeep"
Requires pip install imspy-predictors[koina] for remote models. Falls back to local models if KOINA is unreachable. See SIMULATOR_README.md for the full list of available models.
Integration Testing
The EVAL pipeline validates simulated datasets against production proteomics search engines:
python -m imspy_simulation.timsim.integration.sim --env env.toml --list
python -m imspy_simulation.timsim.integration.sim --env env.toml --test IT-DIA-HELA
python -m imspy_simulation.timsim.integration.eval --env env.toml --test IT-DIA-HELA
See the Validation README for setup, available tests, and configuration details.
Submodules
- builders/: Frame builder implementations (DIA, DDA)
- core/: Core protocols and wrappers
- data/: Simulation database and transmission handling
- timsim/: TimSim simulation pipeline
- jobs/: Individual simulation steps
- integration/: Integration workflows
- validate/: Validation tools
Dependencies
- imspy-core: Core data structures (required)
- imspy-predictors: ML predictors for CCS, RT, intensity (required)
- imspy-search: Database search for validation (optional)
Related Packages
- imspy-core: Core data structures and timsTOF readers
- imspy-predictors: ML-based predictors
- imspy-search: Database search functionality
- imspy-vis: Visualization tools
License
MIT License - see LICENSE file for details.
Metadata
Release files for imspy-simulation 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| imspy_simulation-0.4.2.tar.gz | 3.3 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imspy_simulation-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 MB
Release files / imspy_simulation-0.4.2.tar.gz
| Download URL | imspy_simulation-0.4.2.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41adae6b5455fb56e84b8db3c79a6c79c1edf8ecd2a49721a79724d4c0ea48b
|
|
BLAKE2b-256 checksum How to use checksums |
8ffe69fb7ff3860e50c2b7231bb9e6e657c9bcbf999f74eec47dd2192dcf1fe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / imspy_simulation-0.4.2-py3-none-any.whl
| Download URL | imspy_simulation-0.4.2-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28f088aa99b43e92265525b1c52be37c746513411e740ededb5864fa572bb1af
|
|
BLAKE2b-256 checksum How to use checksums |
ee45444b3e75f9af238bda9f31f637b48dc04d61e6681150433010d91a55479f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Security for imspy-simulation 0.4.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.