Getting Started
Install Python helpers
git clone https://github.com/EngreitzLab/crispr-analysis-utils.git
cd crispr-analysis-utils
python -m pip install -e .
from crispr_analysis_utils import counts_per_million
Install R helpers
install.packages("remotes")
remotes::install_github("EngreitzLab/crispr-analysis-utils")
library(crisprAnalysisUtils)
Add a New Utility
For Python:
- Add the function under
src/crispr_analysis_utils/. - Export it from
src/crispr_analysis_utils/__init__.pyif it is public. - Add a NumPy-style docstring with parameters, returns, and examples.
- Add a focused test under
tests/.
For R:
- Add the function under
R/. - Add roxygen comments with
@param,@return,@examples, and@export. - Run
roxygen2::roxygenise()when documentation changes. - Add a focused test under
tests/testthat/.