-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
73 lines (52 loc) · 2.16 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
# Makefile for installation and test
cwd=${PWD}
.PHONY: test install
## third-party dependencies
# trimal, see https://github.com/inab/trimal
trimdir="trimal-1.4.1"
trimtar="v1.4.1.tar.gz"
trimalurl="https://github.com/inab/trimal/archive/refs/tags/${trimtar}"
# newick_utils, see https://github.com/tjunier/newick_utils
nudir="newick-utils-1.6"
nutar="newick-utils-1.6.tar.gz"
# IQ-TREE, see http://www.iqtree.org
iqtar="iqtree-1.6.12-Linux.tar.gz"
iqurl="https://github.com/Cibiv/IQ-TREE/releases/download/v1.6.12/${iqtar}"
# GET_HOMOLOGUES-EST, see https://github.com/eead-csic-compbio/get_homologues
ghdir="get_homologues"
ghurl="https://github.com/eead-csic-compbio/${ghdir}.git"
# concat_alignments, see https://github.com/vinuesa/get_phylomarkers
caurl="https://raw.githubusercontent.com/vinuesa/get_phylomarkers/master/concat_alignments.pl"
# consensus, see https://github.com/josephhughes/Sequence-manipulation
courl="https://raw.githubusercontent.com/josephhughes/Sequence-manipulation/master/Consensus.pl"
## Brachypodium benchmark data
brachytar="Brachypodium_bench.tar.gz"
brachyurl="https://github.com/eead-csic-compbio/allopolyploids/releases/download/1.0/${brachytar}"
install:
make trimal newick_utils iqtree get_homologues concat_aln consensus perldeps
test:
perl allopolyploids.t
trimal:
@echo "Downloading and compiling ${trimurl}"
cd ${cwd}/bin; wget -c ${trimalurl}; tar xfz ${trimtar}; cd ${trimdir}/source; make; cd ../..; rm ${trimtar}
newick_utils:
@echo "Compiling ${nudir}"
cd ${cwd}/bin; tar xfz ${nutar}; cd ${nudir}; ./configure; make
iqtree:
@echo "Downloading ${iqurl}"
cd ${cwd}/bin; wget -c ${iqurl}; tar xfz ${iqtar}; rm ${iqtar}
get_homologues:
@echo "Downloading and installing ${ghurl}"
cd ${cwd}/bin; git clone ${ghurl}; cd ${ghdir}; perl install.pl force
concat_aln:
@echo "Downloading ${caurl}"
cd ${cwd}/bin; wget -c ${caurl}
consensus:
@echo "Downloading ${courl}"
cd ${cwd}/bin; wget -c ${courl}
perldeps:
@echo "Installing perl dependencies"
cd ${cwd}; cpanm -v --installdeps --local-lib bin --notest --cpanfile cpanfile .
brachy:
@echo "Downloading ${brachyurl}"
wget -c ${brachyurl}; tar xfz ${brachytar}; rm ${brachytar}