Skip to main content

Laboratory for Fluorescence Dynamics (LFD) file formats

Project description

Lfdfiles is a Python library and console script for reading, writing, converting, and viewing many of the proprietary file formats used to store experimental data and metadata at the Laboratory for Fluorescence Dynamics. For example:

  • SimFCS VPL, VPP, JRN, BIN, INT, CYL, REF, BH, BHZ, B64, I64, Z64, R64

  • FLIMbox FBD, FBF

  • GLOBALS LIF, ASCII

  • CCP4 MAP

  • Vaa3D RAW

  • Bio-Rad(r) PIC

  • ISS Vista IFLI, IFI

  • FlimFast FLIF

Author:

Christoph Gohlke

License:

BSD 3-Clause

Version:

2023.9.16

Quickstart

Install the lfdfiles package and all dependencies from the Python Package Index:

python -m pip install -U lfdfiles[all]

Print the console script usage:

python -m lfdfiles --help

The lfdfiles library is type annotated and documented via docstrings.

See Examples for using the programming interface.

Source code and support are available on GitHub.

Requirements

This revision was tested with the following requirements and dependencies (other versions may work):

Revisions

2023.9.16

  • Rewrite VistaIfli based on file format specification (breaking).

  • Define positional and keyword parameters (breaking).

  • SimfcsFbd.asarray returns bins only (breaking).

2023.8.30

  • Fix type hint issues.

  • Add py.typed marker.

2023.8.1

  • Specify encoding of text files.

  • Fix linting issues.

2023.4.20

  • Improve type hints.

  • Drop support for Python 3.8 and numpy < 1.21 (NEP29).

2022.9.29

  • Fix setup.py.

2022.9.20

  • Update metadata.

2022.6.10

  • Fix LfdFileSequence with tifffile 2022.4.22.

  • Add fbd2b64 conversion function and script.

  • Add decoder for 32-bit, 8 windows, 4 channels FLIMbox data from Spartan-6.

  • Convert docstrings to Google style with Sphinx directives.

2022.2.2

  • Add type hints.

  • SimfcsFit.asarray returns dc_ref only; use p_fit for fit params (breaking).

  • Remove additional positional arguments to LfdFile init (breaking).

  • Guess SimfcsBin shape and dtype if not provided (breaking).

  • Use TiffWriter.write instead of deprecated save.

  • Drop support for Python 3.7 and NumPy < 1.19 (NEP29).

2021.7.15

Refer to the CHANGES file for older revisions.

Notes

The API is not stable yet and might change between revisions.

Python <= 3.8 is no longer supported. 32-bit versions are deprecated.

The latest Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 is required on Windows.

Many of the LFD’s file formats are not documented and might change arbitrarily. This implementation is mostly based on reverse engineering existing files. No guarantee can be made as to the correctness of code and documentation.

Experimental data are often stored in plain binary files with metadata available in separate, human readable journal files (.jrn).

Unless specified otherwise, data are stored in little-endian, C contiguous order.

References

The following software is referenced in this module:

  1. SimFCS, a.k.a. Globals for Images, is software for fluorescence image acquisition, analysis, and simulation, developed by Enrico Gratton at UCI.

  2. Globals, a.k.a. Globals for Spectroscopy, is software for the analysis of multiple files from fluorescence spectroscopy, developed by Enrico Gratton at UIUC and UCI.

  3. ImObj is software for image analysis, developed by LFD at UIUC. Implemented on Win16.

  4. FlimFast is software for frequency-domain, full-field, fluorescence lifetime imaging at video rate, developed by Christoph Gohlke at UIUC.

  5. FLImage is software for frequency-domain, full-field, fluorescence lifetime imaging, developed by Christoph Gohlke at UIUC. Implemented in LabVIEW.

  6. FLIez is software for frequency-domain, full-field, fluorescence lifetime imaging, developed by Glen Redford at UIUC.

  7. Flie is software for frequency-domain, full-field, fluorescence lifetime imaging, developed by Peter Schneider at MPIBPC. Implemented on a Sun UltraSPARC.

  8. FLOP is software for frequency-domain, cuvette, fluorescence lifetime measurements, developed by Christoph Gohlke at MPIBPC. Implemented in LabVIEW.

  9. VistaVision is commercial software for instrument control, data acquisition and data processing by ISS Inc (Champaign, IL).

  10. Vaa3D is software for multi-dimensional data visualization and analysis, developed by the Hanchuan Peng group at the Allen Institute.

  11. Voxx is a volume rendering program for 3D microscopy, developed by Jeff Clendenon et al. at the Indiana University.

  12. CCP4, the Collaborative Computational Project No. 4, is software for macromolecular X-Ray crystallography.

Examples

Create a Bio-Rad PIC file from a NumPy array:

>>> data = numpy.arange(1000000).reshape(100, 100, 100).astype('u1')
>>> bioradpic_write('_biorad.pic', data)

Read the volume data from the PIC file as NumPy array, and access metadata:

>>> with BioradPic('_biorad.pic') as f:
...     f.shape
...     f.spacing
...     data = f.asarray()
(100, 100, 100)
(1.0, 1.0, 1.0)

Convert the PIC file to a compressed TIFF file:

>>> with BioradPic('_biorad.pic') as f:
...     f.totiff('_biorad.tif', compression='zlib')

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

lfdfiles-2023.9.16.tar.gz (239.3 kB view details)

Uploaded Source

Built Distributions

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

lfdfiles-2023.9.16-pp310-pypy310_pp73-win_amd64.whl (146.2 kB view details)

Uploaded PyPyWindows x86-64

lfdfiles-2023.9.16-cp312-cp312-win_arm64.whl (133.6 kB view details)

Uploaded CPython 3.12Windows ARM64

lfdfiles-2023.9.16-cp312-cp312-win_amd64.whl (152.3 kB view details)

Uploaded CPython 3.12Windows x86-64

lfdfiles-2023.9.16-cp312-cp312-win32.whl (136.8 kB view details)

Uploaded CPython 3.12Windows x86

lfdfiles-2023.9.16-cp311-cp311-win_arm64.whl (133.2 kB view details)

Uploaded CPython 3.11Windows ARM64

lfdfiles-2023.9.16-cp311-cp311-win_amd64.whl (151.0 kB view details)

Uploaded CPython 3.11Windows x86-64

lfdfiles-2023.9.16-cp311-cp311-win32.whl (136.1 kB view details)

Uploaded CPython 3.11Windows x86

lfdfiles-2023.9.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (827.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

lfdfiles-2023.9.16-cp311-cp311-macosx_11_0_arm64.whl (742.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lfdfiles-2023.9.16-cp311-cp311-macosx_10_9_x86_64.whl (758.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lfdfiles-2023.9.16-cp310-cp310-win_amd64.whl (151.8 kB view details)

Uploaded CPython 3.10Windows x86-64

lfdfiles-2023.9.16-cp310-cp310-win32.whl (136.6 kB view details)

Uploaded CPython 3.10Windows x86

lfdfiles-2023.9.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (791.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

lfdfiles-2023.9.16-cp310-cp310-macosx_11_0_arm64.whl (744.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lfdfiles-2023.9.16-cp310-cp310-macosx_10_9_x86_64.whl (760.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

lfdfiles-2023.9.16-cp39-cp39-win_amd64.whl (152.6 kB view details)

Uploaded CPython 3.9Windows x86-64

lfdfiles-2023.9.16-cp39-cp39-win32.whl (137.4 kB view details)

Uploaded CPython 3.9Windows x86

lfdfiles-2023.9.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (793.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

lfdfiles-2023.9.16-cp39-cp39-macosx_11_0_arm64.whl (744.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

lfdfiles-2023.9.16-cp39-cp39-macosx_10_9_x86_64.whl (760.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file lfdfiles-2023.9.16.tar.gz.

File metadata

  • Download URL: lfdfiles-2023.9.16.tar.gz
  • Upload date:
  • Size: 239.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16.tar.gz
Algorithm Hash digest
SHA256 ebbb11baf0ddd6ae4182b7303d517944d1896b88f2f601fb096251b65e31ea5a
MD5 e83301cd91cc70c81632c4b8762e7fc4
BLAKE2b-256 3cad3aaf43a5f148931fcb8c2a47eaafc88ecd67918179f34896e854f6afa75d

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 990baeb29755e8714327b223f15f5f4101bf781b63823622fb177e0a6c98d9bb
MD5 eb4bf554bf1830b71d73f56854459603
BLAKE2b-256 4d2cbde83c3965e3ef0dd57fb4714919f85367cb3430abf3bf5a2c0ae577787e

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp312-cp312-win_arm64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 eb217153759cc75855096d23896f6c56f05724510e7b2d7226764f79ad2a8921
MD5 4c9d51dd6c891508422b3232d6d41b0f
BLAKE2b-256 1758a6f491d12e4f466f554ab722f6a9eab2c06b1d97b3f5a7a7e13c30f14494

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 82c19cad3759d61a5d63e2cf2fb0fe080db61e9421c127a700ec7172bf72db9d
MD5 d90f2579af15495366a30656423f61ad
BLAKE2b-256 26047b8c1092524024af1a91cabcafe915dcb50b7aa65d090a6eead1aeacf480

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp312-cp312-win32.whl.

File metadata

  • Download URL: lfdfiles-2023.9.16-cp312-cp312-win32.whl
  • Upload date:
  • Size: 136.8 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 751db7c941f0c2ce56e2d085a7fc92b6299ef5a7011064d9657c7720c750b91f
MD5 1c8b77fc88da25110141bfb5b7d1d832
BLAKE2b-256 4c7fd67835a1ff4deadfd7fdc620d17d8bcb2ca1fa6f35bcb184366346436e5c

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-win_arm64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 0890b20521d30d164506605d33d74e83dccc92fdd23998409d1b60e6ef7f6b1a
MD5 16c4bcae32b834d4feab8ea7f4e81ad1
BLAKE2b-256 dfddae1f631b49aa1d7dfbd6011cc42850057a01ebef9f524d549ed09af9fd22

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4129e5fecd8207a1bde151ad8c7c57af758a06194d5dc2c3c40be057b5613a5e
MD5 44e50719f73d068121b2fdd6736b94d9
BLAKE2b-256 ccbb2744dfc10b7a93d3884b5e27f0d5ca9fc90521b622f876014fdb94f59ff0

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-win32.whl.

File metadata

  • Download URL: lfdfiles-2023.9.16-cp311-cp311-win32.whl
  • Upload date:
  • Size: 136.1 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1caa2a1390f68137580c975861fdd5b181f3aa98d57c46e0399e5cd393df918d
MD5 04d2d1be0cf89df96095c1a3e428c8ad
BLAKE2b-256 d643e59b3d2d2f1e5d13ff04b506da731bf02dcb2b7777a250ed04d22d439a8a

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2bfe29936d51788a4452c5a86803b9ffb2a7df7669182086a36fa07aa61d5c26
MD5 23d685ced414ab21e146443d99a0f052
BLAKE2b-256 9b5048f57671c13aaa21abc6b98e1e6f73e1c8211d8d82a698d6332c9c737023

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e62a039154ca2e5ea7714a5f53dc81e9eab32fddc42b1fd59231975a54aee843
MD5 32a3798e8f63d199751f100d63a8a20d
BLAKE2b-256 117d01d1ba87520d7d96171327725639431456f2506b67ef941342ae1a02d69e

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ae042c8377e4bcf5b86029b7e897ca1dbe9d7354e3f42aaeb805de16cc4e138e
MD5 e45145aa81d6d6677fec193540bd03fb
BLAKE2b-256 d7396685847b3c55e2ab925cff6a037641974b11002e3ce394f77ee30507fe77

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d27435f6ef39e3f513342d077e8fbc3799e1bc1170fff9e806b01aa4fe52613
MD5 564313e03f8bb5e0cbe7ea78cc220667
BLAKE2b-256 29a2f3596169b735fa6ee0df1982aa25ce47561d3df11ff14ec1458d2dbdf19d

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp310-cp310-win32.whl.

File metadata

  • Download URL: lfdfiles-2023.9.16-cp310-cp310-win32.whl
  • Upload date:
  • Size: 136.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b189015099d3a599d050bf3fcd51ba3ac9553d3dc1355493baeb79a437314b08
MD5 a5ef3742b38420841bd19fb6033e1133
BLAKE2b-256 8800dbf74382382b957715a17f92108f0c28b3fb49191246e71ba4ff9365828f

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a53917ea9bb410acc26664539723a0e2c5ba3cde4ef366b9be85658b5fc4d25
MD5 5af8c6d2a818498895969da4fc74e577
BLAKE2b-256 51da092268817f485ab56ce662b15596e2000b0e7046619a3036f3f076864828

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a27993604ca0777874c06a43084d44a5012a406b497ea57f3d4c2f45ca922255
MD5 5aa565bb5dcf975a8362a07d6f238049
BLAKE2b-256 eeb792471e05f2d1f441f40942433d4db233430d692af0cabca57043da2a5333

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eacb0154b9cc5d51922446e57385bb9beb2dadbd5aac8a1e33bbf272ea9a545e
MD5 9ee47317fc707e3ad350009bb901f9fa
BLAKE2b-256 0ba7903c2fd161fd08ad75a4406e7fed99debe1f9dcb36ef4bd9da040cbde7f1

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: lfdfiles-2023.9.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 152.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c0b497cbffe691f5e27fe20288a5adf55a609cbbe0700279f07d857ded0162da
MD5 aad72b701c3afccc42cd1c90b17276a7
BLAKE2b-256 a0fa14e07adab6118fcb37a58144498576e30c3f4ee8d255782b4b666d3ce631

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp39-cp39-win32.whl.

File metadata

  • Download URL: lfdfiles-2023.9.16-cp39-cp39-win32.whl
  • Upload date:
  • Size: 137.4 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lfdfiles-2023.9.16-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4587bc0017d0aeb104362e5f7ae26caa6ad646ea936c6314870b73c613b28604
MD5 84bcf60160635405af217f56eb905bd1
BLAKE2b-256 c55fb6426b029a8b55530e311527c5357199bf23d3c4bc01ec19da5cd5635187

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19d8c5a0b50dc16f303a7b5b73d91111f468c76f050772d70439dcb2e216bcbe
MD5 e0fc67164f4f7dc3afc720a55f980795
BLAKE2b-256 5f9558bce24fda9fc0e0bb0576d91e7138c2b15e9fb39110d68e61d877e6762a

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a22dc5496efb3a3d8488178bfab4c1b808fb897473a92a6df8889c66d7903dc0
MD5 1ec4e8cb384fdd5b954cd00f1547e341
BLAKE2b-256 886084ed2c1afd108c6b8c2a70a54f9fd2b7ee0f05f53875a4bb880a36bc7f86

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.9.16-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.9.16-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c12e045a436553cffdaf184805fcc3054d2481306d3bd65515461ea071d3a3e3
MD5 4b828c398bf8b6b10f3885e80e2c1278
BLAKE2b-256 379c3a4d50032a832e36dd8040f1c2e949f72bd910c8a20b64be8d074ee87a80

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