DEBase
DEBase is a Python package for extracting and analyzing enzyme lineage data from scientific papers using AI-powered parsing.
Features
- Extract enzyme variant lineages from PDF documents
- Parse protein and DNA sequences with mutation annotations
- Extract reaction performance metrics (yield, TTN, ee)
- Extract and organize substrate scope data
- Match enzyme variants across different data sources using AI
- Generate structured CSV outputs for downstream analysis
Installation
pip install debase
Quick Start
# Run the complete pipeline
debase --manuscript paper.pdf --si supplementary.pdf --output results.csv
# Enable debug mode to save Gemini prompts and responses
debase --manuscript paper.pdf --si supplementary.pdf --output results.csv --debug-dir ./debug_output
# Individual components with debugging
python -m debase.enzyme_lineage_extractor --manuscript paper.pdf --output lineage.csv --debug-dir ./debug_output
python -m debase.reaction_info_extractor --manuscript paper.pdf --lineage-csv lineage.csv --output reactions.csv --debug-dir ./debug_output
python -m debase.substrate_scope_extractor --manuscript paper.pdf --lineage-csv lineage.csv --output substrate_scope.csv --debug-dir ./debug_output
python -m debase.lineage_format -r reactions.csv -s substrate_scope.csv -o final.csv -v
Debugging
Use the --debug-dir flag to save all Gemini API prompts and responses for debugging:
- Location extraction prompts
- Sequence extraction prompts (can be very large, up to 150K characters)
- Enzyme matching prompts
- All API responses with timestamps
- Note: lineage_format.py uses
-vfor verbose output instead of--debug-dir
Requirements
- Python 3.8+
- Google Gemini API key (set as GEMINI_API_KEY environment variable)
Version
0.4.4
License
MIT License
Authors
DEBase Team - Caltech
Contact
Metadata
Release files for debase 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| debase-2.1.0.tar.gz | 962.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| debase-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / debase-2.1.0.tar.gz
| Download URL | debase-2.1.0.tar.gz |
|---|---|
| Size | 962.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd75a2e16ace6c83ac3976175bb77c1c2e116a022a22f1ae894b86b07774996e
|
|
BLAKE2b-256 checksum How to use checksums |
1bd8103549c5173034beac750b0b1f1267a79b002fec9f4f122a0089eb923791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / debase-2.1.0-py3-none-any.whl
| Download URL | debase-2.1.0-py3-none-any.whl |
|---|---|
| Size | 173.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82bffb16a8259d87fcf250324a1467c6ccf8fb55f9b1bc823b379929a3297e7c
|
|
BLAKE2b-256 checksum How to use checksums |
504902ebb78153a83f0a23433716e910344619937cc7f5743310535345d66187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|