Skip to main content

Performs QuanTI-FRET calibration and analysis from 3-channel movies

Project description

QuanTI-FRET

Home Page

QuanTI-FRET is a Python tool that performs QuanTI-FRET calibration and analysis from 3-channel movies

  1. Description
  2. Napari Plugin
  3. Standalone GUI App
  4. Standalone CLI App
  5. Python Module
  6. Documentation
  7. For developpers

Description

The QuanTI-FRET method proposes calibrating the instrument and the FRET pair to simply calculate absolute FRET probabilities from triplet of images acquired under the same conditions and with the same FRET pair. All the photophysical and instrumental factors are included in this calibration, leaving the variability of the results to biological origins.

This module provide all the tools to perform the calibration, and then the quantitative FRET measurement of your experiments, using only your triplet images.

This module can be used:

  • as a Napari Plugin
  • as a Standalone GUI app
  • as a CLI app
  • imported inside your code

Napari Plugin

QuanTI-FRET was designed to be integrated into the Napari tool as a plugin.

Installation

QuanTI-FRET is available in the Napari Hub under the name quanti-fret.

To install it:

  • Have a look here to install Napari
  • Have a look here to install a plugin

Getting Started

To open the plugin, go to the Plugins menu and click on QuanTI-FRET (quanti-fret)

Standalone GUI App

You can also use the QuanTI-FRET software as a standalone GUI or CLI app outside Napari.

Installation

Set up your environment

It is good practice to set up a virtual environment and install the tool inside your environment.

With Conda
conda create --name quantifret
conda activate quantifret
conda install pip
With Pyenv
pyenv virtualenv [PYTHON_VERSION>=3.12] quantifret
pyenv activate quantifret
pip install --upgrade pip

Install Qt

If you want to use the GUI application, you need to install Qt.

It is not in the defaults dependencies as the quanti_fret modules also comes up with CLI app, or can be imported directly inside your Python code. So we don't want to penalize all the users by forcing a Qt dependency.

QuanTI-FRET supports Qt5 and Qt6 using either PyQt or PySide

pip install [pyqt6 | pyqt5 | pyside6 | pyside5] # Choose one package

Install the module

Finally, you can install the quanti_fret module by running:

pip install quanti-fret

Upgrade the module

pip install quanti-fret --upgrade

Getting Started

Run the following command inside your environement:`

quanti-fret-run

Standalone CLI App

For automation purposes, or if you don't have access to a graphic server, you can use the CLI app.

Installation

Do all the steps of the standalone GUI app installation except for the Qt part

Getting Started

Generate your config files

You first need to generate one config file for the calibration phase, and one for the fret phase:

quanti-fret-run generate_config calibration path/to/new/calibration.ini
quanti-fret-run generate_config fret path/to/new/fret.ini

You then need to modify them to fit your requirements (see the documentation)

Run the calibration

quanti-fret-run cli calibration path/to/new/calibration.ini

Run the fret on the series

quanti-fret-run cli fret path/to/new/fret.ini

Python Module

Finally, you can integrate the QuanTI-FRET module inside your own code.

Installation

Do all the steps of the standalone GUI app installation except for the Qt part

Getting Started

Generate your config files

You first need to generate one config file for the calibration phase, and one for the fret phase:

quanti-fret-run generate_config calibration path/to/new/calibration.ini
quanti-fret-run generate_config fret path/to/new/fret.ini

You then need to modify them to fit your requirements (see the documentation)

Run the calibration

from quanti_fret.run import QtfRunner
from quanti_fret.io import CalibrationIOPhaseManager IOManager

iopm_cali = CalibrationIOPhaseManager(load_series=True)
iopm_fret = FretIOPhaseManager(load_series=True)
iom = IOManager(iopm_cali, iopm_fret)

iopm_cali.load_config('path/to/new/calibration.ini')

runner = QtfRunner(iom)
runner.run_calibration()

Run the fret

from quanti_fret.run import QtfRunner
from quanti_fret.io import CalibrationIOPhaseManager IOManager

iopm_cali = CalibrationIOPhaseManager(load_series=True)
iopm_fret = FretIOPhaseManager(load_series=True)
iom = IOManager(iopm_cali, iopm_fret)

iopm_fret.load_config('path/to/new/fret.ini')

runner = QtfRunner(iom)
runner.run_fret()

Documentation

Coming soon...

For developpers

Here are some indications dedicated to the developpers

Poetry

We are using poetry as a build system.

To install it, go to their doc page

Clone the project

git clone https://gricad-gitlab.univ-grenoble-alpes.fr/liphy/quanti-fret.git
cd quanti-fret/

Install QuanTI-FRET

poetry install

Run the tests

pytest
flake8
mypy .

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

quanti_fret-0.13.0.tar.gz (103.5 kB view details)

Uploaded Source

Built Distribution

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

quanti_fret-0.13.0-py3-none-any.whl (160.8 kB view details)

Uploaded Python 3

File details

Details for the file quanti_fret-0.13.0.tar.gz.

File metadata

  • Download URL: quanti_fret-0.13.0.tar.gz
  • Upload date:
  • Size: 103.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.1.0-40-amd64

File hashes

Hashes for quanti_fret-0.13.0.tar.gz
Algorithm Hash digest
SHA256 53859526629077a1d13a32c25b9ca4614b7ac9bc629ec0846278a0833d777347
MD5 d883302b3814cba229393c2568dbb928
BLAKE2b-256 3a19da13bb7fcf82c972fa7db562fb2da420706d80ee8d161cdaa7c2c171b28f

See more details on using hashes here.

File details

Details for the file quanti_fret-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: quanti_fret-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 160.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.1.0-40-amd64

File hashes

Hashes for quanti_fret-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2cad66a1fb2af874253e8c233c3b27630d1d56bbcffd38d9f29cb901d73bb3
MD5 c90824d1a0b7e98ef3a0aba738dce9a2
BLAKE2b-256 4347631a317cdb0147cb6ce1fd4769a611827b607a0bbe10b1a52e034998f6c4

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