Skip to content

Commit d3a9ca5

Browse files
committed
Fix diffing and cleaning
1 parent 8f53d95 commit d3a9ca5

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

tests/02_simple_tree/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
file_list.txt
22
*.fa
33
*.nw
4-
!tree.precomputed.nw

tests/02_simple_tree/Makefile

+13-6
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,39 @@ SHELL=/usr/bin/env bash -eo pipefail
66

77
.SUFFIXES:
88

9+
FASTAS=$(shell tar -tf test_spneumo.tar.xz)
10+
911
###################
1012
## Compare trees ##
1113
###################
1214

13-
all: tree.default.nw tree.file_list.nw
14-
diff $^
15+
all: tree.default.nw tree.file_list.nw tree.precomputed.newick
16+
diff tree.default.nw tree.precomputed.newick
17+
diff tree.file_list.nw tree.precomputed.newick
1518

1619
###################################
1720
# Different ways to compute trees #
1821
###################################
1922

2023
tree.default.nw: file_list.txt
21-
cat $< | xargs ../../attotree/attotree.py > "$@.tmp"
24+
../../attotree/attotree.py $(shell cat $<) > "$@.tmp"
2225
mv "$@.tmp" "$@"
2326

2427
tree.file_list.nw: file_list.txt
2528
../../attotree/attotree.py -L "$<" > "$@.tmp"
2629
mv "$@.tmp" "$@"
2730

31+
tree.precomputed.newick: tree.default.nw
32+
cp $< $@
33+
2834
##############
2935
# Input data #
3036
##############
3137

3238
file_list.txt: test_spneumo.tar.xz
3339
tar xvf $<
34-
tar -tf $< > $@.tmp
35-
mv $@.tmp $@
40+
tar -tf $< > file_list.txt.tmp
41+
mv file_list.txt.tmp file_list.txt
3642

3743
help: ## Print help messages
3844
@echo -e "$$(grep -hE '^\S*(:.*)?##' $(MAKEFILE_LIST) \
@@ -45,8 +51,9 @@ help: ## Print help messages
4551
| column -c2 -t -s : )"
4652

4753
clean: ## Clean
48-
rm -fv *.nw *.fa
54+
rm -f *.nw *.tmp
4955

5056
cleanall: clean ## Clean all
57+
rm -f file_list.txt *.fa
5158

5259
view: ## View output
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
((203692:0.00537,001334:0.00473):0.00060,(302649:0.00543,101058:0.00531):0.00062,403790:0.01403);

0 commit comments

Comments
 (0)