-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·31 lines (24 loc) · 1.06 KB
/
install.sh
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
#!/bin/bash
#
# CDKAM: a metagenomic classification tool using discriminative k-mers and approximate matching strategy
# Copyright 2019-2020
# Department of Bioinformatics and Biostatistics, Shanghai Jiao Tong University
# Contact information: buikien.dp@sjtu.edu.cn, ccwei@sjtu.edu.cn
#
set -e
FSCRPT=$(readlink -f "$0")
LDIR=$(dirname "$FSCRPT")
echo |cpp -fopenmp -dM |grep -i open > $LDIR/.tmp
NB=`wc -l < $LDIR/.tmp`
g++ -std=c++11 -o $LDIR/src/genPathFiles $LDIR/src/genPathFiles.cpp -O3
g++ -std=c++11 -o $LDIR/src/buildDB $LDIR/src/DTB_compress.cpp -O3
g++ -std=c++11 -o $LDIR/src/uniqueDB $LDIR/src/DTB_unique.cpp -O3
g++ -std=c++11 -o $LDIR/src/translate $LDIR/src/translate.cpp -O3
g++ -fopenmp -std=c++11 -o $LDIR/src/classify $LDIR/src/classify.cpp $LDIR/src/seqreader.cpp -O3
g++ -fopenmp -std=c++11 -o $LDIR/src/classifyEM $LDIR/src/classifyEM.cpp $LDIR/src/seqreader.cpp -O3
mv $LDIR/src/genPathFiles $LDIR/
mv $LDIR/src/buildDB $LDIR/
mv $LDIR/src/uniqueDB $LDIR/
mv $LDIR/src/translate $LDIR/
mv $LDIR/src/classify $LDIR/
mv $LDIR/src/classifyEM $LDIR/