Skip to main content

# Screen Efficacy Analysis with BAyesian StatisticS

SEABASS is a hierarchical linear mixed model for analysing CRISPR screen data. It can handle multiple time-points and replicates. It uses stochastic variational inference, implemented in pyro to fit model parameters. This enables using heavy-tailed noise distributions which provide a better fit to data and robustness to outliers.

## Probabilistic model

The probabilistic model for SEABASS is:

  • guide_score ~ Normal(0, guide_std^2) for each guide

  • log2FC = (guide_score + guide_random_slope) * timepoint + noise

  • noise ~ D1(0, sigma_noise) for each observation

  • guide_random_slope ~ D2(0, slope_noise) for each (guide,replicate) pair

where guide_score is a slope and D1 and D2 are location-scale distributions which can be either normal, Cauchy, Laplace or StudentT.

The noise standard deviation (std) can either be shared across guides (hierarchical_noise = False), or per guide but distributed according to a learned prior (hierarchical_noise = True):

noise_std ~ logNormal(log_guide_std_mean,log_guide_std_std^2)

Similarly slope_noise can either be shared shared guides (hierarchical_slope = False), or per guide but distributed according to a learned prior (hierarchical_noise = True):

slope_noise ~ logNormal(log_sigma_noise_mean,log_sigma_noise_std^2)

Additionally SEABASS can learn a per gene guide_std ~ logNormal(log_guide_std_mean, log_guide_std_std^2) to account for differences in essentiality.

## Usage

See example_usage/example.ipynb

Release files for seabass 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seabass 0.0.5
File Size Uploaded
seabass-0.0.5.tar.gz 21.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seabass 0.0.5
File Interpreter ABI Platform
seabass-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 43.5 kB

Release files / seabass-0.0.5.tar.gz

Download URL seabass-0.0.5.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
23ba6c30d1eff526f93428b21955b811e1d213e3aa151d56e7b0792c48e5ab0d
BLAKE2b-256 checksum
How to use checksums
5c8fa6db34d00ff0eb9d99435de9c166989bf51587e9157934bd7b5648e1f3df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.8.0

Release files / seabass-0.0.5-py3-none-any.whl

Download URL seabass-0.0.5-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2372e3c637f69c0bd6005d4bedc145688ed5bddbc0a518548a74fd91a34b5c93
BLAKE2b-256 checksum
How to use checksums
77a3c322b4bdf3765b82d104727dd9f7026ba8eb8212a5fd1b42bf75ffb93c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page