Skip to main content

Fast and efficient theoretical isotopic profile generation

Project description

:mod:brainpy is a small Python library implementing the B afflingly R ecursive A lgorithm for I sotopic Patter N generation [Dittwald2014]_. It includes three implementations, a pure-Python object oriented implementation, a :title-reference:Cython accelerated version of the object oriented implementation, and a pure :title-reference:C implementation, listed in order of ascending speed. The C implementation is used by default when available.

BRAIN, implemented in :func:brainpy.isotopic_variants, takes an elemental composition represented by any :class:~.collections.abc.Mapping-like Python object and uses it to compute its aggregated isotopic distribution. All isotopic variants of the same number of neutrons are collapsed into a single centroid peak, meaning it does not consider isotopic fine structure.

Installing

:mod:brainpy has three implementations, a pure Python implementation, a Cython translation of that implementation, and a pure C implementation that releases the :title-reference:GIL.

To install from a package index, you will need to have a C compiler appropriate to your Python version to build these extension modules. Additionally, there are prebuilt wheels for Windows available on PyPI <https://pypi.org/project/brain-isotopic-distribution/>_:

.. code-block:: sh

$ pip install brain-isotopic-distribution

To build from source, in addition to a C compiler you will also need to install a recent version of Cython <https://pypi.org/project/Cython/>_ to transpile C code.

References

This package is an implementation of the algorithm originally described in P. Dittwald, J. Claesen, T. Burzykowski, D. Valkenborg, and A. Gambin, "BRAIN: a universal tool for high-throughput calculations of the isotopic distribution for mass spectrometry.", Anal. Chem., vol. 85, no. 4, pp. 1991–4, Feb. 2013.

H. Hu, P. Dittwald, J. Zaia, and D. Valkenborg,
"Comment on 'Computation of isotopic peak center-mass distribution by fourier transform'.",
Anal. Chem., vol. 85, no. 24, pp. 12189–92, Dec. 2013.

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

brain-isotopic-distribution-1.5.16.tar.gz (553.3 kB view hashes)

Uploaded Source

Built Distributions

brain_isotopic_distribution-1.5.16-cp310-cp310-win_amd64.whl (806.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

brain_isotopic_distribution-1.5.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.16-cp310-cp310-macosx_10_9_x86_64.whl (832.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

brain_isotopic_distribution-1.5.16-cp39-cp39-win_amd64.whl (807.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

brain_isotopic_distribution-1.5.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.16-cp39-cp39-macosx_10_9_x86_64.whl (833.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

brain_isotopic_distribution-1.5.16-cp38-cp38-win_amd64.whl (808.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

brain_isotopic_distribution-1.5.16-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.16-cp38-cp38-macosx_10_9_x86_64.whl (832.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page