Skip to main content

Spatial phenotype analysis of crisp screens (SpaCr)

Project description

Documentation Status PyPI version Python version Licence: GPL v3 repo size

SpaCr

Spatial phenotype analysis of CRISPR-Cas9 screens (SpaCr). The spatial organization of organelles and proteins within cells constitutes a key level of functional regulation. In the context of infectious disease, the spatial relationships between host cell structures and intracellular pathogens are critical to understand host clearance mechanisms and how pathogens evade them. SpaCr is a Python-based software package for generating single-cell image data for deep-learning sub-cellular/cellular phenotypic classification from pooled genetic CRISPR-Cas9 screens. SpaCr provides a flexible toolset to extract single-cell images and measurements from high-content cell painting experiments, train deep-learning models to classify cellular/subcellular phenotypes, simulate, and analyze pooled CRISPR-Cas9 imaging screens.

Features

  • Generate Masks: Generate cellpose masks of cell, nuclei, and pathogen objects.

  • Object Measurements: Measurements for each object including scikit-image-regionprops, intensity percentiles, shannon-entropy, pearsons and manders correlations, homogeneity, and radial distribution. Measurements are saved to a SQL database in object-level tables.

  • Crop Images: Objects (e.g., cells) can be saved as PNGs from the object area or bounding box area of each object. Object paths are saved in a SQL database that can be annotated and used to train CNNs/Transformer models for classification tasks.

  • Train CNNs or Transformers: Train Torch Convolutional Neural Networks (CNNs) or Transformers to classify single object images. Train Torch models with IRM/ERM, checkpointing.

  • Manual Annotation: Supports manual annotation of single-cell images and segmentation to refine training datasets for training CNNs/Transformers or cellpose, respectively.

  • Finetune Cellpose Models: Adjust pre-existing Cellpose models to your specific dataset for improved performance.

  • Timelapse Data Support: Track objects in timelapse image data.

  • Simulations: Simulate spatial phenotype screens.

  • Sequencing: Map FASTQ reads to barcode and gRNA barcode metadata.

  • Misc: Analyze Ca oscillation, recruitment, infection rate, plaque size/count.

Installation

Requires Tkinter for graphical user interface features.

Ubuntu

Before installing SpaCr, ensure Tkinter is installed:

(Tkinter is included with the standard Python installation on macOS, and Windows)

On Linux:

sudo apt-get install python3-tk

Install spacr with pip

pip install spacr

Run spacr GUI:

gui

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

spacr-0.0.81.tar.gz (24.9 MB view details)

Uploaded Source

Built Distribution

spacr-0.0.81-py3-none-any.whl (24.9 MB view details)

Uploaded Python 3

File details

Details for the file spacr-0.0.81.tar.gz.

File metadata

  • Download URL: spacr-0.0.81.tar.gz
  • Upload date:
  • Size: 24.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.18

File hashes

Hashes for spacr-0.0.81.tar.gz
Algorithm Hash digest
SHA256 38a74749d7109bf46a6bf17587359df699245326a6750043aa73299b3d9cd846
MD5 1514e091d26038cbbf4674833106855c
BLAKE2b-256 1770fbff4ebd1e1832302f37b4010c2df81cf0ba86b8df6ed22b136fe99de78d

See more details on using hashes here.

File details

Details for the file spacr-0.0.81-py3-none-any.whl.

File metadata

  • Download URL: spacr-0.0.81-py3-none-any.whl
  • Upload date:
  • Size: 24.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.18

File hashes

Hashes for spacr-0.0.81-py3-none-any.whl
Algorithm Hash digest
SHA256 1621e21d2b1440f12a7b119eb0d31e970f6076c0b2b3348fb288c61910493775
MD5 4744126b094e0a481ad43c5c97ae73af
BLAKE2b-256 96ed95027d8d38dcebb410646a096c52473eb4bdced0a04fc2f10b29e31b3907

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