Brieflow is an extensible computational pipeline for high-throughput analysis of optical pooled screening data.
This repo is a Github template with the configuration notebooks/files and execution scripts for running an OPS screen analysis. Brieflow contains the source code for running an OPS screen analysis.
Each phase is configured in a marimo notebook (analysis/0_preprocess.py … analysis/7_analyze.py) and run with bash analysis/flow.sh <module>.
See Running a Screen and Working with the Notebooks.
| Screen | Repository | Description | Brieflow Version |
|---|---|---|---|
| Denali | cheeseman-lab/denali-analysis | Original screen that drove Brieflow development | 1.0 |
| Aconcagua | cheeseman-lab/aconcagua-analysis | Re-analysis of Funk et al. 2022 | 1.0 |
Examples use this template. More examples coming soon. Please contact us if you have used Brieflow in your own analysis!
We strongly suggest that Brieflow Analysis is set up with the companion Brieflow repository.
Full details on setup, installation, test data, usage, module details, and contribution guides:
https://brieflow.readthedocs.io
- Create a repository from this template and clone it with its submodule:
git clone --recurse-submodules <your-repo-url>. - Create the conda environment and install Brieflow as described in the Brieflow documentation.
- Fill in
analysis/screen.yamlwith the facts of your experiment (plates, wells, channels, cycles, library). - From
analysis/, open the notebooks in order withmarimo edit <notebook>; each writes its section ofconfig/config.yml. - After each notebook, run its module with
bash flow.sh <module>(add--backend slurmon a cluster), then open the next notebook.
| Notebook | Module | Run with |
|---|---|---|
0_preprocess.py |
preprocess | bash flow.sh preprocess |
1_sbs.py |
sbs | bash flow.sh sbs |
2_phenotype.py |
phenotype | bash flow.sh phenotype |
3_merge.py |
merge | bash flow.sh merge |
4_classify.py |
(no module; writes the classifier settings aggregate uses) | — |
5_aggregate.py |
aggregate | bash flow.sh aggregate |
6_cluster.py |
cluster | bash flow.sh cluster |
7_analyze.py |
mozzarellm (optional, calls a paid LLM API) | bash flow.sh mozzarellm |
bash flow.sh --help lists every option.
The brieflow-auto Claude Code plugin can drive this template end to end: it fills the notebook parameters from screen.yaml, runs each module, and checks its QC.
Install it from inside Claude Code:
/plugin marketplace add cheeseman-lab/brieflow-auto
/plugin install brieflow-auto@brieflow-auto
We welcome community contributions to Brieflow! Feel free to:
- Give Brieflow a star to boost its visibility!
- Ask questions and share approaches in GitHub Discussions.
- File a GitHub issue to share comments and issues. We aim to keep brieflow-related issues in the main Brieflow repository.
- Clone the repository, create a new branch, and submit a pull request.
Make sure to review the Brieflow development guide to understand how to best contribute!
