forked from widdowquinn/pyani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (68 loc) · 2.82 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Makefile
#
# This file is part of the pyani package distribution
# (https://github.com/widdowquinn/pyani)
# Install conda dependencies
setup_conda:
@conda install --file requirements-dev.txt --yes
@conda install --file requirements.txt --yes
@conda install --file requirements-pyqt-conda.txt --yes
setup_conda_macos:
@conda install --file requirements-thirdparty-macos.txt --yes
@conda install --file requirements-fastani-macos.txt --yes
setup_conda_linux:
@conda install --file requirements-thirdparty-linux.txt --yes
@conda install --file requirements-fastani-linux.txt --yes
# Install pip dependencies
setup_pip:
@pip install -r requirements-pip.txt
# Install dependencies, but not pre-commit
setup_dependencies_macos: setup_conda setup_conda_macos setup_pip
@pip install -U -e .
setup_dependencies_linux: setup_conda setup_conda_linux setup_pip
@pip install -U -e .
# Set up all development dependencies and pre-commit in the current conda environment
setup_env_macos: setup_conda setup_conda_macos setup_pip
@pre-commit install
@pip install -U -e .
setup_env_linux: setup_conda setup_conda_linux setup_pip
@pre-commit install
@pip install -U -e .
# Run all tests and display coverage report in a browser
test:
@python -m pytest --cov-report=html --cov=pyani -v tests/ && open htmlcov/index.html
# Build and display documentation
docs: clean_docs
@cd docs && make html && open _build/html/index.html
# Clean up test, walkthrough, and coverage output
clean: clean_walkthrough clean_tests clean_coverage
clean_coverage:
@rm -rf htmlcov
clean_docs:
@rm -rf docs/_build/html
clean_tests:
@rm -rf tests/test_output/*
clean_walkthrough:
@rm -rf C_blochmannia
@rm -rf C_blochmannia_ANIm
@rm -rf .pyani/pyanidb
# Run walkthrough
walkthrough: clean_walkthrough
pyani download --email [email protected] -t 203804 -o C_blochmannia
pyani createdb -f
pyani anim -i C_blochmannia -o C_blochmannia_ANIm \
--name "C. blochmannia run 1" \
--labels C_blochmannia/labels.txt --classes C_blochmannia/classes.txt
pyani report --runs -o C_blochmannia_ANIm/ --formats html excel stdout
pyani report --run_results 1 --formats html excel stdout -o C_blochmannia_ANIm/
pyani report --run_matrices 1 --formats html excel stdout -o C_blochmannia_ANIm/
pyani plot --formats png pdf --method seaborn -o C_blochmannia_ANIm --run_id 1
# pyani anib C_blochmannia C_blochmannia_ANIb \
# --name "C. blochmannia run 2" \
# --labels C_blochmannia/labels.txt --classes C_blochmannia/classes.txt
# pyani report --runs C_blochmannia_ANIb/ --formats html,excel,stdout
# pyani report --run_results 2 --formats html,excel,stdout C_blochmannia_ANIb/
# pyani report --run_matrices 2 --formats html,excel,stdout C_blochmannia_ANIb/
# pyani plot --formats png,pdf --method seaborn C_blochmannia_ANIb 2
uml:
pyreverse -o pdf -p pyani pyani