EnigmaDB
Dataset generation pipeline for Enigma2 using NCBI database. Along with additional helper such as Dataset class to retireve & create batches for training ML models.
Prerequisites
Before setting up EnigmaDB, ensure that you have the following prerequisites installed:
- Python 3.8 or higher
- pip (Python package installer)
Dependencies
Installation
1. From PyPI
pip install enigmadatabase
2. Clone the Repo
git clone https://github.com/delveopers/EnigmaDataset.git
cd EnigmaDB
Documentation & Usage
Data gathering pipeline
from EnigmaDB import Database, EntrezQueries
queries = EntrezQueries() # get queries
db = Database(topics=queries(), out_dir="./data/raw", email=EMAIL, api_key=API_KEY, retmax=1500, max_rate=10) # set parameters
db.build(with_index=False) # startbuilding
Creating Indexes
from EnigmaDB import create_index
create_index("./data/raw") # add path to data
Converting versions
from EnigmaDB import convert_fasta
convert_fasta(input_dir="./data/raw", output_dir="./data/parquet", mode='parquet') # for parquet
convert_fasta(input_dir="./data/raw", output_dir="./data/parquet", mode='csv') # for csv
for more technical information, refer to documentation:
Project Structure
├── docs/
├── ├── Database.md
├── ├── Dataset.md
├── src/
├── ├── __init__.py
├── ├── _database.py # ``Database`` class for downloading data from NCBI
├── ├── _dataset.py # ``Dataset`` a dataloader class for enigma2
├── ├── _queries.py # contains queries for DB pipeline
├── README.md
├── setup.py
├── pyproject.toml
├── requirements.txt # List of Python dependencies
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
-
Fork the repository.
-
Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature"
- Push to the branch:
git push origin feature-name
- Create a pull request.
Please make sure to update tests as appropriate.
License
MIT License. Check out License for more info.
Metadata
Release files for enigmadatabase 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 |
|---|---|---|---|---|
| enigmadatabase-0.1.1.tar.gz | 18.2 kB | Without provenance | Details for enigmadatabase-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enigmadatabase-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for enigmadatabase-0.1.1-py3-none-any.whl |
Total release size: 30.2 kB
Release files / enigmadatabase-0.1.1.tar.gz
| Download URL | enigmadatabase-0.1.1.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33537bccc093acad6f49af5ce23ab463bcb4b29220d6f30b158c5a2e54e57f31
|
|
BLAKE2b-256 checksum How to use checksums |
54b6b108da375acc90e5663df9b9a1c68f332e93478c83ee672ccff9a98a0b99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / enigmadatabase-0.1.1-py3-none-any.whl
| Download URL | enigmadatabase-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
484367ff2c47f7cadae90f8078fe71d25a81e0727b33c268f40122c958728cba
|
|
BLAKE2b-256 checksum How to use checksums |
c28b84f3961398e934eb56e6274db74cbb7b05fe20e43466d3611b2ed7645a27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for enigmadatabase 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.