An automatic deep learning algorithm for spot detection in fluorescence microscopy images.
Project description
Piscis
piscis
is an automatic deep learning algorithm for spot detection, written in Python using the
JAX and Flax libraries. It is named after the Latin
word for fish, as it was designed specifically for microscopy images generated by RNA fluorescence in situ
hybridization (FISH). However, we have found it to be useful for other imaging methods, such as immunofluorescence (IF)
and FISH-based spatial transcriptomics.
This Python package allows users to apply pre-trained models from Hugging Face to
both single plane images and z-stacks or to train new models using custom datasets. It provides a simple API for both
training and inference that can be used in traditional Python scripts or Jupyter notebook
environments such as on Google Colab. It also provides a command line interface
for those who prefer the terminal. For a user-friendly graphical user interface, we have implemented piscis
as a
Docker image for
NimbusImage, a cloud platform for biological image analysis enabling
researchers to interactively visualize their data while leveraging state-of-the-art machine learning algorithms.
Examples
Installation
Install piscis
from PyPI with pip
.
pip install piscis
By default, this will install the CPU version of JAX. If you would like to run or train piscis
on a GPU or TPU, follow
JAX's instructions.
Usage
If you want to use piscis
with its Python API, check out the inference example and
training example notebooks.
If you want to use piscis
with its command line interface, run the following commands.
# Run Piscis.
piscis predict INPUT_PATH OUTPUT_PATH [OPTIONS]
# Train Piscis.
piscis train MODEL_NAME DATASET_PATH [OPTIONS]
To see the full list of options, run piscis predict --help
or piscis train --help
.
License
piscis
is licensed under the MIT License. The copyright and permission notices found in the LICENSE file
shall be included in all copies or substantial portions of the Software.
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.