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

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

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.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.4.20.tar.gz (228.4 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.4.20-pp39-pypy39_pp73-win_amd64.whl (149.9 kB view details)

Uploaded PyPyWindows x86-64

lfdfiles-2023.4.20-cp311-cp311-win_arm64.whl (128.2 kB view details)

Uploaded CPython 3.11Windows ARM64

lfdfiles-2023.4.20-cp311-cp311-win_amd64.whl (154.4 kB view details)

Uploaded CPython 3.11Windows x86-64

lfdfiles-2023.4.20-cp311-cp311-win32.whl (136.7 kB view details)

Uploaded CPython 3.11Windows x86

lfdfiles-2023.4.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (802.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

lfdfiles-2023.4.20-cp311-cp311-macosx_11_0_arm64.whl (736.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lfdfiles-2023.4.20-cp311-cp311-macosx_10_9_x86_64.whl (751.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lfdfiles-2023.4.20-cp310-cp310-win_amd64.whl (155.3 kB view details)

Uploaded CPython 3.10Windows x86-64

lfdfiles-2023.4.20-cp310-cp310-win32.whl (136.9 kB view details)

Uploaded CPython 3.10Windows x86

lfdfiles-2023.4.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (770.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

lfdfiles-2023.4.20-cp310-cp310-macosx_11_0_arm64.whl (738.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lfdfiles-2023.4.20-cp310-cp310-macosx_10_9_x86_64.whl (752.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

lfdfiles-2023.4.20-cp39-cp39-win_amd64.whl (156.4 kB view details)

Uploaded CPython 3.9Windows x86-64

lfdfiles-2023.4.20-cp39-cp39-win32.whl (137.7 kB view details)

Uploaded CPython 3.9Windows x86

lfdfiles-2023.4.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (770.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

lfdfiles-2023.4.20-cp39-cp39-macosx_11_0_arm64.whl (737.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

lfdfiles-2023.4.20-cp39-cp39-macosx_10_9_x86_64.whl (753.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.4.20.tar.gz
Algorithm Hash digest
SHA256 b1d08eeccc5dff9f9d87cabe5f44ed0d93be455a235899809de74648f61fdab0
MD5 a9a88d713cdbc2d046e899b215a7aa1c
BLAKE2b-256 e98a02427c49f3e945947be8af711603de2b1471ece30c66a9f27eeac291c92b

See more details on using hashes here.

File details

Details for the file lfdfiles-2023.4.20-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 cab1b5a65aca3064806b862d1548b7092cdb2bc38f595f9e7906543019ec7c7e
MD5 287a8af21f3e63516b52b8ba42a85024
BLAKE2b-256 8e67ec33e2ef7acfc65f1cfa4524c850735fc1561f67a7c1433542d30fd254ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 3dc79bde66d7ebe681e53608889bbc5156c4b866c32c8fc154af8896ace22c56
MD5 a88be0492d41cce564a62f9412838a28
BLAKE2b-256 ace111a2315c823f1408532850468125aedec264a6e3546d25b21c55bcb8f6b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af41c3a46871ed4e1463de5be48a9b9fa8cac39e04e4e199f9efe68abc1affed
MD5 d47e761391ea7be5999bd05f23d93461
BLAKE2b-256 4fe05e37f5b6a2ce564a5724e5426d6c27d7e0f2aa6f3ca78bcb19953b31d7d7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f3106ddba8b57bf3c2fdc7c36206f74f2e8a99ded0acee63b21268e75d7fb901
MD5 a9df328f1fb5c0ecd057dd24d7237b21
BLAKE2b-256 e0a8fe31178aa5d00951efd6449c92fa96354577202f6de4303f6658b772183c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79e90c4ea2deb836b7193469e39bdcaa92b80cb09d1c560000ce33d23023f8c4
MD5 78aebbe01019beb0826a5b5f4f0a11d6
BLAKE2b-256 3342472707b95e008fa3e430661f524bdc1f13ebd8cf380a5faea9ec35d7fcbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da691fffe68dfcac00ed3bcdef0b14709ac2f2bfa98511eac9daec70b9b1cc73
MD5 412827eb162e695614bbbb209ea1476c
BLAKE2b-256 c76ac83176c28c7784825136e4fc72021e6add9f84b755a42dadceb9f64a0d01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1d11be0bd3f6941ba31663641cd67dd40224bc4c233b002dd13b09bdccbe50bb
MD5 fc3f69e8447e8576a57a44720d08ed29
BLAKE2b-256 31b12dd2457a460069491bdda8a3f8275070c18ee97d80423c4b66115977682c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 05210500d03cedbbb1b82bb4bec3350b42ec6c8611cf545ec308ef745ad63c52
MD5 ab2d07a1c7e38470f8a52ba390853669
BLAKE2b-256 889226d194a6c16e0ef381fe06fdd5a31d1d03fbf78f5131a068413475f0e4e9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.4.20-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2426cedb504457467f90c1fcdb1a06c0eb817471a00d918ad1749da10d92126e
MD5 6231a1c01cbc6396228924653df3afe3
BLAKE2b-256 47b992547d8ccb1c0a81a52433ffc61119f0432787de16072b4e101211daecf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d967035bcc63bc58e04f71ad0c9fd8c09e75ea549784e3e27eadce4d57bb94d
MD5 487d5bc475b65ce7672dd07763f2f988
BLAKE2b-256 cf9379acb8d709769851a7a4e596df93ae47f8e1794a8b761f24450ec021e3c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e2e5912471cde2cc9a3bbb23cea883f7dcbb2c948370b63217c18c69f3b47b1
MD5 e4e958c3f5fa0b3224ac4b3b43a61c9a
BLAKE2b-256 e9f073897ee4fc6b2a79843fdc2a2162f85c7fb00b8d002ffd511bdf530dfc7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7269ac634647e0d0cfaaa5dd7a2b927db8418359105f5e928e4588cf52e8505d
MD5 e8a6b90419d63e4befd9f95c6337c939
BLAKE2b-256 ebcc08452c8d189fc254ccd8b030b73c6890f456062090def79132b4c9f29371

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.4.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 74461f6bf4e75619ddebdad0d2f0a373db69cf88de54c234a9d2ab25b1ca502c
MD5 ba9ebf4f251fd67e28a7518994c967e9
BLAKE2b-256 1056a5938f7ec940dc1b3f9dfa05e45b68bb8c45eb9993ca429ef2d4de91aa6f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lfdfiles-2023.4.20-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3f879e69c5b7a70821b9fb3d23cbe516f28881bb3f8e43f8bb6c6e06b3b34d50
MD5 9cae38dff7cb477e9e89f25f65b9f07c
BLAKE2b-256 8a90a313c2a971aff82af9d4d220abde68286c54475d1c5a41551549c37a05c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3eaed21127b57af3ad81498be3f0c27d8ea2f2efbe093169e536eddfdf172494
MD5 57033998769f848187757581d7b14d11
BLAKE2b-256 88b5d30ef3041974ddcca99cbbb39a5bf9171a41312993b7cc1c72b7f1bb977c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64c507afbb40d7db2ba4345ccfbbc27fc079d73c04722aa4d09adb6d08dadf09
MD5 3d2a45a9e7b2406ac30839340e78818e
BLAKE2b-256 7c30de097cc1cf2542336fc7556c06c76611daf022184dc100f0bdecebd34946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lfdfiles-2023.4.20-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 55e503b2ef3b126c514d6a12dba3754a92e34433ab49e07d1547ef4afe494c3b
MD5 0d8f85941e4b089da9c648d345c925f5
BLAKE2b-256 49e18491d029f45ebaac86e31678a171141c9a1a39a70f310035e40ede0620c2

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