Spatial phenotype analysis of crisp screens (SpaCr)
Project description
[![PyPI version](https://badge.fury.io/py/spacr.svg)](https://badge.fury.io/py/spacr) [![Python version](https://img.shields.io/pypi/pyversions/spacr)](https://pypistats.org/packages/spacr) [![Licence: GPL v3](https://img.shields.io/github/license/EinarOlafsson/spacr)](https://github.com/EinarOlafsson/spacr/blob/master/LICENSE) [![repo size](https://img.shields.io/github/repo-size/EinarOlafsson/spacr)](https://github.com/EinarOlafsson/spacr/)
# SpaCr <table> <tr> <td>
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.
</td> <td>
<img src=”spacr/logo_spacr.png” alt=”SPACR Logo” title=”SPACR Logo” width=”600”/>
</td> </tr> </table>
## 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, homogenicity 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 an sql database that can be annotated and used to train CNNs/Transformer models for classefication 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 barecode and gRNA barecode 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
Built Distribution
File details
Details for the file spacr-0.0.62.tar.gz
.
File metadata
- Download URL: spacr-0.0.62.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58372db16a8ea8b3445a4779138555298cf25ea8af9bcc74d40fadee7de11be |
|
MD5 | c400b1f07e002346f5a47a13d75752fc |
|
BLAKE2b-256 | a95f17b2dcf551553fbc7021a5f42d319824ff6801ce9a42ffad83b784b427a7 |
File details
Details for the file spacr-0.0.62-py3-none-any.whl
.
File metadata
- Download URL: spacr-0.0.62-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115c67e2a47310880f5fb0a4cafe516f1a14c3b77ebe9b35d0b100aba03897c4 |
|
MD5 | 29702764a7bdee2ce34b3f9c57adcf78 |
|
BLAKE2b-256 | 66ac04071745ff7adc0958136ad122e9710d364c9a095d5dbd43a3710abbbc59 |