Skip to main content

A plugin that enables organelle segmentation

Project description

infer_subc

codecov CI

About The Project

infer_subc

  • aims to create a simple, extensible, and reproducible workflow to measure (or infer) the shape, position, size, and interaction of several sub-cellular components. These data can then be applied later to better understand the spatial coordination of these structures and the interactome during key biological processes.

  • is part of a larger collaboration between the CZI Neurodegeneration Challenge Network (NDCN) Data Science Concierge program and the Cohen lab at UNC (website, github) to migrate a multispectral imaging dataset of iPSCs which identifies sub-cellular components to a scalable cloud-based pipeline.

infer_subc Workflow

The staring point of this workflow is a set of multichannel images, where each channel labels a different sub-cellular component. The workflow can then be completed in a suggested series of steps, outlined in the notebooks below.

Identify a single cell of interest

  1. Infer cellmask (🚨 Steps 2-9 depend on establishing a good solution here)
  2. Infer nuclei
  3. Infer cytoplasm

Segment each of the organelles

  1. Infer lysosomes
  2. Infer mitochondria
  3. Infer golgi complex
  4. Infer peroxisomes
  5. Infer endoplasmic reticulum
  6. Infer lipid bodies

Built With

A quick note on tools and resources used.

  • napari-allencell-segmenter -- We are leveraging the framework of the napari-allencell-segmenter plugin, which enables powerful 3D image segmentation while taking advantage of the napari graphical user interface.
  • aicssegmentation -- We call the aicssegmentation package directly.
  • napari -- Used as the visualization framework, a fast, interactive, multi-domensional image viewer for Python.
  • scipy -- Image analysis
  • scikit-image -- Image analysis
  • itk -- Image analysis
  • numpy -- Under the hood computation
  • Alzheimer's Disease AD Workbench -- We initially wanted to use the ADDI's ADWB as a method of data sharing and to serve as a computational resource.

Getting Started

Prerequisites

Installation

infer_subc is available on PyPI via:

pip install infer_subc

If there are issues more details can be fouund in the documentation

Usage - quick start

Its recommended that you use this repo along with the organelle-segmenter-plugin as in Option A below. Alternatively using the module functions directly as in Option B would work just fine.

Option A: Napari organelle-segmenter-plugin

  1. Open a file in napari by dragging multi-channel .czi file onto napari which will import a multi-channel, multi-Z 'layer'. (Using the menu's defaults to aicsIMAGEIO reader which automatically splits mutliple channels into individual layers. The plugin is able to support multi-dimensional data in .tiff, .tif. ome.tif, .ome.tiff, .czi)
  2. Start the plugin (open napari, go to "Plugins" --> "organelle-segmenter-plugin" --> "workflow editor")
  3. Select the image and channel to work on
  4. Select a workflow based on the example image and target segmentation based on user's data. Ideally, it is recommend to start with the example with very similar morphology as user's data.
  5. Click "Run All" to execute the whole workflow on the sample data.
  6. Adjust the parameters of steps, based on the intermediate results. A complete list of all functions can be found here🚧 WIP 🚧
  7. Click "Run All" again after adjusting the parameters and repeat step 6 and 7 until the result is satisfactory.
  8. Save the workflow
  9. Close the plugin and open the batch processing part by (go to "Plugins" --> "organelle-segmenter-plugin" --> "batch processing")
  10. Load the customized workflow saved above
  11. Load the folder with all the images to process
  12. Click "Run"
  13. Follow the examples in the infer_subc repo for postprocessing of the saved segmentations and generating the statistics.

Option B: python script or notebook

A variety of example notebooks demonstrating how to use the are available in the repo. Additional information can be found at https://ndcn.github.io/infer-subc/nbs/overview/.

Development

Read the CONTRIBUTING.md file.

License

Distributed under the terms of the [BSD-3] license, "organelle-segmenter-plugin" is free and open source software

Issues

If you encounter any problems, please file an issue with a detailed description.

ADWB hints

Given that the github repos are not yet whitelisted, the source directory needs to be zipped and uploaded in order to make an "editable" pip install.

uploading guide uploading files via the workspace article. Using BLOB storage

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

infer_subc-1.0.0.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

infer_subc-1.0.0-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

Details for the file infer_subc-1.0.0.tar.gz.

File metadata

  • Download URL: infer_subc-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for infer_subc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 18fcc730d2312e597b18932803b64d79aa54f84d23ebcf22cc5b572aee3f271a
MD5 2df56721015e600e4c1dba08d1ab5c89
BLAKE2b-256 e40789467683dc23e5446bf9c3f65ae0a423543376d5c965ffaf619cb4fd5b46

See more details on using hashes here.

File details

Details for the file infer_subc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: infer_subc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for infer_subc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac221c68ce025f2f6c9aac2a38e04959f6bf29cb6f38f3a680f041df13c77855
MD5 0fb1f36bc7802e172f1151e10c645597
BLAKE2b-256 9b70519049e399761ddeedc2a73b53992dffcdcc2e8c4bd996fe2b5ba217fb27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page