Tiny protein-function classifier distilled from ProteinMPNN, for edge deployment.
Project description
capiti
Tiny protein-function classifier for edge deployment. Given a nucleotide sequence encoding a protein, capiti flags whether the encoded protein is expected to retain the enzymatic function of one of a small reference set.
Weighs ~1 MB on disk, runs inference in tens of milliseconds on a Raspberry Pi. Trained by distilling ProteinMPNN's function-preserving design prior into a small 1D CNN.
Overview (each ResidualDilatedBlock collapsed to one box):
Inside one ResidualDilatedBlock:
See docs/capiti.summary.txt for the full
per-layer size / FLOP table.
Install
pip install capiti
Use
capiti ATGCGTAAAGTGGCC... # prints TRUE or FALSE (default set ab9)
capiti ATGCGT... --cutoff 0.8 -v # TRUE p_inset=0.995
capiti --fasta seqs.fa # batch over a FASTA
echo ATGCGT... | capiti --stdin
Reference sets
capiti ships multiple bundled reference sets, selectable at invocation
time. Use --set NAME (or the CAPITI_SET env var).
| set | status | description |
|---|---|---|
ab9 |
available | 9 soluble enzymes (several beta-lactamases relevant to antibiotic resistance, plus other enzymes). Default. |
C |
planned | TBA. |
E |
planned | TBA. |
capiti ATGCGT... --set ab9
capiti --fasta seqs.fa --set C
CAPITI_SET=E capiti --stdin
Exit code is 0 on TRUE, 1 on FALSE, suitable for shell pipelines:
capiti ATGCGT... && echo "in set" || echo "not in set"
Status
The 0.0.x line is research-grade. The CLI surface (flags, stdin/FASTA behaviour, exit codes) is stable; bundled models will be retrained and updated between 0.0.x releases, and should not be used for anything operational.
License
MIT.
Project details
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 capiti-0.0.4.tar.gz.
File metadata
- Download URL: capiti-0.0.4.tar.gz
- Upload date:
- Size: 859.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02c49f300d1ac3432309c30508681c5755130338775290fd0f1a2cb7f36eb423
|
|
| MD5 |
56dbe4f59e2c290290653e97cecf48fb
|
|
| BLAKE2b-256 |
427f66e41e2629e3af1a700e279b8e1256489f235ed754fe089bdd2403993780
|
File details
Details for the file capiti-0.0.4-py3-none-any.whl.
File metadata
- Download URL: capiti-0.0.4-py3-none-any.whl
- Upload date:
- Size: 858.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b5a33c2d9e4454071d23115317d4f564dd05aabb4518a80430ed5dd69f39acd
|
|
| MD5 |
449a24a60dbea63fc01aaffe8fad8ea0
|
|
| BLAKE2b-256 |
df97c83eb06ebab97a03ef60dcc7f9f51ed956f574e47ecb14cdab978ea85efc
|