mbo_suite3d


Namembo_suite3d JSON
Version 0.0.5 PyPI version JSON
download
home_pageNone
SummaryFast, volumetric cell detection. In development.
upload_time2025-11-05 16:33:12
maintainerNone
docs_urlNone
authorNone
requires_python<3.13,>=3.11
licenseAGPL-3.0-or-later
keywords pipeline numpy microscopy scanimage suite2p volumetric
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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](https://www.biorxiv.org/content/10.1101/2025.03.26.645628v1).

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

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

`conda` (miniforge3 only)
``` bash
conda create -n s3d -c conda-forge python=3.11
conda activate s3d
pip install -e ".[all]"  # [all] optional
```


`pip`
``` bash
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`](https://developer.nvidia.com/cuda-downloads) 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

```bash
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):
```bash
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](https://conda.github.io/conda-libmamba-solver/libmamba-vs-classic/)), install it using the [instructions here](https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community). 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](https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084)). 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](https://liveuclac-my.sharepoint.com/:f:/g/personal/ucqfhay_ucl_ac_uk/EuQX2PFw13xHhILvRux29AQB48tXCxBJQ7z6JfHee25pfw?e=HmBlAc) for the standard 2p imaging demo, recorded in mouse CA1, courtesy of Andrew Landau. 

Sample LBM data coming soon!


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mbo_suite3d",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.11",
    "maintainer_email": null,
    "keywords": "Pipeline, Numpy, Microscopy, ScanImage, Suite2p, Volumetric",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/99/2b/2783e8dabecbf595766424b5d70e35e637446fcbe4be7bb2020124d91779/mbo_suite3d-0.0.5.tar.gz",
    "platform": null,
    "description": "## Overview\r\n\r\nSuite3D is a volumetric cell detection algorithm, generally applicable to any type of multi-plane functional 2p imaging where you see cells on multiple planes.\r\nFor an overview of the algorithms, [see our recent preprint](https://www.biorxiv.org/content/10.1101/2025.03.26.645628v1).\r\n\r\nYou 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. \r\n\r\n## Installation\r\n\r\n``` bash\r\ngit clone git@github.com:alihaydaroglu/suite3d.git\r\ncd suite3d\r\n```\r\n\r\n`conda` (miniforge3 only)\r\n``` bash\r\nconda create -n s3d -c conda-forge python=3.11\r\nconda activate s3d\r\npip install -e \".[all]\"  # [all] optional\r\n```\r\n\r\n\r\n`pip`\r\n``` bash\r\npython -m venv\r\nsource .venv/bin/activate      # linux, macOS\r\n# or\r\n# source .venv/Scripts/activate  # windows\r\n\r\npip install \".[all]\" % include viz/jupyter utilities\r\n```\r\n\r\n\r\n### GPU Dependencies\r\n\r\nTo use the GPU, you need a system [`cuda`](https://developer.nvidia.com/cuda-downloads) installation.\r\nWe recommend `12.x`.\r\n\r\nAfter downloading CUDA, use the corresponding pip install for cupy:\r\n\r\n| 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\r\n\r\n```bash\r\npip install cupy-cuda12x  # or 11x if you installed CUDA v11.2 - v11.8\r\n```\r\n\r\nIf 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):\r\n```bash\r\nconda install -c conda-forge cupy\r\n```\r\n\r\n\r\n**Note on `conda` environments**\r\nWe 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](https://conda.github.io/conda-libmamba-solver/libmamba-vs-classic/)), install it using the [instructions here](https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community). 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.\r\n\r\n## Usage\r\nRun 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](https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084)). Make sure you use the correct environment!\r\n\r\nThen, run the Demo notebook.\r\n\r\n## Docker\r\n\r\nThere 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. \r\n\r\n## Sample Data\r\nUse [this](https://liveuclac-my.sharepoint.com/:f:/g/personal/ucqfhay_ucl_ac_uk/EuQX2PFw13xHhILvRux29AQB48tXCxBJQ7z6JfHee25pfw?e=HmBlAc) for the standard 2p imaging demo, recorded in mouse CA1, courtesy of Andrew Landau. \r\n\r\nSample LBM data coming soon!\r\n\r\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "Fast, volumetric cell detection. In development.",
    "version": "0.0.5",
    "project_urls": {
        "homepage": "https://github.com/alihaydaroglu/suite3d"
    },
    "split_keywords": [
        "pipeline",
        " numpy",
        " microscopy",
        " scanimage",
        " suite2p",
        " volumetric"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "46e9f5a96f6b44e37f45b2dd89477c647238c994a3a0981be5238742dd06198d",
                "md5": "97892f14ffa7300d66a17867e9df8ec1",
                "sha256": "f1ef08c31ec97ebf7501601093603f66b176eac88d5ede3016368d41a0f0dbc0"
            },
            "downloads": -1,
            "filename": "mbo_suite3d-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "97892f14ffa7300d66a17867e9df8ec1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.11",
            "size": 173521,
            "upload_time": "2025-11-05T16:33:10",
            "upload_time_iso_8601": "2025-11-05T16:33:10.101424Z",
            "url": "https://files.pythonhosted.org/packages/46/e9/f5a96f6b44e37f45b2dd89477c647238c994a3a0981be5238742dd06198d/mbo_suite3d-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "992b2783e8dabecbf595766424b5d70e35e637446fcbe4be7bb2020124d91779",
                "md5": "ec0a9c8efcbe4ecfa759182d964d203d",
                "sha256": "8db5ef25415480682fd5780d2a62aa82628ceb436acab6a07d89956861dba05c"
            },
            "downloads": -1,
            "filename": "mbo_suite3d-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "ec0a9c8efcbe4ecfa759182d964d203d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.11",
            "size": 161405,
            "upload_time": "2025-11-05T16:33:12",
            "upload_time_iso_8601": "2025-11-05T16:33:12.274300Z",
            "url": "https://files.pythonhosted.org/packages/99/2b/2783e8dabecbf595766424b5d70e35e637446fcbe4be7bb2020124d91779/mbo_suite3d-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-11-05 16:33:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alihaydaroglu",
    "github_project": "suite3d",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mbo_suite3d"
}
        
Elapsed time: 3.09100s