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 FBF, FBD, B64, I64, Z64, R64

  • GLOBALS LIF, ASCII

  • CCP4 MAP

  • Vaa3D RAW

  • Bio-Rad(r) PIC

  • Vista IFLI, IFI

  • FlimFast FLIF

For command line usage run python -m lfdfiles --help

Author:

Christoph Gohlke

Organization:

Laboratory for Fluorescence Dynamics. University of California, Irvine

License:

BSD 3-Clause

Version:

2021.7.11

Requirements

This release has been tested with the following requirements and dependencies (other versions may work):

Revisions

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

Read ISS Vista IFI files. Fix reading FBD files with FBF header. Fix reading R64 files with excess bytes. Fix reading VPL files used by ISS Vista. Remove lazyattr.

2021.6.6

Fix unclosed file warnings. Replace TIFF compress with compression parameter (breaking). Remove compress option from command line interface (breaking).

2021.2.22

Add function to decode Spectral FLIM data from Kintex FLIMbox. Relax VistaIfli file version check.

2020.9.18

Remove support for Python 3.6 (NEP 29). Support os.PathLike file names. Fix writing contiguous series to TIFF files with tifffile >= 2020.9.3.

2020.1.1

Read CZI files via czifile module. Read Olympus Image files via oiffile module. Read Netpbm formats via netpbmfile module. Add B64, Z64, and I64 write functions. Remove support for Python 2.7 and 3.5.

2019.7.2

Require tifffile 2019.7.2. Remove some utility functions.

2019.5.22

Read and write Bio-Rad(tm) PIC files. Read and write Voxx MAP palette files. Rename SimfcsMap to Ccp4Map and SimfcsV3draw to Vaa3dRaw (breaking). Rename save functions.

2019.4.22

Fix setup requirements.

2019.1.24

Add plots for GlobalsLif, SimfcsV3draw, and VistaIfli. Support Python 3.7 and numpy 1.15. Move modules into lfdfiles package.

2018.5.21

Update SimfcsB64 to handle carpets and streams. Command line interface for plotting and converting to TIFF. Registry of LfdFile classes. Write image and metadata to TIFF. Read TIFF files via tifffile module.

2016.3.29

Add R64 write function.

2016.3.14

Read and write Vaa3D RAW volume files.

2015.3.02

Initial support for plotting.

2015.2.19

Initial support for new FBD files containing headers.

2014.12.2

Read B64, R64, I64 and Z64 files (SimFCS version 4).

2014.10.10

Read SimFCS FIT files.

2014.4.8

Read and write CCP4 MAP volume files.

2013.8.10

Read second harmonics FLIMbox data.

Notes

Lfdfiles is currently developed, built, and tested on Windows only.

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

The latest Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 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.

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')

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.

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-2021.7.11.tar.gz (314.2 kB view details)

Uploaded Source

Built Distributions

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

lfdfiles-2021.7.11-pp37-pypy37_pp73-win_amd64.whl (198.1 kB view details)

Uploaded PyPyWindows x86-64

lfdfiles-2021.7.11-cp39-cp39-win_amd64.whl (214.9 kB view details)

Uploaded CPython 3.9Windows x86-64

lfdfiles-2021.7.11-cp39-cp39-win32.whl (183.6 kB view details)

Uploaded CPython 3.9Windows x86

lfdfiles-2021.7.11-cp38-cp38-win_amd64.whl (214.9 kB view details)

Uploaded CPython 3.8Windows x86-64

lfdfiles-2021.7.11-cp38-cp38-win32.whl (183.8 kB view details)

Uploaded CPython 3.8Windows x86

lfdfiles-2021.7.11-cp37-cp37m-win_amd64.whl (211.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

lfdfiles-2021.7.11-cp37-cp37m-win32.whl (180.8 kB view details)

Uploaded CPython 3.7mWindows x86

File details

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

File metadata

  • Download URL: lfdfiles-2021.7.11.tar.gz
  • Upload date:
  • Size: 314.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11.tar.gz
Algorithm Hash digest
SHA256 9fda6fef6bf71f3a196eeca0fee8d3ec7c7789148d90e84b5565f3967dd35d8d
MD5 ef46aca459600de3f64575ba674611c3
BLAKE2b-256 041f2b895fb4f3288456ba79336b8b0629a93808adead4c302da78ce2cfbf6fa

See more details on using hashes here.

File details

Details for the file lfdfiles-2021.7.11-pp37-pypy37_pp73-win_amd64.whl.

File metadata

  • Download URL: lfdfiles-2021.7.11-pp37-pypy37_pp73-win_amd64.whl
  • Upload date:
  • Size: 198.1 kB
  • Tags: PyPy, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-pp37-pypy37_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 1d0f254863f4cbae4c036ec918d06af7ef9f64558be1f38429bcfb2b10898b7b
MD5 b8dd922923345950e04a0690b635074b
BLAKE2b-256 e2e928e714cbe2b8d4569477c8d0c580ecfa668188b451f5aecea1155e0a2646

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2021.7.11-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 214.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 560ba61a2337383c6abded03961683e70a8734ef3c5f6e459cdad22aa5f1c837
MD5 c4b36de458b361bfd9dc05f46d30172c
BLAKE2b-256 ebebc23def9d90e79c6560b04e0c0468f18eecccfa9de33eede10dcfa08fa362

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lfdfiles-2021.7.11-cp39-cp39-win32.whl
  • Upload date:
  • Size: 183.6 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f4fc8db19da08650b86e3d1e1acca28b8c7d678d54dba68a0421a646800f66fa
MD5 eaa9292594e59e8d318db7bf38160e72
BLAKE2b-256 4f5079b2bd599e2750b1e8c40a7d75fead2fb8c6d15e012ac11e375b019d0dfa

See more details on using hashes here.

File details

Details for the file lfdfiles-2021.7.11-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lfdfiles-2021.7.11-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 214.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82e20fcf49f1aed82007fb6e75624be8e6ba6851af71b1b8918c51b9f6da5345
MD5 b3c5f6384e34760839faca2042f84994
BLAKE2b-256 e07f41f385fa9bde6f075ea43cef2eb033009a5fdfa2f3897e0ee77aff4d91f7

See more details on using hashes here.

File details

Details for the file lfdfiles-2021.7.11-cp38-cp38-win32.whl.

File metadata

  • Download URL: lfdfiles-2021.7.11-cp38-cp38-win32.whl
  • Upload date:
  • Size: 183.8 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 48feaf266e07d865683e2083fb82ca74c78fd7027f299bbe4a86af67b39dbd1d
MD5 8d47f50d6906efa4fd986f8a9dbe8ca8
BLAKE2b-256 7987d00b8c7b5c7dd1cbfad53f0be566678a1e53a4c2573e81fbcdec2b0b6bc1

See more details on using hashes here.

File details

Details for the file lfdfiles-2021.7.11-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: lfdfiles-2021.7.11-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 211.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 537fb178b2473c3660ef2dd8c7f06985aa0e849626a0aae4d0d68419ac3dd2dd
MD5 9e91c675f28ac1356c73f770fd551874
BLAKE2b-256 75746131639d22fbd5322dba7e34574660f9c776a996c6a128fd80d75cd91cf6

See more details on using hashes here.

File details

Details for the file lfdfiles-2021.7.11-cp37-cp37m-win32.whl.

File metadata

  • Download URL: lfdfiles-2021.7.11-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 180.8 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for lfdfiles-2021.7.11-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 5051f490a5f7586e8cdfe1e79226f506dacb75df18c24f4251d9677582676ddb
MD5 6e90d73e9c07173113946ab34100f83f
BLAKE2b-256 363f2e7a146e9a9cd0ffc66a2b2897ef1c3e70145a2f79b969652741f35e13cd

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