explosig-connect-0.0.7
توضیحات
Send data to ExploSig
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | explosig-connect-0.0.7 |
| نام | explosig-connect |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mark Keller |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/lrgr/explosig-connect |
| آدرس اینترنتی | https://pypi.org/project/explosig-connect/ |
| مجوز | - |
[](https://travis-ci.org/lrgr/explosig-connect)
[](https://pypi.org/project/explosig-connect/)
[](https://colab.research.google.com/github/lrgr/explosig-connect/blob/master/examples/colab-demo.ipynb)
## ExploSig Connect
Helpers for sending data from a Python environment to [ExploSig](https://github.com/lrgr/explosig) (via [ExploSig Server](https://github.com/lrgr/explosig-server)) for web-based interactive visualization.
- [Documentation](https://lrgr.github.io/explosig-connect/)
- [Open in Colab](https://colab.research.google.com/github/lrgr/explosig-connect/blob/master/examples/colab-demo.ipynb)
### Installation
```sh
pip install explosig-connect
```
### Example Usage - Connecting to an existing session
```python
>>> from explosig_connect import connect
>>> # Connect using a session ID supplied by ExploSig.
>>> session_id = 'af6242f3'
>>> conn = connect(session_id)
>>> # Obtain the SBS mutation counts matrix associated with the session.
>>> sbs_counts_df = conn.get_mutation_category_counts('SBS')
>>> # You run some custom code to derive better signature exposures.
>>> exposures_df = my_exposures_computation_method(sbs_counts_df)
>>> # Send the new exposures back to ExploSig for visualization.
>>> conn.send_exposures('SBS', exposures_df)
```
### Example Usage - Starting a new session
```python
>>> from explosig_connect import connect
>>> # Start a new 'empty' session with no samples, signatures, etc. selected.
>>> # This will attempt to open ExploSig in a new browser tab that starts the session.
>>> conn = connect()
>>> # Send an SBS mutation counts matrix to visualize.
>>> conn.send_mutation_category_counts('SBS', my_sbs_counts_df)
>>> # Send an exposures matrix to visualize.
>>> conn.send_exposures('SBS', my_sbs_exposures_df)
>>> # Send a signatures matrix to visualize.
>>> conn.send_signatures('SBS', my_sbs_signatures_df)
```
### Development
Build and install from the current directory.
```sh
python setup.py sdist bdist_wheel && pip install .
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.22.0 | requests |
| >=0.25.1 | pandas |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl explosig-connect-0.0.7:
pip install explosig-connect-0.0.7.whl
نصب پکیج tar.gz explosig-connect-0.0.7:
pip install explosig-connect-0.0.7.tar.gz