Skip to main content

SL2PM

A package for tracking particles, red blood cells (RBCs), and microvessel walls with super-localization from images recorded with two-photon microscopy (2PM).

To get started with SL2PM, explore tutorials for tracking quantum dots, red blood cells, and capillaries. For example, if you are interested in measuring diameter of a capillary, made visible with fluorescently-labeled plasma (e.g. with FITC-dextran), see tutorial/capillaries/track_capillary.ipynb notebook.

All tracking algorithms require calibration of the microscope's photomultiplier tubes (tutorial/pmt_calibration/PMT_calibration.ipynb) and, for tracking capillaries, calibration of the microscope's point-spread function (tutorial/capillaries/PSF_calibration.ipynb).

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 function 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

For the users: install from the PyPi distribution

pip install sl2pm

For the developers: install from the source (optionally, from the new Conda environment):

git clone git@github.com:drkutuzov/sl2pm.git
cd sl2pm
conda create -n sl2pm python==3.10
conda activate sl2pm
pip install -e .

Content

src/sl2pm contains the code for SL2PM.
docs/tutorial contains folders with 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 the brain parenchyma.
docs/tutorial/red_blood_cells: Tracking single RBCs in a brain capillary.
docs/tutorial/capillaries: Tracking diameter and center of a brain capillary and calibration of the microscope's PSF.
docs/tutorial/pmt_calibration: Calibrating photomultiplier tubes (PMTs) for SL2PM.
docs/tutorial/bistable_bias: Estimating parameters of bistable bias – artefact sometimes present in the output of PMTs.

Usage

  • Select a folder in docs/tutorial based 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.

Metadata

Release files for sl2pm 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sl2pm 1.0.1
File Size Uploaded
sl2pm-1.0.1.tar.gz 7.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for sl2pm 1.0.1
File Interpreter ABI Platform
sl2pm-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 MB

Release files / sl2pm-1.0.1.tar.gz

Download URL sl2pm-1.0.1.tar.gz
Size 7.8 MB
Tags Source
SHA-256 checksum
How to use checksums
bf33c2b6bb1cf90e414c2b23a8aeb9c652cd19637d8cb42ef4d9e451741c02d4
BLAKE2b-256 checksum
How to use checksums
174a07817bedbeb587bd0017aa9f380963cb6ee7588371abfeb189a4b4dc55dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.1

Release files / sl2pm-1.0.1-py3-none-any.whl

Download URL sl2pm-1.0.1-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f963c4b3f5687c7ddf8ef7c2f04a263f8dee2be6dffcbaf4e6e6f134baf181f9
BLAKE2b-256 checksum
How to use checksums
8236c7dff05f2cbf45ac5a882c2812d6f7e573a43d1ec004d48c21a30fefc228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page