A Snakemake storage plugin to read and write from Azure Blob Storage
Project description
Snakemake Storage Plugin Azure
Azure Blob Storage plugin for snakemake. For documentation and usage instructions, see the Snakemake Plugin Catalog.
Testing
Testing this plugin locally require the azurite storage emulator to be running locally. This can be setup using the following docker run command:
docker run -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0
Then execute the tests:
poetry run coverage run -m pytest tests/tests.py
Example
The below example Snakefile and command will stream a file, test.txt, containing the text "Hello, World" to the azure blob: https://accountname.blob.core.windows.net/container/test.txt
rule touch:
output: "test.txt"
shell:
"echo 'Hello, World!' > {output}"
Command:
The storage account and container that the output file is streamed to is specified using the default-storage-prefix.
snakemake -j1 \
--default-storage-provider azure \
--default-storage-prefix "az://container"
--storage-azure-account-name accountname \
--verbose
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snakemake_storage_plugin_azure-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3fd1479d3a2f3447891dbd27b84aeb7380f526b68147d7d8f7aceda14bda62 |
|
MD5 | ce01d0c92e70f3c8fcd552f0c5b20272 |
|
BLAKE2b-256 | a20a579784cc99b0e1538d7997a65fc0147c71cdc085670648b9813e9ed0a100 |
Hashes for snakemake_storage_plugin_azure-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472107ee3b8de21f63ee2e073866a412e9267bf5f41e8d8a26b4ae0f962dd3de |
|
MD5 | 34ddf099445545bc19efc7ee866b1781 |
|
BLAKE2b-256 | 81d4a4c98d56d71406ecc1f80990bfdf53f6d479973de3c5392118ea840158f6 |