<jupyter_start><jupyter_text>Download EDD Study From Jupyter NotebookThis notebook illustrates how to use python to export an EDD study into a pandas dataframe for downstream analytics and processing for any bioinformatics workflow.  First the edd_utils module is imported with the required functions to login and export<jupyter_code>from edd_utils import login, export_study<jupyter_output><empty_output><jupyter_text>Each EDD study has a unique identifier called a *slug*. A slug is a string from the end of the URL, between the last two slash signs (``/``). We provide this string to tell our exporter what study to download.Below is an example.<jupyter_code># Study to Download
study_slug = 'automated-sample-preparation-proteomic-varian-2f3d'<jupyter_output><empty_output><jupyter_text>If the desired EDD server is not `edd.jbei.org`, it should be specified (e.g. `public-edd.jbei.org`, `public-edd.agilebiofoundry.org`).<jupyter_code># EDD server
edd_server = 'edd.jbei.org'<jupyter_output><empty_output><jupyter_text>Now we use the `login` function in edd_utils to **Login to EDD** using the default instance (edd.jbei.org)<jupyter_code>session = login(edd_server=edd_server, user=None)<jupyter_output>Password for trad<PASSWORD>:  ················<jupyter_text>Finally we **Download the Study** using the export_study function.  It returns a pandas dataframe that can be manipulated for downstream data analysis.<jupyter_code>df = export_study(session, study_slug, edd_server=edd_server)
df.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09250814332247558, 'fraction_numerical': 0.0013029315960912053, 'mean_word_length': 6.876923076923077, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '439665', 'license': 'BSD-3-Clause-LBNL', 'n_tokens_mistral': 517, 'n_tokens_neox': 491, 'n_words': 158, 'path': 'notebooks/EDD Study Export.ipynb', 'repo_name': 'chimaerase/edd-utils', 'size': '1533'}