- genome storage and analysis unit
This package maintains several Snakemake modules and can import Python functions to post-process their output.
the main environment is defined here
mamba env create -p .snakemake/conda/snakemake-g -f https://raw.githubusercontent.com/Hocnonsense/genome/master/genome/pyrule/envs/genome.yaml
conda activate .snakemake/conda/snakemake-g
pip install git+https://github.com/Hocnonsense/genome.gitor with a specific version:
version="0.2.5"
mamba env create -p snakemake-g-$version -f https://raw.githubusercontent.com/Hocnonsense/genome/$version/genome/pyrule/envs/genome.yaml
conda activate snakemake-g-$version
pip install git+https://github.com/Hocnonsense/genome.git@$versionsome post-deploy settings are defined here
to set database for checkm, you should specific a directory (e.g., ~/.checkm):
export CHECKM_DATA_PATH=~/.checkm
wget https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz
tar -zxvf checkm_data_2015_01_16.tar.gz -C $CHECKM_DATA_PATH
checkm data setRoot $CHECKM_DATA_PATHIt is recommended to create a new conda environment for the new version.
from genome.create_conda_env import create_conda_env_gene_clust
create_conda_env_gene_clust()from genome.create_conda_env import list_envs, create_conda_env
create_conda_env(*list_envs())- snakemake
- python
- bash
# normal tests
python -m pytest -vv --cov --cov-report=html
# also run tests with computation-heavily functions e.g. checkm and binning
python -m pytest -vv --cov --cov-report=html -m "not limit_resource"