# be-datahive
[](https://pypi.python.org/pypi/be_datahive)
Python library for the [BE-dataHIVE
API](https://be-datahive.com/documentation.html).
# Installation
`be_datahive` is available on
[PYPI](https://pypi.python.org/pypi/be_datahive/). Install with `pip`:
``` bash
pip install be_datahive
```
# Get Started
Create an `api` object for interacting with the API:
``` python
from be_datahive import be_datahive
api = be_datahive()
```
Obtain efficiency & bystander data:
``` python
efficiency_data = api.get_efficiency()
bystander_data = api.get_bystander()
```
Convert efficiency & bystander data into machine-ready arrays:
``` python
ef_features, ef_target, variable_info = api.get_efficiency_ml_arrays(efficiency_data, target_col = "efficiency_full_grna_reported", encoding='hilbert-curve', clean=True, flatten=True)
by_features, by_target, variable_info = api.get_bystander_ml_arrays(bystander_data, encoding='one-hot', bystander_type = 'edited', clean=True, flatten=True)
```
# 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](https://be-datahive.com/documentation.html).
# Troubleshooting
If you encounter any issues while using the `be_datahive` library, please refer to the common issues listed below:
1. **Installation issues**: Make sure you have the latest version of `pip` and Python installed. Use `pip install --upgrade pip` to upgrade pip if necessary.
2. **API Connection Errors**: Check your internet connection and ensure that the API endpoint (https://be-server.herokuapp.com) is reachable.
3. **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**:
1. **Summary**: A detailed description of the issue.
2. **Steps to Reproduce**: Step-by-step instructions to reproduce the issue.
3. **Expected Result**: What you expected to happen.
4. **Actual Result**: What actually happened.
5. **Software**: Operating system and Python version.
6. **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](mailto:lucas.schneider@cs.ox.ac.uk).
# Citation
When using the [BE-dataHIVE
API](https://be-datahive.com/documentation.html), please cite our paper as outlined below.
```bibtex
@article{Schneider.2023,
title = "BE-dataHIVE: a Base Editing Database",
author = "Lucas Schneider, Peter Minary",
year = "2024",
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Lucas749/be_datahive",
"name": "be-datahive",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Lucas Schneider",
"author_email": "lucas.schneider@cs.ox.ac.uk",
"download_url": "https://files.pythonhosted.org/packages/49/66/18404c44b8161f183304b3eff87fbaa2bfd60a8ee65c92f8b4f8a53b36b1/be_datahive-0.1.3.tar.gz",
"platform": null,
"description": "# be-datahive\n\n[](https://pypi.python.org/pypi/be_datahive)\n\nPython library for the [BE-dataHIVE\nAPI](https://be-datahive.com/documentation.html).\n\n# Installation\n\n`be_datahive` is available on\n[PYPI](https://pypi.python.org/pypi/be_datahive/). Install with `pip`:\n\n``` bash\npip install be_datahive\n```\n\n# Get Started\n\nCreate an `api` object for interacting with the API:\n\n``` python\nfrom be_datahive import be_datahive\napi = be_datahive()\n```\n\nObtain efficiency & bystander data:\n\n``` python\nefficiency_data = api.get_efficiency()\nbystander_data = api.get_bystander()\n```\n\nConvert efficiency & bystander data into machine-ready arrays:\n\n``` python\nef_features, ef_target, variable_info = api.get_efficiency_ml_arrays(efficiency_data, target_col = \"efficiency_full_grna_reported\", encoding='hilbert-curve', clean=True, flatten=True)\nby_features, by_target, variable_info = api.get_bystander_ml_arrays(bystander_data, encoding='one-hot', bystander_type = 'edited', clean=True, flatten=True)\n```\n# API Documentation\n\nThe Python wrapper uses the BE-dataHive API which is accessible at the endpoint (https://be-server.herokuapp.com). \nThe detailed API documentation, describing all endpoints, query parameters, and response schema, can be viewed [here](https://be-datahive.com/documentation.html).\n\n\n# Troubleshooting\n\nIf you encounter any issues while using the `be_datahive` library, please refer to the common issues listed below:\n\n1. **Installation issues**: Make sure you have the latest version of `pip` and Python installed. Use `pip install --upgrade pip` to upgrade pip if necessary.\n2. **API Connection Errors**: Check your internet connection and ensure that the API endpoint (https://be-server.herokuapp.com) is reachable.\n3. **Data Retrieval Issues**: Ensure that you are using the correct function names and parameters as outlined in the documentation.\n\nIf your issue is not listed here or you need further assistance, please open an issue on GitHub or reach out directly.\n\n# Reporting Issues\n\nIf you have any problems, you can open an issue on GitHub in the following format:\n\n**Title**: [Brief description of the issue]\n\n**Description**:\n1. **Summary**: A detailed description of the issue.\n2. **Steps to Reproduce**: Step-by-step instructions to reproduce the issue.\n3. **Expected Result**: What you expected to happen.\n4. **Actual Result**: What actually happened.\n5. **Software**: Operating system and Python version.\n6. **Additional Information**: Any other information that may help us resolve the issue.\n\nAlternatively, you can reach out directly to Lucas Schneider at [lucas.schneider@cs.ox.ac.uk](mailto:lucas.schneider@cs.ox.ac.uk).\n\n\n# Citation\nWhen using the [BE-dataHIVE\nAPI](https://be-datahive.com/documentation.html), please cite our paper as outlined below. \n\n```bibtex\n@article{Schneider.2023,\n title = \"BE-dataHIVE: a Base Editing Database\",\n author = \"Lucas Schneider, Peter Minary\",\n year = \"2024\",\n}\n```\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python wrapper for the BEDATAHIVE API",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/Lucas749/be_datahive"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a1e4ce32733319380182c637076b795ced2899ef54456797bb48c13cbab6ac77",
"md5": "ada5e0dd272f767c903cba812832a067",
"sha256": "9acff0116b246c650ca9cbc538d2aa76dca35adf1cb8dde5ad6fdfef632f23d0"
},
"downloads": -1,
"filename": "be_datahive-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ada5e0dd272f767c903cba812832a067",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6069,
"upload_time": "2024-08-08T19:49:52",
"upload_time_iso_8601": "2024-08-08T19:49:52.706439Z",
"url": "https://files.pythonhosted.org/packages/a1/e4/ce32733319380182c637076b795ced2899ef54456797bb48c13cbab6ac77/be_datahive-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "496618404c44b8161f183304b3eff87fbaa2bfd60a8ee65c92f8b4f8a53b36b1",
"md5": "32f4221626985f3df6e60c739e0d8fab",
"sha256": "aade67a46d680ec600d3bde0340605f1310a9cd830912988b9ce3fe45198f758"
},
"downloads": -1,
"filename": "be_datahive-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "32f4221626985f3df6e60c739e0d8fab",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6450,
"upload_time": "2024-08-08T19:49:54",
"upload_time_iso_8601": "2024-08-08T19:49:54.125754Z",
"url": "https://files.pythonhosted.org/packages/49/66/18404c44b8161f183304b3eff87fbaa2bfd60a8ee65c92f8b4f8a53b36b1/be_datahive-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-08 19:49:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Lucas749",
"github_project": "be_datahive",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "be-datahive"
}