Skip to main content

CRISPRzip

License: MIT DOI Test Status TUDelft DCC

Welcome to the codebase of CRISPRzip from the Depken Lab at TU Delft.

About the project

Activity prediction with CRISPRzip

CRISPRzip is a physics-based model to study the target recognition dynamics of CRISPR-associated nucleases like Cas9 (Eslami-Mossalam, 2022). Their interactions with target DNA is represented as an energy landscape, with which you can simulate binding and cleavage kinetics. The parameters have been obtained by machine learning on high-throughput data. CRISPRzip makes quantitative predictions of on-target efficiency and off-target risks of different guide RNAs.

With CRISPRzip, we hope to contribute to assessing the risks that come with particular choices in CRISPR application, and as such contribute to the development of safe gene editing technology.

References

Eslami-Mossallam B et al. (2022) A kinetic model predicts SpCas9 activity, improves off-target classification, and reveals the physical basis of targeting fidelity. Nature Communications. 10.1038/s41467-022-28994-2

Installation

CRISPRzip is available on PyPi and can be installed with pip.

User installation

Although CRISPRzip can be directly installed from pip, creating a virtual environment makes it easier to manage dependencies. Below you can see some intructions on how to generate a virtual environment with venv assuming you already have python installed in a bash-like terminal.

python -m venv crisprzip-venv
source crisprzip-venv/bin/activate
pip install crisprzip

Developer installation

To be able to make changes and contributions to CRISPRzip, you will need to get your own copy of the source code and install software dependencies on your own. Assuming you have a python and git installed in a bash-like terminal, the installation process can be done with the following instructions.

git clone https://github.com/hiddeoff/crisprzip.git
cd crisprzip
python -m venv crisprzip-venv
source crisprzip-venv/bin/activate
pip install -e .

Please use our contributing guidelines if you would like us to consider your developments in a future CRISPRzip release

Verifying installation

CRISPRzip development includes a cross-platform compatibility and test workflow. If you would like to verify your local installation, please follow the Developer Installation instructions, then run the following test.

source crisprzip-venv/bin/activate
pip install -e '.[tests]'  # installs pytest and pandas
pytest tests/cleavage_binding_prediction/test_cleavage_binding_prediction.py -v

You can also follow the user installation and execute the code in the Usage section below.

Usage

CRISPRzip makes predictions about cleavage and binding activity on on- and off-targets. First, you define the protospacer and target sequence, and then, you can predict the fraction cleaved or bound.

# 1. load parameter set
from crisprzip.kinetics import load_landscape
searcher = load_landscape("sequence_params")

# 2. define Cas9, gRNA and DNA target
searchertargetcomplex = searcher.probe_sequence(
    protospacer = "AGACGCATAAAGATGAGACGCTGG",
    target_seq  = "AGACCCATTAAGATGAGACGCGGG",  # A13T G17C
)

# 3. predict activity
f_clv = searchertargetcomplex.get_cleaved_fraction(
    time=600,  # 10 minutes
    on_rate=1E-1
)
f_bnd = searchertargetcomplex.get_bound_fraction(
    time=600,  # 10 minutes
    on_rate=1E-1
)

# 4. format output
print(f"After 10 minutes, the target (A13T G17C) is ...")
print(f"- cleaved for {100 * f_clv:.1f}% by Cas9")
print(f"    or  ")
print(f"- bound for {100 * f_bnd:.1f}% by dCas9")

Output:

After 10 minutes, the target (A13T G17C) is ...
- cleaved for 10.5% by Cas9
    or  
- bound for 94.2% by dCas9

See the tutorial or the docs for more examples how to explore sequence, time and concentration dependency.

Contributing

We encourage contributions in any form - reporting bugs, suggesting features, drafting code changes. Read our Contributing guidelines and our Code of Conduct.

Acknowledgements

Many thanks to Elviss Dvinskis, Raúl Ortiz and Aysun Urhan from the DCC team at TU Delft for their support to get this package released!

Waiver

Technische Universiteit Delft hereby disclaims all copyright interest in the program “CRISPRzip” (a physics-based CRISPR activity predictor) written by the Author(s). Paulien Herder, Dean of Applied Sciences

(c) 2024, Hidde Offerhaus, Delft, The Netherlands.

Metadata

Release files for crisprzip 1.2.3

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

Source distribution (sdist)

Source distribution for crisprzip 1.2.3
File Size Uploaded
crisprzip-1.2.3.tar.gz 48.8 kB Details

Built distribution (wheel)

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

Total release size: 97.1 kB

Release files / crisprzip-1.2.3.tar.gz

Download URL crisprzip-1.2.3.tar.gz
Size 48.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a9470deb3cecc57da38a4894d621372ca2e4b22067a450166319c3f52e96dd2f
BLAKE2b-256 checksum
How to use checksums
dca75749e6e9fee08d4d8597a1faad809c6361779b0d5dba2a0714c6d43c9167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / crisprzip-1.2.3-py3-none-any.whl

Download URL crisprzip-1.2.3-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaa5380f5eedd2238b9db1419aa41a00e40eda41a6d1c0712508b5989d206be0
BLAKE2b-256 checksum
How to use checksums
3babb231fffc6a5009455fc6c410ae3ab10f827b4df74e66ba1408dba4f7f987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

0.0.0

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