forked from guoweilong/cgmaptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·72 lines (55 loc) · 2.04 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
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
#!/usr/bin/env sh
rm -rf bin/;
mkdir bin/;
cd include
echo 'building zlib'
cd zlib-*/;
make clean;
./configure --prefix=`pwd`
make;
cd ..;
echo 'building samtools'
cd samtools-*/;
make clean;
make;
cd ..;
cd ..;
cd src/;
echo 'building ATCGmapMerge'
g++ ATCGmapMerge.cpp -o ../bin/ATCGmapMerge -lz -L ../include/zlib-1.2.8
echo 'building CGmapSelectByRegion'
g++ CGmapSelectByRegion.cpp -o ../bin/CGmapSelectByRegion
echo 'building CGmapMethInBed'
g++ CGmapMethInBed.cpp -o ../bin/CGmapMethInBed
echo 'building CGmapMethInFragReg'
g++ CGmapMethInFragReg.cpp -o ../bin/CGmapMethInFragReg
echo 'building CGmapFromBAM'
gcc -o ../bin/CGmapFromBAM CGmapFromBAM.c -lz -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18;
echo 'building CGmapToCGbz'
gcc -o ../bin/CGmapToCGbz CGmapToCGbz.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
echo 'building CGbzToCGmap'
gcc -o ../bin/CGbzToCGmap CGbzToCGmap.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
echo 'building ATCGmapToATCGbz'
gcc -o ../bin/ATCGmapToATCGbz ATCGmapToATCGbz.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
echo 'building ATCGbzToATCGmap'
gcc -o ../bin/ATCGbzToATCGmap ATCGbzToATCGmap.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
echo 'building CGbzFetchRegion'
gcc -o ../bin/CGbzFetchRegion CGbzFetchRegion.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
echo 'building ATCGbzFetchRegion'
gcc -o ../bin/ATCGbzFetchRegion ATCGbzFetchRegion.c -L ../include/zlib-1.2.8 -lbam -L ../include/samtools-0.1.18 -lz
cd ..
cd bin
for pr in ../src/*.py ../src/*.pl ../src/*.R; do
pn=`basename $pr | cut -d"." -f1`
echo 'building '`basename $pn`
ln -s $pr $pn
chmod +x $pn
done
cd ..
echo ""
echo "Installation is finished."
echo ""
echo "Please add the following line to your ~/.bash_profile, and source ~/.bash_profile before running cgmaptools."
echo ""
echo ' export PATH='`pwd`':$PATH'
echo ""