Skip to main content

Enzyme lineage analysis and sequence extraction package

Project description

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 -v for 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

ylong@caltech.edu

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

debase-2.0.0.tar.gz (168.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

debase-2.0.0-py3-none-any.whl (168.6 kB view details)

Uploaded Python 3

File details

Details for the file debase-2.0.0.tar.gz.

File metadata

  • Download URL: debase-2.0.0.tar.gz
  • Upload date:
  • Size: 168.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for debase-2.0.0.tar.gz
Algorithm Hash digest
SHA256 41c29fa34aaee1f349fcf5bb17a7d8eb60a3239320f31710ffb4bdb7f6c0ef5e
MD5 abba65c42240b298e7e954e9b624d629
BLAKE2b-256 72805aada383fac5f2d654f127a5a6a5a7f652a4d2df1cdc8b161b0fc1cd74d6

See more details on using hashes here.

File details

Details for the file debase-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: debase-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 168.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for debase-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87dacea5a0ecb7b211273b767429747e9fa6fc8fe526fa7c5b9565d3e54383d1
MD5 14d4b2e9aa6e303238ad05de2a7ca9ed
BLAKE2b-256 48c582b81b34a280a6cf87b194d4402dbdae99f008b3e99f376b2c01be9c8198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page