Two-photon microscopy particle tracking analysis
Project description
SL2PM
A package for tracking particles, red blood cells (RBCs), and blood vessel walls with super-localization from images recorded with two-photon microscopy (2PM). The package is based on the data analysis developed in the manuscript:
Kutuzov N., Lauritzen M., and Flyvbjerg H. Super-localization two-photon microscopy for in vivo tracking of particles and surfaces.
The data analysis in SL2PM is data-driven, i.e., you need to check if underlying assumptions of SL2PM analysis are satisfied in your data before you apply any functions from SL2PM. This is why we suggest using SL2PM with Jupyter notebooks, where you can explore your data step-by-step (following our examples) and tailor SL2PM analysis to your data, if needed.
The documentation can be found at https://sl2pm.readthedocs.io/en/latest/index.html
Installation
Install from the PyPi distribution
pip install sl2pm
Or from the source
git clone git@github.com:drkutuzov/sl2pm.git
cd sl2pm
pip install -e .
Content
src/sl2pm contains the code for SL2PM.
docs/tutorial contains folders with specific examples of data analysis with SL2PM. Each folder contains Jupyter notebooks tutorials and examples of experimental data (as numpy arrays).
docs/tutorial/quantum_dots: Tracking single quantum dots (QDs) in brain parenchyma.
docs/tutorial/red_blood_cells: Tracking single RBCs in a capillary.
docs/tutorial/capillaries: Tracking diameter and center of a capillary.
docs/tutorial/pmt_calibration: Calibrating photomultiplier tubes (PMTs) for SL2PM.
docs/tutorial/bistable_bias: Estimating parameters of bistable bias – artefact present in some detectors (photomultiplier tubes, PMTs) used for 2PM.
Usage
- Select a folder in
docs/tutorialbased on the data analysis you need. - Upload your data (e.g. as a numpy array) to the folder.
- Make a copy of the Jupyter notebook tutorial or make a new one.
- Use the notebook to analyse your data using the tutorial as a guide.
[!Tip] If you are interested in measuring diameter of a capillary, made visible with fluorescently-labeled plasma (e.g. with FITC-dextran), go to
examples/capillaries/full_demo_plasma.ipynbnotebook.
- Tutorial Jyputer notebooks only demonstrate the key parts of the data analysis described in the manuscript "Super-localization two-photon microscopy for in vivo tracking of particles and surfaces". Parts of the data analysis that can be done with the standard data analysis techniques, which have Python implementation (e.g. numpy, scipy, etc.), are not shown in the tutorials.
- The spatial coordinate in the Jupyter notebook examples is measured in pixels (not actual physical distance units).
[!WARNING] Always check if your data satisfy assumptions of SL2PM analysis before applying it (see the manuscript text for more details).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sl2pm-1.0.0.tar.gz.
File metadata
- Download URL: sl2pm-1.0.0.tar.gz
- Upload date:
- Size: 8.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2ea2e5aae54090daa433f89ec34cdc8d3e19c0af73c96aa90f266ee1961f9e
|
|
| MD5 |
d5b1f146aa50c1320f28c46f423d569a
|
|
| BLAKE2b-256 |
736d7342f401c2c4c9169c030b075e48c20f2197aa47cde2e7e81a04d6f1273c
|
File details
Details for the file sl2pm-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sl2pm-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be221f88ba24bacc5c9e2be63419e2a4ecb25a9481e70908db9a0e2516219565
|
|
| MD5 |
40ddcc5ae99a7f095cc0af351ab3eeab
|
|
| BLAKE2b-256 |
e202ee7971ebb59bc31c2d4c9382cc4a1f99a442335187b7c7ffbc1ce118f9bf
|