Skip to main content

Toolbox for analysing FCS/FFS data with array detectors

Project description

BrightEyes-FFS

A toolbox for analysing Fluorescence Correlation Spectroscopy (FCS) and Fluorescence Fluctuation Spectroscopy (FFS) data with array detectors. The fcs module contains libraries for:

  • Calculating autocorrelations and cross-correlations of raw FCS/FFS data (i.e. photon counts vs. time)
  • Fitting correlations to various 2D and 3D diffusion models
  • Calibration-free FCS/FFS analysis such as circular-scanning FCS and iMSD analysis
  • Miscellaneous tools

The fcs_gui module contains libraries for:

  • Storing and loading FCS/FFS analysis sessions, as used in the GUI

The dataio module contains libraries for:

  • Fitting various models to data (polynomial, Gaussian, power law, etc.)
  • Stokes-Einstein relation
  • Save/load 2D arrays to/from .csv files
  • Save data to .tiff file
  • Miscellaneous tools

Installation

You can install brighteyes-ffs via [pip] directly from [PyPI]:

pip install brighteyes-ffs

or using the version on GitHub:

pip install git+https://github.com/VicidominiLab/BrightEyes-FFS

or:

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple brighteyes-ffs

It requires the following Python packages

h5py
joblib
matplotlib>=3.3.2
multipletau>=0.3.3
numpy>=1.19.4
pandas>=1.1.4
scipy
tifffile>=2020.9.29
seaborn
imutils
PyQt5
qdarkstyle
nbformat
ome_types
czifile
brighteyes_ism

Getting started

Calculating correlations

from brighteyes_ffs.fcs.fcs2corr import fcs_load_and_corr_split as correlate
list_of_g = ['central', 'sum3', 'sum5']
G, time_trace = correlate(file, list_of_g=list_of_g, accuracy=16, split=10, time_trace=True, algorithm='multipletau')

Fitting correlations

from brighteyes_ffs.fcs.fcs_fit import fcs_fit
fitresults = []
for corr in list_of_g:
	Gsingle = getattr(G, corr + '_average')
	Gexp = Gsingle[1:,1]
	tau = Gsingle[1:,0]
	fitfun = 'fitfun_2c'
	fit_info = np.asarray([1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0]) # fit N, tauD, and offset (we fit with one component)
	param = np.asarray([1, 1, 1, 1, 1, 0, 0, 3, 0, 0, 0]) # starting values for all parameters
	lBounds = np.asarray([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])*(-1e6) # lower bounds for all parameters
	uBounds = np.asarray([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])*(1e6) # upper bounds for all parameters
	fitresult = fcs_fit(Gexp, tau, fitfun, fit_info, param, lBounds, uBounds, plotInfo=-1)
	fitresults.append(fitresult)

License

Distributed under the terms of the [GNU GPL v3.0] license, "BrightEyes-FFS" is free and open source software

Contributing

You want to contribute? Great! Contributing works best if you creat a pull request with your changes.

  1. Fork the project.
  2. Create a branch for your feature: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'My new feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request!

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

brighteyes_ffs-0.0.14.tar.gz (118.7 kB view details)

Uploaded Source

Built Distribution

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

brighteyes_ffs-0.0.14-py3-none-any.whl (149.8 kB view details)

Uploaded Python 3

File details

Details for the file brighteyes_ffs-0.0.14.tar.gz.

File metadata

  • Download URL: brighteyes_ffs-0.0.14.tar.gz
  • Upload date:
  • Size: 118.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.7

File hashes

Hashes for brighteyes_ffs-0.0.14.tar.gz
Algorithm Hash digest
SHA256 9a6e33befd32b565ccbc108e7526ab5ca05096dbbd6e1d8018a7d308349cb925
MD5 f48524e581851116522989bb144c3212
BLAKE2b-256 39072dc126ee5dfcea78f0a72749cfdd26f77de782f2974af079704a15b28abf

See more details on using hashes here.

File details

Details for the file brighteyes_ffs-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for brighteyes_ffs-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b5802e8375e521cbd8735e1d637aead268177121609db1448510f82d31ee8622
MD5 0abe16c202f3e4cdb59f7b6b6cab2e92
BLAKE2b-256 1a712c70f48521ef09976ed4859e6cd8afd6ec201336edb5f41c5c253d5a0984

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