Your lab's samples, freezers, notebooks and shipments in one place — instead of twenty spreadsheets.
Install in 5 minutes · What you can do · Screenshots · Documentation · Roadmap
Demo lab with fictional data (biobank-local setup --demo).
B3 LIMS is an open-source laboratory information system for biological sample collections — bacteria, phages, plasmids and, increasingly, other kinds of material. It was born in the CEPID B3 research center (bacteria and bacteriophage biology) to make samples traceable, governed and easy to share, and it is built so that any lab can run it on its own computer or server. It does not need a cluster, Slurm or institutional accounts; those stay optional.
| Module | In one line | |
|---|---|---|
| 🧫 | Samples | Register bacteria, phages, plasmids and more with typed fields, lineage, QR labels and sample tables you can fill in Excel. |
| ❄️ | Storage | Freezers, racks, boxes and compartments drawn on screen; click a position to place a sample; move boxes between workspaces. |
| 📓 | Electronic lab notebook | Experiments and protocols with templates, signatures that lock an entry, revisions, tags and links to the samples they used. |
| 🧬 | Molecular registry | DNA, RNA, plasmids, primers and proteins: maps, annotations, digests, primer Tm calculator, alignments, 3D structure. |
| ⚗️ | Chemicals | Reagent inventory, governance and stock movements. |
| 📦 | Shipments & compliance | Shipment planning, receipt, labels and the transport documents (MTA/TTM, biosafety, GMO/CIBio) your institution asks for. |
| 📅 | Calendar & history | Equipment booking, and one place to see who did what to which sample. |
| 🔬 | Reference data | Local taxonomy, GTDB and ICTV virus indexes to name organisms consistently, without calling a web service. |
| 🌐 | Public catalog | Optionally publish chosen collections as a read-only public page. |
Access is role-based (biobank, collection, research group), and every download and export goes through a permission check.
Pick the way that suits you. All three give you the same application, and none needs a cluster.
You need Python 3.12 or newer.
pipx install "git+https://github.com/leepusp/b3lims.git"
biobank-local setup # four questions: data folder, database, administrator, network
biobank-local run # then open http://127.0.0.1:8000/Add --demo to setup to load a small fictional lab to explore (user demo).
git clone https://github.com/leepusp/b3lims.git && cd b3lims
BIOBANK_ADMIN_PASSWORD='choose-a-long-password' docker compose up -dOpen http://localhost:8000/ and sign in as admin. Your data lives in the biobank-data volume. For PostgreSQL add --profile postgres (see the comments in docker-compose.yml).
git clone https://github.com/leepusp/b3lims.git && cd b3lims
python -m venv .venv && . .venv/bin/activate
pip install -e .
biobank-local setup && biobank-local run
python manage.py test --settings=biobank.test_settings # about a minute| Command | What it does |
|---|---|
biobank-local start |
Start the application and open the browser (run starts it without opening) |
biobank-local shortcut |
Create a desktop / menu icon that starts B3 LIMS |
biobank-local manual |
Short guide to using B3 LIMS |
biobank-local run |
Start the application (add --host 0.0.0.0 to let other computers in your network open it) |
biobank-local backup |
Archive the database folder, uploaded files and settings |
biobank-local migrate |
Update the database after installing a newer version |
biobank-local createuser NAME |
Add or reset an administrator |
biobank-local doctor |
Check the installation |
Details, PostgreSQL, sharing with the rest of the lab, HTTPS and upgrades: docs/install.md.
The version at CEPID B3 runs on the DaVinci cluster with PAM sign-in, Apache, PostgreSQL and Jupyter servers started through Slurm. That is one deployment profile of the same code, not a requirement. If you do want it — Slurm-launched Jupyter, shared reference indexes, PAM accounts, Gunicorn behind a reverse proxy — see docs/hpc.md and docs/operations/production.md.
| Install and upgrade | pip, Docker, PostgreSQL, sharing in your network, backups |
| User guide | Samples, storage, sample tables, notebook, molecular registry |
| Configuration | Every setting and environment variable |
| Clusters and Slurm (optional) | What to switch on for an HPC deployment |
| Production deployment | Gunicorn, reverse proxy, backups, restores |
| Roadmap | What is planned and in what order |
| Contributing · Security · Changelog |
The documentation is also published as a website (mkdocs serve builds it locally).
flowchart TD
Client["Web browser"] --> App["Django application (waitress or Gunicorn)"]
App --> Static["Static files (WhiteNoise or web server)"]
App --> Database["SQLite or PostgreSQL"]
App --> Files["Plain folders: uploads, sample files, notebook attachments"]
App -. optional .-> Cluster["PAM, Slurm and Jupyter (HPC deployments)"]
App -. optional .-> Online["NCBI, PubChem, RCSB, Zenodo (online services)"]
Two settings profiles share one code base: biobank.standalone_settings (a single computer or lab server, the default of biobank-local) and biobank.settings (the institutional deployment).
biobank/
├── biobank/ # settings (standalone and institutional), URLs, the biobank-local command
├── core/
│ ├── interfaces/ # templates
│ ├── static/ # CSS, JavaScript, vendored libraries
│ ├── models/ # domain models by feature
│ ├── permissions/ # all authorization rules
│ ├── services/ # business logic
│ ├── views/ # request handlers
│ ├── resources/ # forms and templates that ship with the package
│ └── management/commands/ # seed_demo, build_*_index, maintenance
├── bench/ # Lab Calendar, equipment booking, tools
├── docs/ # documentation and screenshots
├── deploy/ # institutional deployment (Apache, systemd, PAM) — optional
├── Dockerfile, docker-compose.yml, pyproject.toml
└── manage.py
Biobank is under active development and is used in production at CEPID B3. The local installation path is new: please open an issue if something does not work on your machine. Sample records are sensitive; keep real data, credentials and config.env out of Git, issues and screenshots.
Contributions are welcome: see CONTRIBUTING.md. English is the language of the code, interface and documentation.
Biobank is free software under the GNU Affero General Public License v3.0: you may use, study, change and share it; if you run a modified version as a service for others, you must offer them its source.
Developed within CEPID B3 — FAPESP.









