<jupyter_start><jupyter_text>Download example dataset+ This workflow will need two-photon calcium imaging data collected from either ScanImage or Scanbox and the processed with Suite2p or CaImAn.  We provide an example dataset to be downloaded to run through the workflow. This notebook walks you through the process to download the dataset. Install `djarchive-client`+ The example dataset is hosted on `djarchive`, an AWS storage.+ We provide a client package, [djarchive-client](https://github.com/datajoint/djarchive-client), to download the data which can be installed with pip:<jupyter_code>pip install git+https://github.com/datajoint/djarchive-client.git<jupyter_output><empty_output><jupyter_text>Download calcium imaging example datasets using `djarchive-client`<jupyter_code>import djarchive_client
client = djarchive_client.client()<jupyter_output><empty_output><jupyter_text>Browse the datasets that are available on `djarchive`:<jupyter_code>list(client.datasets())<jupyter_output><empty_output><jupyter_text>Each of the datasets have different versions associated with the version of the `workflow-calcium-imaging` package. Browse the revisions:<jupyter_code>list(client.revisions())<jupyter_output><empty_output><jupyter_text>To download the dataset, let's prepare a root directory, for example in `/tmp`:<jupyter_code>mkdir /tmp/example_data<jupyter_output><empty_output><jupyter_text>Get the dataset revision with the current version of `workflow-calcium-imaging`:<jupyter_code>from workflow_calcium_imaging import version
revision = version.__version__.replace('.', '_')
revision<jupyter_output><empty_output><jupyter_text>Run download for a given dataset and revision:<jupyter_code>client.download('workflow-calcium-imaging-test-set', target_directory='/tmp/example_data', revision=revision)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08967391304347826, 'fraction_numerical': 0.0005434782608695652, 'mean_word_length': 8.489690721649485, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '66486', 'license': 'MIT', 'n_tokens_mistral': 568, 'n_tokens_neox': 530, 'n_words': 148, 'path': 'notebooks/00-data-download-optional.ipynb', 'repo_name': 'CBroz1/workflow-calcium-imaging', 'size': '1840'}