Installation#
This section describes steps to install BALSAMIC (version = 16.0.0)
Software Requirements#
Conda >=version 4.5.0: For detailed software and python requirements please see
setup.py
andBALSAMIC/conda/balsamic.yaml
Singularity >=version 3.0.0: BALSAMIC uses singularity to run various parts of the workflow.
Python 3.11
BALSAMIC is dependent on third-party bioinformatics software
Sentieon-tools
for all workflows.
Note: To run Balsamic you need to supply the --sentieon-install-dir and --sentieon-license arguments during the config
Step 1. Installing BALSAMIC#
Create a conda environment:
conda create -c conda-forge -c defaults --name S_balsamic python==3.11 pip pygraphviz wkhtmltopdf
Activate environment:
conda activate S_BALSAMIC
Install BALSAMIC using
pip
within the newly created environment:
pip install --no-cache-dir -U git+https://github.com/Clinical-Genomics/BALSAMIC
Or if you have repository cloned and want it in editable mode:
pip install -e .
Step 2. generate BALSAMIC cache and pull containers#
First generate your own COSMIC database key via: https://cancer.sanger.ac.uk/cosmic/register
The following commands will create and download reference directory at ~/balsamic_cache
(change this path if you
want it to be created in another location):
NOTE: This process can take couple of hours
# Note:
# 1. COSMIC key is in variable $COSMIC_KEY
# 2. For genome version hg38, set --genome-version to hg38
# 3. For using develop container version, set --cache-version to develop
# 4. For submitting jobs to slurm cluster, use option --account
balsamic init --outdir ~/balsamic_cache \
--cosmic-key "${COSMIC_KEY}" \
--genome-version hg19 \
--run-analysis \
--account development
# Generate cache locally instead of slurm job submission
balsamic init --outdir ~/balsamic_cache \
--cosmic-key "${COSMIC_KEY}" \
--genome-version hg19 \
--run-analysis \
--run-mode local \
--snakemake-opt "--cores 16"