Gene Enrichment with BRAD
BRAD Enrichment is a command-line tool to generate a report for gene enrichment analysis based on a gene set and targeted literature database. The tool uses a BRAD Agent to identify the contextual significance of enrichment terms and databases based upon custom a custom literature database. This repository contains command line tools brad-builddb and brad-enrichment for building literature databases and generating reports.
Quickstart
Run the following commands to install this tool:
pip install brad-enrichment
brad-builddb --help
brad-enrichment --help
See below for detailed list on installing this code.
Installation
To install BRAD Enrichment, activate your conda environment from the BRAD repository and install the following two packages:
conda activate BRAD
pip install BRAD-Agent
pip install brad-enrichment
Usage
Gene Enrichment Analysis
To perform gene enrichment analysis, use the following command:
brad-enrichment <gene_string> [OPTIONS]
Arguments
<gene_string>: A string containing gene names separated by spaces or commas.
Options
--databases,-d: List of databases to use for enrichment (default: KEGG, GO, PanglaoDB).--threshold-p-value,-p: P-value threshold for enrichment results (default: 0.05).--minimum-enrichment-terms,-min: Minimum number of enrichment terms to report (default: 3).--maximum-enrichment-terms,-max: Maximum number of enrichment terms to report (default: 10).--literature-database,-l: Path to the literature database (default:../databases/enrichment_database).--output,-o: Output file name for results (default:enrichment_results.xlsx).--query,-q: Custom query for enrichment analysis (default: standard query).--verbose,-v: Enable verbose mode for debugging and logging.
Example Usage
brad-enrichment "TP53, MYC, EGFR" -d KEGG_2021_Human -p 0.01 -o my_results.xlsx
Building an Enrichment Literature Database
To build an enrichment literature database, use the following command:
brad-builddb [OPTIONS]
Options
--documents-directory,-d: Path to the directory containing document files (default:documents).--database-directory,-D: Path to the directory where the database should be stored (default:databases).--database-name,-n: Name of the database to be created (default:enrichment_database).--text-size,-s: Size of text chunks for processing (default: 700).--text-overlap,-o: Number of overlapping characters between chunks (default: 100).--verbose,-v: Enable verbose output.
Example Usage
brad-builddb -d /path/to/documents -D /path/to/databases -n my_database -s 500 -o 50 -v
Development Setup
If you wish to contribute or modify the tool, follow these steps:
git clone https://github.com/Jpickard1/BRAD-Enrichment.git
cd BRAD-Enrichment
pip install -e .
Citation
If you use this tool in your research, please cite or paper Language Model Powered Digital Biology with BRAD as:
@article{pickard2024language,
title={Language Model Powered Digital Biology with BRAD},
author={Pickard, Joshua and Prakash, Ram and Choi, Marc Andrew and Oliven, Natalie and
Stansbury, Cooper and Cwycyshyn, Jillian
and Gorodetsky, Alex and Velasquez, Alvaro and Rajapakse, Indika},
journal={arXiv preprint arXiv:2409.02864},
url={https://arxiv.org/abs/2409.02864},
year={2024}
}
Metadata
Release files for brad-enrichment 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brad_enrichment-0.1.1.tar.gz | 16.6 kB | Without provenance | Details for brad_enrichment-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brad_enrichment-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for brad_enrichment-0.1.1-py3-none-any.whl |
Total release size: 34.0 kB
Release files / brad_enrichment-0.1.1.tar.gz
| Download URL | brad_enrichment-0.1.1.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d242eef51f3c8d94c7a6264eb5723ecc544a8ffb207c88a6c07bfc656ae2e66c
|
|
BLAKE2b-256 checksum How to use checksums |
f026227c6f1d20bfc06c4b149c504e74c7a912da4d6442b227a35cd1dcb63ede
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / brad_enrichment-0.1.1-py3-none-any.whl
| Download URL | brad_enrichment-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14956b94da547d33f2890a863e86a4addedb8f96bb87384d6fa546160db1d09d
|
|
BLAKE2b-256 checksum How to use checksums |
a688a5b33fbaa168a858d5ee13339e96cc0e6e49aba1d33ec2c937f054d32ae1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for brad-enrichment 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.