Skip to main content

Read, write & process time-tagged time-resolved (TTTR) data.

Project description

tttrlib

Anaconda-Server Badge PyPI version pipeline status

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 FLIM

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tttrlib-0.24.0-cp312-cp312-win_amd64.whl (784.5 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

tttrlib-0.24.0-cp311-cp311-win_amd64.whl (782.6 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

tttrlib-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

tttrlib-0.24.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (944.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ ARM64 manylinux: glibc 2.28+ ARM64

tttrlib-0.24.0-cp311-cp311-macosx_10_14_x86_64.whl (894.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.14+ x86-64

tttrlib-0.24.0-cp310-cp310-win_amd64.whl (783.0 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

tttrlib-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

tttrlib-0.24.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (944.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ ARM64 manylinux: glibc 2.28+ ARM64

tttrlib-0.24.0-cp310-cp310-macosx_10_14_x86_64.whl (895.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.14+ x86-64

tttrlib-0.24.0-cp39-cp39-win_amd64.whl (782.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

tttrlib-0.24.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

tttrlib-0.24.0-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (944.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ ARM64 manylinux: glibc 2.28+ ARM64

tttrlib-0.24.0-cp39-cp39-macosx_10_14_x86_64.whl (895.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

tttrlib-0.24.0-cp38-cp38-win_amd64.whl (783.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

tttrlib-0.24.0-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

tttrlib-0.24.0-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (941.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ ARM64 manylinux: glibc 2.28+ ARM64

tttrlib-0.24.0-cp38-cp38-macosx_10_14_x86_64.whl (895.3 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ 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