-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (28 loc) · 1.03 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
TEST_FILES := t k note5 overlap q.chop LPA DRB1-3123 chr6.C4
GFA_URL := https://raw.githubusercontent.com/pangenome/odgi/ebc493f2622f49f1e67c63c1935d68967cd16d85/test
# A smaller set of test inputs for faster runs.
ifdef SMALL
TEST_FILES := t k note5 overlap q.chop DRB1-3123
endif
tests/%.gfa:
curl -Lo ./$@ $(GFA_URL)/$*.gfa
tests/%.og: tests/%.gfa
odgi build -g $< -o $@
.PHONY: fetch
fetch: $(TEST_FILES:%=tests/%.gfa)
fetch-og: $(TEST_FILES:%=tests/%.og)
.PHONY: test-slow-odgi
test-slow-odgi: fetch
make -C slow_odgi test
.PHONY: test-flatgfa
test-flatgfa: fetch
cd flatgfa ; cargo build
turnt -e flatgfa_mem -e flatgfa_file -e flatgfa_file_inplace tests/*.gfa
-turnt --save -v -e chop_oracle_fgfa tests/*.gfa
turnt -v -e flatgfa_chop tests/*.gfa
-turnt --save -v -e odgi_depth tests/*.gfa
turnt -v -e flatgfa_depth tests/*.gfa
-turnt --save -v -e odgi_extract tests/*.gfa
turnt -v -e flatgfa_extract tests/*.gfa
clean:
-rm tests/*.flatgfa tests/*.inplace.flatgfa tests/*.chop tests/*.depth tests/*.extract tests/*.gfa tests/*.og