A hierarchical linear mixed model for analyzing CRISPR screen data.
Project description
# 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seabass-0.0.5.tar.gz.
File metadata
- Download URL: seabass-0.0.5.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ba6c30d1eff526f93428b21955b811e1d213e3aa151d56e7b0792c48e5ab0d
|
|
| MD5 |
93e44b847f91cb3f94ba46f911e3287b
|
|
| BLAKE2b-256 |
5c8fa6db34d00ff0eb9d99435de9c166989bf51587e9157934bd7b5648e1f3df
|
File details
Details for the file seabass-0.0.5-py3-none-any.whl.
File metadata
- Download URL: seabass-0.0.5-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2372e3c637f69c0bd6005d4bedc145688ed5bddbc0a518548a74fd91a34b5c93
|
|
| MD5 |
98c7ce23a85c03e258ab9e82eedb6dfd
|
|
| BLAKE2b-256 |
77a3c322b4bdf3765b82d104727dd9f7026ba8eb8212a5fd1b42bf75ffb93c9e
|