-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sh
47 lines (37 loc) · 2.14 KB
/
build.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
#!/bin/bash
mkdir -p bin/
## pigz ##
cd pigz
make
mv pigz ../bin/
mv unpigz ../bin/
cd ../
## fermikit ##
cd fermikit
make
cd ..
## cpp ##
cd src
mkdir -p lib/
cd htslib-1.3/
./configure
make
make check
cp libhts.a ../lib/
cd ..
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cluster_reads cluster_reads.cpp tk.cpp cgranges.cpp -l z -pthread
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o extract_barcode_info extract_barcode_info.cpp -l hts -l z -l m -l pthread
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o output_bam_coreinfo output_bam_coreinfo.cpp -l hts -l z -l m -l pthread
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o remove_sparse_nodes remove_sparse_nodes.cpp tk.cpp cgranges.cpp -lz
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_hap_read_depth_from_bcd21 cal_hap_read_depth_from_bcd21.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o grid_overlap grid_overlap.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_read_depth_from_bcd21 cal_read_depth_from_bcd21.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_barcode_depth_from_bcd21 cal_barcode_depth_from_bcd21.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_twin_win_bcd_cnt cal_twin_win_bcd_cnt.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_centroid_from_read_depth cal_centroid_from_read_depth.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cal_2d_overlapping_barcodes cal_2d_overlapping_barcodes.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o small_deletion_detection small_deletion_detection.cpp cnv.cpp tk.cpp cgranges.cpp -l z
g++ -g -O0 -std=c++11 -I ./include/ -L ./lib/ -o cnv_detection cnv_detection.cpp cnv.cpp tk.cpp cgranges.cpp -l z
mv cluster_reads extract_barcode_info output_bam_coreinfo remove_sparse_nodes ../bin/
mv cal_hap_read_depth_from_bcd21 grid_overlap cal_read_depth_from_bcd21 cal_barcode_depth_from_bcd21 ../bin/
mv cal_twin_win_bcd_cnt cal_centroid_from_read_depth cal_2d_overlapping_barcodes cnv_detection small_deletion_detection ../bin/