Skip to main content

Bayesian Effect size Inference with Guide counts and Editing rate

Project description

beige

Bayesian variant Effect Inference with Guide counts and Editing outcome.

This is a generative-model-based CRISPR screen analysis software for that can account for

  • :bar_chart: Multiple FACS sorting bins
  • :waning_gibbous_moon: Incomplete editing rate
  • :mag: Multiple target variant/bystander edit (under development)

BEIGE models the cellular phenotype of CRISPR sorting screen data as mixture distribution. The cells will be sorted based on the theoretical quantile based on (unperturbed) control distribution and your FACS sorting quantiles. The sorted samples (red box in below schematic) are sequenced to produce the final guide counts.

model_design

Its inference uses SVI (Stochastic Variational Inference) through Pyro to fit the posterior phenotype distribution of target element perturbation.

Installation

pip install beret-beige

Usage

CRISPR screen data without reporter information

beige myScreen.h5ad --prefix=my_analysis [--fit-pi|--perfect-edit|--guide_activity_column]

myScreen.h5ad must be formatted in Screen object in perturb-tools package. If you don't have reporter information measured, you can take one of three options for analysis:

  1. --fit-pi : Editing rate is fitted so that overall likelihood of the model is maximized.
  2. --perfect-edit : Assuming editing rate is 1 for all guides. This option is recommended over 1) based on the inference accuracy in simulation data.
  3. --guide_activity_column=your_col_name : If you want to use external information about guide activity estimated using other software, input the guide activity in the Screen.guides DataFrame (see Screen object in perturb-tools).Pass the column name as the argument.(under development)

CRISPR screen data with reporter information

beige myReporterScreen.h5ad --prefix=my_analysis [--rep-pi]

myReporterScreen.h5ad must be formatted in ReporterScreen object in beret package.

  • --rep-pi : If you suspect your biological replicate will have overall different level of editing rates, you can let the model to fit the replicate specific scaling factor of editing rate using this option.

Caveat

BEIGE assumes the phenotype distribution pre-sort sample is the same as the negative control. Whereas this assumption can be safely considered as true in case of variant screens, this may not hold true if you expect large phenotypical shift for the majority of perturbed elements.

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

beret-beige-0.0.6.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

beret_beige-0.0.6-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

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