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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file beret-beige-0.0.6.tar.gz.

File metadata

  • Download URL: beret-beige-0.0.6.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.6

File hashes

Hashes for beret-beige-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cd57b8c9f257a6a60c05335bea8ebf50b9fc0a93162716fa1159a3d2f1fd6a04
MD5 87971a18e1fcf9f9ed882a210d5882cd
BLAKE2b-256 9fad33a5f3efe5b43182263efb3dc2a6d4f4393db04c42e55828f9c52c6653a6

See more details on using hashes here.

File details

Details for the file beret_beige-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: beret_beige-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.6

File hashes

Hashes for beret_beige-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 07fd762a0dd41f3e4eeee8c5af95d6b486896e4bc81ca0ecf49468ecda0894a1
MD5 c15d65cd83ac2d6e70d3e04e09b2e67b
BLAKE2b-256 27533c88e4ffb41bb3bcb596be44b6ea97c6bc3cfc46e45bc0b2fe499b345d2b

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