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.8.30

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.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

  • Refactor SimfcsFbd initialization.

  • Print tracebacks of failing plugins in LfdFile.

2021.7.11

  • Calculate pixel_dwell_time and frame_size for FBD files with header.

  • Disable simfcsfbd_decode and simfcsfbd_histogram Python code (breaking).

2021.6.25

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.8.30.tar.gz (237.6 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.8.30-pp310-pypy310_pp73-win_amd64.whl (144.8 kB view details)

Uploaded PyPyWindows x86-64

lfdfiles-2023.8.30-cp312-cp312-win_arm64.whl (132.2 kB view details)

Uploaded CPython 3.12Windows ARM64

lfdfiles-2023.8.30-cp312-cp312-win_amd64.whl (150.9 kB view details)

Uploaded CPython 3.12Windows x86-64

lfdfiles-2023.8.30-cp312-cp312-win32.whl (135.4 kB view details)

Uploaded CPython 3.12Windows x86

lfdfiles-2023.8.30-cp311-cp311-win_arm64.whl (131.8 kB view details)

Uploaded CPython 3.11Windows ARM64

lfdfiles-2023.8.30-cp311-cp311-win_amd64.whl (149.6 kB view details)

Uploaded CPython 3.11Windows x86-64

lfdfiles-2023.8.30-cp311-cp311-win32.whl (134.6 kB view details)

Uploaded CPython 3.11Windows x86

lfdfiles-2023.8.30-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (826.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

lfdfiles-2023.8.30-cp311-cp311-macosx_11_0_arm64.whl (741.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lfdfiles-2023.8.30-cp311-cp311-macosx_10_9_x86_64.whl (757.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lfdfiles-2023.8.30-cp310-cp310-win_amd64.whl (150.4 kB view details)

Uploaded CPython 3.10Windows x86-64

lfdfiles-2023.8.30-cp310-cp310-win32.whl (135.2 kB view details)

Uploaded CPython 3.10Windows x86

lfdfiles-2023.8.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (789.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

lfdfiles-2023.8.30-cp310-cp310-macosx_11_0_arm64.whl (743.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lfdfiles-2023.8.30-cp310-cp310-macosx_10_9_x86_64.whl (758.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

lfdfiles-2023.8.30-cp39-cp39-win_amd64.whl (151.2 kB view details)

Uploaded CPython 3.9Windows x86-64

lfdfiles-2023.8.30-cp39-cp39-win32.whl (136.0 kB view details)

Uploaded CPython 3.9Windows x86

lfdfiles-2023.8.30-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (792.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

lfdfiles-2023.8.30-cp39-cp39-macosx_11_0_arm64.whl (743.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

lfdfiles-2023.8.30-cp39-cp39-macosx_10_9_x86_64.whl (758.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.8.30.tar.gz
Algorithm Hash digest
SHA256 9f68efdc92a0132811e7fdb22d7dbc33263fb2e59dfaf48b034eb7544c5ec16e
MD5 afa86f8706c780fa0d79f2fc03d55ba6
BLAKE2b-256 de2707a2111e2724c4ca663085d78a3b68b7161ad19602a9903470aed2a18a4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 3b93db763b971432ef1dc5fa5288e7d5e3519f8fa02cd408c4e37491ba626aed
MD5 f6060ec814d8fa42f4c9e6d8a01a0cde
BLAKE2b-256 14b3ef2d27727317f0251cebc322bd90b6976f8a551ec83acab4f4c0d238e004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 8d93ae0d599d3b4090ca4c3b51ede0a054fdd916c6c859cf269379c36994b876
MD5 49c7365e7cecd6d2385e63d5881e19ff
BLAKE2b-256 030b7c804c1b585ca7844ae022ce1bca4729b8f96ff2cd369a241ae21d976e74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 646ea56b3947e1487fd426660e987f8b13c7ec487f0c70bf2f9579f2e7ec7f7d
MD5 a38964ebe177560222114a3f1c6e5776
BLAKE2b-256 de2ece39c4a4b4b5fd113021b9efa6e92590fd194441e1ba5a66d9b661f1478f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2023.8.30-cp312-cp312-win32.whl
  • Upload date:
  • Size: 135.4 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.8.30-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a169b201ca02ae0e634fd81752f8dbf47cc5568c06c1ee33becbb284148c5f3c
MD5 f21b3a05f5852e113854cc0be0a9ca65
BLAKE2b-256 017d3c1ea421fd04c1ff677a1df875eba1f5ad0838dbf74cf9533a2e6f440775

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 0b3b0f707b657f53c02fb7cdb2624489642ba369c94b4044ce911803d92ef268
MD5 854aa73ffcc48d549e1fa846d779f1f5
BLAKE2b-256 daef0e28ec3d4f30828529ce6a1811f3572fd77b0f7f16b7c40cd727ade8255b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b675919a15175d5f195b98b24e38aa23e1cbbeebe7d7ed4d4486147e22591cd
MD5 44ac16c875c63d8eac1e736aada49bec
BLAKE2b-256 e327f10769abe1e2d743247823ff576d13b1f6484cbfe13e42e15db8604c321e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2023.8.30-cp311-cp311-win32.whl
  • Upload date:
  • Size: 134.6 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.8.30-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9401af42c42ff91875628dce37246ff982e268e4100b42f604e0e263fade4156
MD5 f8ed8c3a83ab0e5c3ebc7563872cb89d
BLAKE2b-256 d6e79a4e5406d0c1effd083a3aec777125a11593cd2aac4511809401f032bd03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dac9bf2e623def11c750d369a0cc65ab9641e6ea0ef53295c033fb2efaf59f57
MD5 29aa62f47d13fbac16d0b636db131453
BLAKE2b-256 aac5694a1ad517d60ca5b29d93f7589c0951a573a29ec42e0524cb3a8e5948c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57c9a9c87bed2ead62c1f50603c5bc2d54ff270fa202801d92193304c9b59b4d
MD5 581f4f120316ba9dc04cccee61a8a1ad
BLAKE2b-256 cdbba409fb3eb1a4961e0b31181264979bcf62413c7ed0f65c1ddb4be2c7d885

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 619b97d5a06646271287bfb8ce0306eb7b5887e8f14a2807d2dbc57ba5270615
MD5 47692b2f78fde316f05552210c25db53
BLAKE2b-256 47957285c393b29fda2ef5370f4a9761262cc96875bc011554b029448fec94a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a050f9152455e945122d78fdc0980b5a422fe787450084c640085fc05f783995
MD5 f6ba6aa63d7a7206cb8e6c08f31f158a
BLAKE2b-256 a7a00846e24da7da5ee3301055084a840402053fca0af24175bdded99eb030c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2023.8.30-cp310-cp310-win32.whl
  • Upload date:
  • Size: 135.2 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.8.30-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 01bda38731d3dc173e313946b9ee9f703012756282b01ef6ebd09da512213232
MD5 e5ec7410221c5827cca02aaf3e849631
BLAKE2b-256 11c6f444cb9a958f9b2bebdfdc4602e29be0f11072b3fb8161623a66a23f3472

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 162851a9b57582cdc7a9dca410590f582db8c2d40f2b4f9e6a215986689eedce
MD5 db59678e0e0122d8cae49d10bdc3657a
BLAKE2b-256 4442a73a046eda1413b05571179d411317c8cf1a5164f226bb46f7cbd7c0c1bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1d67c2ec8bb71014b3d838098c4ada17cfdb44af8ff78f85eec7af308f34de3
MD5 050366876407cc901d884b8aff54cab9
BLAKE2b-256 d6fa5eeb0f934ac4e7a9603a5fcb5e9253a33ae9276ee7db1bfbbb6ccf080390

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fa78fdce06b4493c06412210ac9a41e20d2cc8a84e547f4e411075846df12c9b
MD5 f8fe980a767c30af03ce4655cf45dda4
BLAKE2b-256 068cf9743866314913c32df741eb8f6beae8152b05557d674f4c890184330e0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2023.8.30-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 151.2 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.8.30-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4c41d173e7d44350eac1592171c8910a876b116d8b137742e0ed13173088ae3b
MD5 70b4963cf1a549c4515281de5a77472f
BLAKE2b-256 fb5c4b666ad14eafa61c5e70ae719de9218e636aaada8c5c29c64c6f8a0ae863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2023.8.30-cp39-cp39-win32.whl
  • Upload date:
  • Size: 136.0 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.8.30-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 85e4e9a1f12648bc4f5053102acc28a8e345cbad4ba510c7078ab783e73deb5d
MD5 1c1b9f955146ddcf523946a238cbe02e
BLAKE2b-256 7252dc3ba645de229154acf7cf1f8e8d9ff788427652630d58b90ccaebb9a90c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e3183b2a4fd4e2d3937dbf1ade94350afcd1f278eb4b9b8bf21036e58667349
MD5 25a747a401d1f53bddef976aaff3daa5
BLAKE2b-256 48a0a6cbebf8f727a0ca97be0cc93162bf740eb39b88187549d07e5263ec185f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4ecde0a631e2cfa2e0f96bbcf34ba52bad82e8d4246b28aa361ef393ace75fc
MD5 d8a5728bfb14f996d9f8ce198199ba6f
BLAKE2b-256 5b8d1e16eebae52dc0d1e0288cc26efa47762ab5c56c185123fc2c0c946abbb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.8.30-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1cba3be77f6f3993fd35add7be817c73f79f28310254f32a5de4801c8982fed7
MD5 cd030ee927e3ca175864b9c80fe90077
BLAKE2b-256 c6ac88dd7a757dc28f7ff18f3bda428488329872a1ae5ecfb52508ea70bf8304

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