-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (45 loc) · 1.25 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
.PHONY: all run_pipeline test tests pre-commit clean tmux
CONFIG_NAME ?= config_trash_mini
all: clean tests_success clean run_pipeline end
tmux:
@tmux new-session -d -s lpce "make all CONFIG_FILE=$(CONFIG_NAME)"
@tmux attach -t lpce
run_pipeline:
clear
python lpce/run_full_pipeline.py $(CONFIG_NAME)
test:
clear
python lpce/tests/test_pipeline.py $(CONFIG_NAME)
tests:
clear
export JUPYTER_PLATFORM_DIRS=1 && pytest lpce/tests/ --config-name=$(CONFIG_NAME)
tests_success:
@echo "Running tests..."
@if $(MAKE) tests; then \
echo "Tests passed! Proceeding with the rest of the pipeline..."; \
else \
echo "Tests failed! Stopping."; \
exit 1; \
fi
clean:
clear
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf /mnt/ligandpro/db/LPCE/processed
rm -rf /mnt/ligandpro/db/LPCE/ligands
rm -rf /mnt/ligandpro/db/LPCE/bioml
rm -rf /mnt/ligandpro/db/LPCE/separated
rm -rf logs
mkdir -p logs
rm -rf data/identical_groups.json
rm -rf data/filtered_ligands.json
rm -rf data/site_info.json
rm -rf data/grouped_complexes.json
rm -rf data/removed_files.json
end:
rm -rf /mnt/ligandpro/db/LPCE/raw
rm -rf /mnt/ligandpro/db/LPCE/processed
rm -rf /mnt/ligandpro/db/LPCE/ligands
rm -rf /mnt/ligandpro/db/LPCE/bioml
pre-commit:
pre-commit run --all-files