Installation

AzureStorage is available as a conda package, so conda must be installed on your system.

Conda

Skip this step if you have already installed conda

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
conda update -q conda

AzureStorage

Create new conda environment

conda create -n azure_storage -c olcbioinformatics azure_storage

Install in existing Python 3.8.5 environment

Install the AzureStorage package:

conda install -c olcbioinformatics azure_storage

Credentials

You must enter your Azure storage connection string and account name into the system keyring before running any of the other scripts

Find your connection string

Find your account key

Once you know your account key and connection string, run:

AzureCredentials store

Your credentials will be securely stored in the system keyring

Tests

If you encounter issues with the AzureStorage package, tests are available to ensure that the installation was successful and your credentials are valid.

You will need to clone this repository and run the tests with pytest

git clone https://github.com/OLC-LOC-Bioinformatics/AzureStorage.git

cd AzureStorage

python -m pytest tests/ --cov=azure_storage --cov-config=.coveragec