-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
executable file
·71 lines (43 loc) · 1.78 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
app_name = enviroms
parameters_path = data/enviroms.toml
# change the path to your data path /Users/eber373/Desenvolvimento/enviroms
data_dir = /Users/eber373/Development/enviroms/data
configuration_dir = /Users/eber373/Development/enviroms/configuration
version := $(shell cat .bumpversion.cfg | grep current_version | cut -d= -f2 | tr -d ' ')
stage := $(shell cat .bumpversion.cfg | grep optional_value | cut -d= -f2 | tr -d ' ')
cpu:
pyprof2calltree -k -i $(file)
mem:
mprof run --multiprocess $(script)
mprof plot
major:
@bumpversion major --allow-dirty
minor:
@bumpversion minor --allow-dirty
patch:
@bumpversion patch --allow-dirty
install:
venv/bin/pip3 install --editable .
run:
venv/bin/pip3/enviroMS run_di_workflow $(parameters_path)
pypi:
@python3 setup.py sdist
@twine upload dist/*
docker-push:
@echo corilo/enviroms:$(version)
@docker build --no-cache -t corilo/enviroms:$(version) .
@docker push corilo/enviroms:$(version)
@docker image tag corilo/enviroms:$(version) corilo/enviroms:latest
@docker push corilo/enviroms:latest
@docker image tag corilo/enviroms:$(version) microbiomedata/enviroms:$(version)
@docker push microbiomedata/enviroms:$(version)
@docker image tag corilo/enviroms:$(version) microbiomedata/enviroms:latest
@docker push microbiomedata/enviroms:latest
docker-build:
docker build -t enviroms:local .
docker-run:
docker run -v $(data_dir):/enviroms/data -v $(configuration_dir):/enviroms/configuration microbiomedata/enviroms:latest run-di /enviroms/configuration/enviroms.toml
cascade-run:
srun -A mscms -t 240 -N 1 -n time enviroMS run-di -r 2 --mpi /dtemp/mscms/enviroms/data/configuration/enviroms.toml
wdl-run :
miniwdl run wdl/enviroMS.wdl -i wdl/enviroms_input.json --verbose --no-cache --copy-input-files