Read, write & process time-tagged time-resolved (TTTR) data.
Project description
tttrlib
General description
tttrlib is a file format agnostic high performance library to read and process time-tagged-time resolved (TTTR) data acquired by PicoQuant (PQ) and Becker & Hickl measurement devices/cards or TTTR files in the open Photon-HDF format.
The library facilitates the work with files containing time-tagged time resolved photon streams by providing a vendor independent C++ application programming interface (API) for TTTR files that is wrapped by SWIG (Simplified Wrapper and Interface Generator) for common scripting languages as Python as target languages and non-scripting languages such as C# and Java including Octave, Scilab and R. Currently, tttrlib is wrapped for the use in Python.
- Multi-dimensional histograms
- Correlation analysis
- Time-window analysis
- Photon distribution anaylsis
- FLIM image generation and analysis
tttrlib is a library that facilitates the interaction with TTTR data that can be used to develop data analysis pipelines e.g. for single-molecule and image spectroscopy. tttrlib is not intended as end-user software for specific application purposes.
Supported file formats
PicoQuant (PQ)
- PicoHarp ptu, T2/T3
- HydraHarp ptu, T2/T3
- HydraHarp ht3, PTU
Becker & Hickl (BH)
- spc132
- spc630 (256 & 4096 mode)
Photon HDF5
Design goals
- Low memory footprint (keep objective large datasets, e.g. FLIM in memory).
- Platform independent C/C++ library with interfaces for scripting libraries
Capabilities
- Fast (IO limited) Reading TTTR files
- Generation / analysis of fluorescence decays
- Time window analysis
- Correlation of time event traces
- Filtering of time event traces to generate instrument response functions for fluorescence decays analysis without the need of independent measurements..
- Fast photon distribution analysis
- Fast selection of photons from a photon stream
Generation of fluorescence decay histograms tttrlib outperforms pure numpy and Python based libraries by a factor of ~40.
Implementation
Pure pure C/C++ high performance algorithms for real-time and interactive analysis of TTTR data.
Building and Installation
C++ shared library
The C++ shared library can be installed from source with cmake:
git clone --recursive https://github.com/fluorescence-tools/tttrlib.git
mkdir tttrlib/build; cd tttrlib/build
cmake ..
sudo make install
On Linux you can build and install a package instead (prefered):
Python bindings
The Python bindings can be either be installed by downloading and compiling the source code or by using a precompiled distribution for Python anaconda environment.
The following commands can be used to download and compile the source code:
git clone --recursive https://github.com/fluorescence-tools/tttrlib.git
cd tttrlib
sudo python setup.py install
In an anaconda environment the library can be installed by the following command:
conda install -c tpeulen tttrlib
For most users the later approach is recommended. Currently, pre-compiled packages for the anaconda distribution system are available for Windows (x86), Linux (x86, ARM64, PPCle), and macOS (x86). Precompiled libary are linked against conda-forge HDF5 & Boost. Thus, the use of miniforge is highly recommended.
Legacy 32-bit platforms and versions of programming languages, e.g., Python 2.7 are not supported.
Pip install
Ubuntu:
Self compiled
sudo apt-get install libhdf5-dev boost-dev swig
pip install https://github.com/fluorescence-tools/tttrlib
Documentation
The API of tttrlib as well as some use cases are documented on its web page
Note, tttrlib is highly experimental library in current development. In case you notice unusual behaviour do not hesitate to contact the authors.
License
Copyright 2007-2023 tttrlib developers. Licensed under the BSD-3-Clause
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for tttrlib-0.24.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a746d6ae688fb50c1e8a5c0537052c8162e3dbea490f2017b31cef9c2ada0ada |
|
MD5 | 0580ede5a32a7781a975319f2ba183ec |
|
BLAKE2b-256 | a695511fd483719497b93e17af6c88e4c74b35813312ac8fd19f85e1d68657ad |
Hashes for tttrlib-0.24.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2734ae3c0a7f4cc19c5947cb271b8b1cac065a46e79ff3f3421edb9e95a41725 |
|
MD5 | 3b74afd2c773811beb07c1879627d881 |
|
BLAKE2b-256 | b2876cf0f999690bbf2843e5f022a65ed667a13fd6a05886e9adc62ad820a47f |
Hashes for tttrlib-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ed24bbee8253d6057fe03329fd88b2f1c8585c956fb0fec292d83c32444b0e |
|
MD5 | fee09a2c6e30b87aa049dee1b64bedb6 |
|
BLAKE2b-256 | 06287917ed2c65bf33c4dd2d2247989620409425fdb423990151f6b2589edfca |
Hashes for tttrlib-0.24.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4231d625d0b81725a9d38d52338ed0649be60c9395e59a44c608ac22a77b59 |
|
MD5 | a1fbd55c0cc82f4d3819fda5834da453 |
|
BLAKE2b-256 | 0f60445e2b35f6c1e9bc494988298dc1678d7195f1f21dba7c2b3fce04080075 |
Hashes for tttrlib-0.24.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e45782ad11ea96400bd39f3d5d71acb68501b53a9895a9e3e72fd8dafd8f178 |
|
MD5 | 3628f8a926561c05845598efa2525f7d |
|
BLAKE2b-256 | febaa6c6bd92bbcc7cce30b29a96e24ce78a0ab1eb0e284ab5dab5c3523f45fd |
Hashes for tttrlib-0.24.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a6ac3c49b57609f159a62731d7bed940b4a1f685c32e12feeb4975671e1473 |
|
MD5 | 401735bbae1b45377d8abc64363974ae |
|
BLAKE2b-256 | a33fbf6bf11f82b0cdc7710c52fbb425c34810d06dbb46afb2cd5606ebf85885 |
Hashes for tttrlib-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9daf4a63655e916bdcfe5232eb37daeb9beb88683380afecf481f679e0c905 |
|
MD5 | 033edda02c43aa8d70a2debaf53d3870 |
|
BLAKE2b-256 | 579361b7f0c096396ec826b886f0ede7bba60d6d8dab506b4728fe231219a57e |
Hashes for tttrlib-0.24.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd529dd74fc62a466f09ad9af2bb67a0177e0835a67c058fa6eff91e94a3f05 |
|
MD5 | 65d9f4cb913f89fd030b9617e0382d00 |
|
BLAKE2b-256 | 2144dab762bf8fad9ca97836b81ebcd7ea48a61796788b523b1c4726eedf1ba9 |
Hashes for tttrlib-0.24.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabe60bcc09b9d94da903ee3284e7b14ba7d838f8909cb098207c62a7db92132 |
|
MD5 | d0feea939a439f70705a8b75e96d66c7 |
|
BLAKE2b-256 | a879a7c4fa6dd4c9f8504e97b8f6e8a60f8d17aca9fa13b0d1b238950eeb4f59 |
Hashes for tttrlib-0.24.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e278aa46615fd6f32da13be3e0f8228dc50b6afa8016d151f93eef2f1babf1d9 |
|
MD5 | 565ce1f76f0b4a795759ab5de59cc40b |
|
BLAKE2b-256 | c83ed9bf7ee8e57928283b7237d541df0b53771aa0fe47bf985fdfc3ddc2137f |
Hashes for tttrlib-0.24.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9964533dd51a16ab91b0ce8ed90ff68194d6c88953f41ff869c15cdc1fd968bd |
|
MD5 | da05d999f4a78c7fb33df558a276bb9a |
|
BLAKE2b-256 | 3c22fc62be2e1ad26e2dfcca23d6f6f6f2b8fe55df3c0dc81538e0a228e1d672 |
Hashes for tttrlib-0.24.0-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dda1efc90a93b72a02be6dddd762f4f5502669e865bbe561ce8541ffb5b947 |
|
MD5 | b6c7b5e42494367cb100baf8188d8208 |
|
BLAKE2b-256 | 8a7d88c80535aa300a3ac66b28b9425990c40b94f7fca985ad9dbe4041eebb97 |
Hashes for tttrlib-0.24.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e040041a072c5cba5c1a4d8a0a976d65ad8eb390966a5d47ffddb48d39bba43e |
|
MD5 | 9c12268d032566efff9f2b4bf56c9a44 |
|
BLAKE2b-256 | 0afa21656a63d6591ea03344d250afb7e511fe6ab9868f0ecb3d6ab54915f23f |
Hashes for tttrlib-0.24.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad49b7a204ec895367c0e5ccdcb39cc0bc51d8f764f3c666c45ac8258c7dd90 |
|
MD5 | f432b5f60350f883cd506dc94292300f |
|
BLAKE2b-256 | 7de9957479ff1faafaa74b57b44bc067a0400541a4f71a94533c2727145a11ae |
Hashes for tttrlib-0.24.0-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9804aa5001ae7509bb75fbdde15a1262f5c23026d2fe9451b4487fb5b49f7710 |
|
MD5 | 9d1a2f2aa1a7e14b3f3f8a8103be6df3 |
|
BLAKE2b-256 | 82215cdba6a8d8e9074cea1370d0e54ca9dcbecbe16f72b6252be7cbd0d1be1d |
Hashes for tttrlib-0.24.0-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3e9a1f2a0512192036679d3efb647a720715378be051e2ca985cb882bd6ccc |
|
MD5 | af0f3f826e9f3497a0650011de56cd26 |
|
BLAKE2b-256 | 78e64192d1a24f50f10d18a7b0a4576a2a25bb63f520a06fc57860d859c36ace |
Hashes for tttrlib-0.24.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db24362d3b2bcce79dbd7a3b0a3b4d8b23aba23b66936bd7eca3064c13edb42 |
|
MD5 | 06a9b5b07645bfc54ba4028cac02a3c2 |
|
BLAKE2b-256 | 91d89475a9941a6b460c137beee007933d01deee7b5ac0c710c5b16a63b5d9c0 |