-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
127 lines (94 loc) · 3.64 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
FIGURES=figures/data-scaling.pdf\
figures/whole-matrix-compute.pdf\
figures/whole-matrix-decode.pdf\
figures/subset-matrix-compute.pdf\
figures/subset-matrix-compute-supplemental.pdf
all: paper.pdf
paper.aux: paper.tex
pdflatex -shell-escape paper.tex
paper.bbl: paper.aux paper.bib
bibtex paper
pdflatex -shell-escape paper.tex
paper.pdf: $(FIGURES) paper.bbl
pdflatex -shell-escape paper.tex
paper.ps: paper.dvi
dvips paper
paper.dvi: paper.tex paper.bib
latex paper.tex
bibtex paper
latex paper.tex
latex paper.tex
.PHONY: spellcheck
spellcheck: aspell.conf
aspell --conf ./aspell.conf --check paper.tex
clean:
rm -f *.log *.dvi *.aux
rm -f *.blg *.bbl
rm -fR _minted*
mrproper: clean
rm -f *.ps *.pdf
TS_FILES=scaling/data/chr21_10_1.ts\
scaling/data/chr21_10_2.ts\
scaling/data/chr21_10_3.ts\
scaling/data/chr21_10_4.ts\
scaling/data/chr21_10_5.ts\
scaling/data/chr21_10_6.ts
# Should probably add rules for other data collection. However, it
# takes a *long* time to do some stuff, and needs to be done in bits
# in practise.
plot_data/data-scaling.csv:
python3 src/collect_data.py file-size $(TS_FILES) -o $@
# Compression benchmarks:
plot_data/shuffle_benchmarks.csv:
python3 src/compression_benchmarks.py --input real_data/data/WGS/chr22.zarr \
--test-config shuffle \
-o $@
plot_data/compressor_benchmarks.csv:
python3 src/compression_benchmarks.py --input real_data/data/WGS/chr22.zarr \
--test-config compressor \
-o $@
plot_data/chunksize_benchmarks.csv:
python3 src/compression_benchmarks.py --input real_data/data/WGS/chr22.zarr \
--test-config chunksize \
-o $@
plot_data/chunksize_finegrained_benchmarks.csv:
python3 src/compression_benchmarks.py --input real_data/data/WGS/chr22.zarr \
--test-config chunksize_finegrained \
-o $@
# TODO make rule for time-scaling
# TODO make some substitution rules for this later
figures/data-scaling.pdf: plot_data/data-scaling.csv
python3 src/plot.py data-scaling plot_data/data-scaling.csv \
figures/data-scaling.pdf
figures/whole-matrix-compute.pdf: plot_data/whole-matrix-compute.csv
python3 src/plot.py whole-matrix-compute plot_data/whole-matrix-compute.csv \
figures/whole-matrix-compute.pdf
figures/whole-matrix-decode.pdf: plot_data/whole-matrix-decode.csv
python3 src/plot.py whole-matrix-decode plot_data/whole-matrix-decode.csv \
figures/whole-matrix-decode.pdf
figures/column-extract.pdf: plot_data/column-extract.csv
python3 src/plot.py column-extract plot_data/column-extract.csv \
figures/column-extract.pdf
figures/subset-matrix-compute.pdf: plot_data/subset-matrix-compute.csv
python3 src/plot.py subset-matrix-compute plot_data/subset-matrix-compute.csv \
figures/subset-matrix-compute.pdf
figures/subset-matrix-compute-supplemental.pdf: plot_data/subset-matrix-compute.csv
python3 src/plot.py subset-matrix-compute-supplemental \
plot_data/subset-matrix-compute.csv \
figures/subset-matrix-compute-supplemental.pdf
figures/compression-shuffle.pdf: plot_data/shuffle_benchmarks.csv
python3 src/plot.py compression-shuffle \
plot_data/shuffle_benchmarks.csv \
$@
figures/compression-compressor.pdf: plot_data/compressor_benchmarks.csv
python3 src/plot.py compression-compressor \
plot_data/compressor_benchmarks.csv \
$@
figures/compression-chunksize.pdf: plot_data/chunksize_benchmarks.csv
python3 src/plot.py compression-chunksize \
plot_data/chunksize_benchmarks.csv \
$@
figures/compression-chunksize-finegrained.pdf: plot_data/chunksize_finegrained_benchmarks.csv
python3 src/plot.py compression-chunksize-finegrained \
plot_data/chunksize_finegrained_benchmarks.csv \
$@