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.19.tar.gz (591.8 kB view details)

Uploaded Source

Built Distributions

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

brain_isotopic_distribution-1.5.19-cp312-cp312-win_amd64.whl (844.6 kB view details)

Uploaded CPython 3.12Windows x86-64

brain_isotopic_distribution-1.5.19-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.19-cp312-cp312-macosx_11_0_arm64.whl (852.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

brain_isotopic_distribution-1.5.19-cp311-cp311-win_amd64.whl (843.6 kB view details)

Uploaded CPython 3.11Windows x86-64

brain_isotopic_distribution-1.5.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.19-cp311-cp311-macosx_11_0_arm64.whl (853.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

brain_isotopic_distribution-1.5.19-cp310-cp310-win_amd64.whl (842.3 kB view details)

Uploaded CPython 3.10Windows x86-64

brain_isotopic_distribution-1.5.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.19-cp310-cp310-macosx_11_0_arm64.whl (850.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

brain_isotopic_distribution-1.5.19-cp39-cp39-win_amd64.whl (843.7 kB view details)

Uploaded CPython 3.9Windows x86-64

brain_isotopic_distribution-1.5.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.19-cp39-cp39-macosx_11_0_arm64.whl (852.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

brain_isotopic_distribution-1.5.19-cp38-cp38-win_amd64.whl (845.9 kB view details)

Uploaded CPython 3.8Windows x86-64

brain_isotopic_distribution-1.5.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

brain_isotopic_distribution-1.5.19-cp38-cp38-macosx_11_0_arm64.whl (856.4 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file brain_isotopic_distribution-1.5.19.tar.gz.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19.tar.gz
Algorithm Hash digest
SHA256 cad44fcb1ddbd26787dafb65345558df5119a7928b6e773fbb9dd5fd4f3334de
MD5 77a64a916c29a7912fda5b8ad4fa5b58
BLAKE2b-256 402dc5de0f5eeb0745192ffc731e78397825c490d4e999bed2bb4e29b57e0ebd

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5bca2d1dd1e7bdbe760456583cf158444686566f30025630fc685308af57cea6
MD5 a69d61a940761f67c70b5a2e82153c10
BLAKE2b-256 ec4e402b9fc1a958767b7390046ce3f72f876eddbc3fade1681b4baa29f1fb98

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0651e9490880c5d699f573277705b2ef0972d32a2b752ec3e49b768a7f75b597
MD5 d62c72822775f6c5bdc0c3f69c7ac803
BLAKE2b-256 6423e80f8e519fcdea4bdf483c6363db5629a10fd6be8e179bb47bdc07707bec

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e59fe63c4a57f2db17b65d5aab98ae470ae7adeaef6a8c6c7dc52116b9d7925
MD5 fa4228ca992d1ed5feb878880af77ecf
BLAKE2b-256 ca3feb6adbe67e877d4fc6792cf51473f19c1522ba019a46c56f7a68b2dc4fbc

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42b19145326fc15362a9ce943d69448b766b4c1f6cf046fa84cb40d428d9c698
MD5 a3355aad42af164d0f92f882ca41f2f7
BLAKE2b-256 e2da9f63a844dff3c38b315964828edc5e8a9f97f02d1f57b8cc4014f6a53e8f

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f4b9f6ac714e958ebf263276a484a8368778e3e1ade8fdf4a87e0576e1384cf
MD5 e92f23d980e445338de738e84732a964
BLAKE2b-256 d1059106e918f5db7a7c0e01922c2e31bb430f80721decc6e252d7cd46279d7f

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 417faed1d00ed8a973241f992895d728ede46bd8778e4bce7398fdb6b9467f5b
MD5 02011827ac5961b13ca6d79e3e6ee611
BLAKE2b-256 86288323a24560d2ddac17fe356c4eefc545eeae66f93dd12a552d9f7aa15593

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 855c040f3ee967202e0c55c88c2bfca0050c7ca7b99c5001487be68155eac8c8
MD5 4449faa2c6ff3b700cda507a45946eb3
BLAKE2b-256 3a35f14869ff6a4c3386c47686d478b01f0db218ba24c1333f8bac63c1773cea

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd6675cdc9d4d815df8b1571c209d35dccb02fc95492e55ca3ab49825073dfdb
MD5 9a9faadf8e1674876313d872a62803aa
BLAKE2b-256 d4988f081bcc49565f8a803cfae3226ed12b3500f65c54a2029c8497131cc6f8

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cb8a5009177eacb43c8323f88ecd0b58385db4293a38593ccfb6caf52fe2e56
MD5 b8ccfce97139eebcad1fa576fc3e39aa
BLAKE2b-256 59bb4074978a2d98055958b4927d31da85b5097b0c87ff33fe5245c05c0a4f6c

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a4bc7da61d21a8d3e7a5769665b1edbf4e20c7ed3a7da604d26c478e4296309a
MD5 01416835468a0aca42cf9ec419b2f4aa
BLAKE2b-256 52d5b46f1286e09a3bea678d5b1701b5ca7909db67015d2cdc196075e974f4c9

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb622c81e8d5633bf334fe151bba54abf76889251ccb19e43660d5c3db3544af
MD5 16a334c16807fc73d4b01cc3d1aa6155
BLAKE2b-256 a595c0721b370992c9fbff2c3cba6f416f4873ae6b6f116e58417ffcf6c2eefb

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa751b98ef59981308d42ea40102dc8c3cddad038b7c93b791adbceddb9f081e
MD5 fd2469c23ca46f427a85af29d962b940
BLAKE2b-256 af712a47e84eaa9a58dd8054299e575e03357eda5bc4a580ff57e3f0026be4ea

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6005068203fda8438724d20c01cb1b717095211939f56ea1bac09753106ff1a9
MD5 8b45ed2159c1612a91ee6215de9885d7
BLAKE2b-256 deb2a6e3a2cf98fbf240c2aceb5513f6f27a13c90ffdc7ced2d860462112a8ae

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13926c14efcc7eb13d7d8a61d30985f7eaa866b8d58dc847da724d48d560ca60
MD5 a00477311e23f01ee832055b2818be80
BLAKE2b-256 f7e85109fe9247d65f86c64b183a250ec73a40c3d8e574590f0c3192a3e1e1e8

See more details on using hashes here.

File details

Details for the file brain_isotopic_distribution-1.5.19-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brain_isotopic_distribution-1.5.19-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c894611c3756226ca7bc962fbca8154dbe430501ed8c191d995ddb7d2d935994
MD5 935ab753dabb8be746ab126da1d271c2
BLAKE2b-256 0b2a013cfb6d1639473ca2dc58a408d4c66f73094ad2ad57e9a284b092e96e2d

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