- Access to the R2DT API via Python
- Display R2DT widget in Jupyter Notebook
- Python 3.9+
- pdm 2.0.0+
You can install R2DT API Client via [pip] from [PyPI]:
$ pip install r2dt-client
Example usage in the code:
from time import sleep
from r2dt_client import setup, submit, update_status_for, fetch_results_for
setup(email="YOUR_EMAIL")
job = submit(
">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")
while not job.done:
update_status_for(job)
sleep(5)
fetch_results_for(job)
print(job.results['fasta'])
Using the widget via Jupyter Notebook:
!pip install r2dt_client
from r2dt_client import setup, draw
setup(email="YOUR_EMAIL")
draw(
">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")
Distributed under the terms of the Apache 2.0, R2DT API Client is free and open source software.
If you encounter any problems, please file an issue along with a detailed description.