A Python wrapper for the BEDATAHIVE API
Project description
be-datahive
Python library for the BE-dataHIVE API.
Installation
be_datahive
is available on
PYPI. Install with pip
:
pip install be_datahive
Get Started
Create an api
object for interacting with the API:
from be_datahive import be_datahive
api = be_datahive()
Obtain efficiency & bystander data:
efficiency_data = api.get_efficiency()
bystander_data = api.get_bystander()
Convert efficiency & bystander data into machine-ready arrays:
ef_features, ef_target = api.get_efficiency_ml_arrays(efficiency_data, encoding='one-hot')
by_features, by_target = api.get_bystander_ml_arrays(bystander_data, encoding='one-hot')
API Documentation
The Python wrapper uses the BE-dataHive API which is accessible at the endpoint (https://be-server.herokuapp.com). The detailed API documentation, describing all endpoints, query parameters, and response schema, can be viewed here.
Troubleshooting
If you encounter any issues while using the be_datahive
library, please refer to the common issues listed below:
- Installation issues: Make sure you have the latest version of
pip
and Python installed. Usepip install --upgrade pip
to upgrade pip if necessary. - API Connection Errors: Check your internet connection and ensure that the API endpoint (https://be-server.herokuapp.com) is reachable.
- Data Retrieval Issues: Ensure that you are using the correct function names and parameters as outlined in the documentation.
If your issue is not listed here or you need further assistance, please open an issue on GitHub or reach out directly.
Reporting Issues
If you have any problems, you can open an issue on GitHub in the following format:
Title: [Brief description of the issue]
Description:
- Summary: A detailed description of the issue.
- Steps to Reproduce: Step-by-step instructions to reproduce the issue.
- Expected Result: What you expected to happen.
- Actual Result: What actually happened.
- Software: Operating system and Python version.
- Additional Information: Any other information that may help us resolve the issue.
Alternatively, you can reach out directly to Lucas Schneider at lucas.schneider@cs.ox.ac.uk.
Citation
When using the BE-dataHIVE API, please cite our paper as outlined below.
@article{Schneider.2023,
title = "BE-dataHIVE: a Base Editing Database",
author = "Lucas Schneider, Peter Minary",
year = "2024",
}
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
File details
Details for the file be_datahive-0.1.1.tar.gz
.
File metadata
- Download URL: be_datahive-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 202d95f4c39bf4f432f6b4f82321a3082d5ec182647a468edde4b56799312d0d |
|
MD5 | 6c11439b13b3b42eac51b1ef6461b668 |
|
BLAKE2b-256 | 7af62c9ebeb4cd257f86198464cf00a4de5c80df3e2e34b05a13fabd715b3d79 |
File details
Details for the file be_datahive-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: be_datahive-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f043123fa68ed69159761748f9ad2ee2355f374457c9abf1aff47627b0a1dc3a |
|
MD5 | 6e1a518fbaafb744d6e59c81a5e64e2b |
|
BLAKE2b-256 | e238761f71ff9b2614e07aab33658a02fcb902e7ef4624eb483fe3d2899c3685 |