For automating the loading, navigation, alignment, filter and export of image and spot data
Project description
Filospot
A napari plugin for automating the loading, navigation, alignment, filter and export of image and spot data.
Installation
You can install filospot via pip:
pip install filospot
To install latest development version:
pip install git+https://github.com/qin-yu/filospot.git
Or install from source:
git clone https://github.com/qin-yu/filospot.git
cd filospot
pip install -e .
Usage
As a napari plugin
After installation, the plugin will be available in napari. You can access the filospot widget through:
Plugins > filospot > Filospot - Image and Spot Analysis
The plugin provides a unified interface with sections for:
- Import: Load directories containing raw images, reference images, and CSV spot detection files
- Navigation: Browse through image datasets with Previous/Next buttons and dropdown selection
- Align Reference: Apply pixel-level translation to align reference images with main images
- Filtering: Filter detected spots based on intensity thresholds in reference images
- Export: Export filtered spots to CSV format
As a standalone application
filospot
This launches the full napari application with filospot widgets pre-loaded.
Programmatically
from filospot import main
main()
Or use individual components:
from filospot import DataNavigator, filter_spots_by_reference
from filospot.alignment import apply_pixel_translation
# Create a data navigator
navigator = DataNavigator()
navigator.load_paths(tif_dir, ref_dir, csv_dir)
# Apply image alignment
aligned_image = apply_pixel_translation(image, 0, 5, -2)
Features
- Multi-format support: Load TIFF images and CSV spot detection files
- Reference alignment: Pixel-level translation alignment with visual feedback
- Advanced filtering: Filter spots by intensity with optional Gaussian blur
- Live visualization: Real-time contrast updates and threshold visualization
- Batch processing: Navigate through entire datasets efficiently
- Export functionality: Save filtered results to CSV
Project Structure
filospot/app.py- Main application entry pointfilospot/_widget.py- Napari plugin widget interfacefilospot/data_navigator.py- Data loading and navigation functionalityfilospot/alignment.py- Image alignment utilitiesfilospot/filtering.py- Spot filtering functionalityfilospot/widgets.py- GUI widgets and interface componentsfilospot/config.py- Configuration and constantsfilospot/napari.yaml- Napari plugin manifesttests/- Test suite for plugin functionalityconda-recipe/- Conda package recipe for conda-forge distribution
Requirements
- Python >= 3.8
- napari[all]
- numpy
- pandas
- tifffile
- magicgui
- scipy
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 filospot-0.1.0.tar.gz.
File metadata
- Download URL: filospot-0.1.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afff4274dead9aa6b44917d8a281d5415fb15d9858b29bd575660b1d8421acf9
|
|
| MD5 |
38b488b4642792005ed3f20300985cbc
|
|
| BLAKE2b-256 |
9a22ba921513babe94a40a3744c41dee155a3bc425a9f92cee34ecc2c4f63beb
|
File details
Details for the file filospot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: filospot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
873e96d9b7a08e05534e8eb4ec2edf693791fa5b2e3650cec8b5502f848c2fba
|
|
| MD5 |
fbd505451d19383011b5a38246ceeb9a
|
|
| BLAKE2b-256 |
735ba02d89527ad6fd7055bc5bcc4a442e80544279794d01371be9e638fda35d
|