Skip to main content

HorIson: tools for isotope simulation

Project description

HorIson

HorIson is a tool for vectorized isotope simulation, that applies Fast-fourier transform (FFT) or multinomial products.

How does HorIson work

HorIson provides 3 algorithms for different types of istope simulation.

  1. FFT_Lowres, which computes convolved coarse isotopes (1 per 1 Da) at high speed.
  2. FFT_Highres, which computes fine isotopes and profile spectra at variable resolution.
  3. Multi_conv: which computes separate isotope combinstions at high speed.

To enable vectorization for FFT-based algorithms, isotope masses are placed on a uniform grid. For multinomial products, global isotope combinations and multnomial distribtuions are precomputed.

Usage:

HorIson can be imported as a module, or called from the command line. As input for each algorithm, a failepath to a tabular can be supplied, or an element string, or a DataFrame or array can be used when importing as a module. When no header information is present, the element order should be supplied with the element parameter.

Arguments.

General arguments

Parameter Default value Description
elements [] Specifies element column order if a headerless array is used as input
min_itensity 1e-6 Filters isotopes in output below a certain probability level
isotope_ranges [-2,6] Filters isotopes in output to a certain mass range
charge 1 charge of computed formulas, accepts either single value or array of different charges
normalize False Normalizes probabilies either total ("sum"), largest isotope ("max") or monoisotopic peak ("mono")
batch_size 1e4 How many formulas to simulate at once
add_mono True Add monoisotopic mass back to simluated isotope masses
peak_fwhm 0.01 Peak FWHM in Da, used for generating profile data (FFT_Highres, Multi_conv), accepts either single value or array of different FWHMs
divisor 4 Subsampling rate for convolution (FFT_Highres, Multi_conv)

FFT_Lowres specific arguments

Parameter Default value Description
bins False Set a fixed maximum grid size
mass_calc True Calculate exact isotope masses
return_borders False provide grid-sizes as output

FFT_Highres specific arguments

Parameter Default value Description
packing True Compress redundant grid sections
peak_picking True Output centroid data

Mutli_conv specific arguments

Parameter Default value Description
prune 1e-6 remove isotope combinations below a chance threshold or outside of isotope range
min_chance 1e-4 remove isotope combinations after pruning
convolve "fast" Output raw combinations (False) or profile (peak) data ("full") or centroid data ("fast")
add_borders False Compute peak borders
add_area False Compute peak area
Precomputed [] Re-use precomputed isotope combinations

Licensing:

The pipeline is licensed with standard MIT-license.
If you would like to use this pipeline in your research, please cite the following papers:

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

horison-0.1.1.tar.gz (554.0 kB view details)

Uploaded Source

Built Distribution

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

horison-0.1.1-py3-none-any.whl (572.5 kB view details)

Uploaded Python 3

File details

Details for the file horison-0.1.1.tar.gz.

File metadata

  • Download URL: horison-0.1.1.tar.gz
  • Upload date:
  • Size: 554.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for horison-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54c30aac9a07a19e3a5845abf991e97a31a86149dddfe5190e60612edabcbc12
MD5 3d63d8863b4d9936f7fa77f0503693fc
BLAKE2b-256 8acd11b48139c9c4f03f6d8b0c61bfdced73dc39c876bc5e0cb92827370071b4

See more details on using hashes here.

File details

Details for the file horison-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: horison-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 572.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for horison-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e60aaa16d7601fc93658aef691b903b3a1e6901f810de8ff27db6aeae6063a1
MD5 eb0d38e8735f1a4b72b14ded6b67e4ec
BLAKE2b-256 82f8ee37d471778e04767efd9108c2dada8810691d6526da66a97ca357f2ae3a

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