Skip to main content

Fast, volumetric cell detection. In development.

Project description

Overview

Suite3D is a volumetric cell detection algorithm, generally applicable to any type of multi-plane functional 2p imaging where you see cells on multiple planes. For an overview of the algorithms, see our recent preprint.

You might run into few kinks - please reach out to Ali (ali.haydaroglu.20@ucl.ac.uk, or by creating issues on this repository) and I'll be happy to help you get up and running.

Installation

git clone git@github.com:alihaydaroglu/suite3d.git
cd suite3d

conda (miniforge3 only)

conda create -n s3d -c conda-forge python=3.11
conda activate s3d
pip install -e ".[all]"  # [all] optional

pip

python -m venv
source .venv/bin/activate      # linux, macOS
# or
# source .venv/Scripts/activate  # windows

pip install ".[all]" % include viz/jupyter utilities

GPU Dependencies

To use the GPU, you need a system cuda installation. We recommend 12.x.

After downloading CUDA, use the corresponding pip install for cupy:

| Supported CUDA Toolkits: v11.2 / v11.3 / v11.4 / v11.5 / v11.6 / v11.7 / v11.8 / v12.0 / v12.1 / v12.2 / v12.3 / v12.4 / v12.5 / v12.6 / v12.8

pip install cupy-cuda12x  # or 11x if you installed CUDA v11.2 - v11.8

If you are unsure what CUDA toolkit you have installed, you can install cupy through conda and it will [handle the CUDA requirements for you](see here: https://docs.cupy.dev/en/v12.2.0/install.html#installing-cupy-from-conda-forge):

conda install -c conda-forge cupy

Note on conda environments We highly recommend switching from your current conda package manager to miniforge3 if you have not yet done so. If not on miniforge3, and the installation gets stuck around "Solving Environment", you should use libmamba (explanation), install it using the instructions here. Also, set the conda channel priority to be strict: conda config --set channel_priority strict. It's important that you don't forget the -e in the pip command, this allows the suite2p installation to be editable.

Usage

Run a jupyter notebook in this envinronment, either by running jupyter notebook in the activated environment or running a jupyter server from a different conda env and selecting this environment for the kernel (see here). Make sure you use the correct environment!

Then, run the Demo notebook.

Docker

There is a Dockerfile in this repo that successfully builds (docker build - < Dockerfile). I don't know anything about Docker, but I would love to have this successfully run in a container. If you manage to get that working let me know! Ideally, this would also include some sort of X host to run napari (https://napari.org/stable/howtos/docker.html#base-napari-image), presumably there is a way to merge the napari-xpra docker image into this one to make that work.

Sample Data

Use this for the standard 2p imaging demo, recorded in mouse CA1, courtesy of Andrew Landau.

Sample LBM data coming soon!

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

mbo_suite3d-0.0.7.tar.gz (161.8 kB view details)

Uploaded Source

Built Distribution

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

mbo_suite3d-0.0.7-py3-none-any.whl (173.8 kB view details)

Uploaded Python 3

File details

Details for the file mbo_suite3d-0.0.7.tar.gz.

File metadata

  • Download URL: mbo_suite3d-0.0.7.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for mbo_suite3d-0.0.7.tar.gz
Algorithm Hash digest
SHA256 bc7e961b4e4ccad844f56c3117f41c43cfed658dfbfc8603ffd0c0b8ff6871a1
MD5 1d037246a5f0e3cd8184605b69d7bd5b
BLAKE2b-256 c1b1cae07a0b1748cbade88978e34d50347ff4b2356b0c8cc7116f22e72affd4

See more details on using hashes here.

File details

Details for the file mbo_suite3d-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for mbo_suite3d-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2fb4e48f531c5d7f6aa1fc0ae3c64e231d9434c8d5f5ce2c7158e6e5b021c3
MD5 2f4df9e2d509dd2bdcc1865428ff753b
BLAKE2b-256 398df9d8ca4578dd8d1b9226dadafe42ec27e8353724d24d922411f9f11d5d60

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