-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
68 lines (52 loc) · 1.63 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
SIMSI_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(SIMSI_DIR)MakefileShared
dependencies:
git config --global credential.helper cache
jump:
$(DOCKER_CMD) \
$(IMAGE) bash
# --no-cache
build: dependencies
docker build -f Dockerfile -t $(IMAGE) . || (exit 1)
package_build:
poetry build
publish_test:
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi
publish:
poetry publish
run_simsi_transfer: rm_err_file
$(DOCKER_CMD) \
$(IMAGE) python3 -u -m simsi_transfer \
--mq_txt_folder /root/data/combined/txt \
--raw_folder /root/data \
--output_folder /root/data/simsi_output \
--stringencies 20,15 \
--tmt_requantify \
${EXTRA_ARGS} \
|| (echo "2" > $(DATA)err.out; exit 2)
compress: run_simsi_transfer
zip -j -r -9 "$(DATA)/results.zip" "$(DATA)/simsi_output/summaries" || (echo "3" > $(DATA)err.out; exit 3)
all: compress
clean_data_folder:
rm -rf "$(DATA)/{proc,msms,percolator,mzML,msms.prosit}"
integration_test:
python3 -um simsi_transfer \
--mq_txt_folder ${DATA}/combined/txt/ \
--raw_folder ${DATA} \
--output_folder ${DATA}/simsi_output_integration_test \
--cache_folder ${DATA}/simsi_output \
--num_threads 3 \
--stringencies 20,15 \
${EXTRA_ARGS}
integration_test_meta:
python3 -um simsi_transfer \
--meta_input_file ${DATA}/meta_input_file.txt \
--output_folder ${DATA}/simsi_output_integration_test_meta \
--cache_folder ${DATA}/simsi_output \
--num_threads 3 \
--stringencies 20,15 \
--tmt_requantify \
${EXTRA_ARGS}
test:
python3 -m pytest --cov=simsi_transfer --cov-report html --cov-report term tests/unit_tests