-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_compressors.sh
executable file
·156 lines (137 loc) · 4.44 KB
/
install_compressors.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#!/bin/bash
#
compressor_files_path="compressors_files/"
compressor_path="compressors/"
mkdir -p compressors_files
mkdir -p compressors
rm -rf compressors/*
rm -rf compressors_files/*
Cmix_Installation() {
mkdir -p ${compressor_files_path}
wget https://github.com/byronknoll/cmix/archive/refs/tags/v19.1.zip -P ${compressor_files_path}
unzip ${compressor_files_path}/v19.1.zip
cd cmix-19.1/
make
cp cmix "../${compressor_path}"
cd ..
mv cmix-19.1/ ${compressor_files_path}
}
Brieflz_Installation(){
mkdir -p ${compressor_files_path}
wget https://github.com/jibsen/brieflz/archive/refs/tags/v1.3.0.zip -P ${compressor_files_path}
unzip -o ${compressor_files_path}v1.3.0.zip
cd brieflz-1.3.0/example
make
cp blzpack "../../${compressor_path}"
cd ../..
mv brieflz-1.3.0 ${compressor_files_path}
}
Lizard_Installation(){
mkdir -p ${compressor_files_path}
wget https://github.com/inikep/lizard/archive/refs/tags/v1.0.zip -P ${compressor_files_path}
unzip -o ${compressor_files_path}v1.0.zip
cd lizard-1.0
make
cp lizard "../${compressor_path}"
cd ../
mv lizard-1.0 ${compressor_files_path}
}
LZ4_Installation(){
mkdir -p ${compressor_files_path}
wget https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.zip -P ${compressor_files_path}
unzip -o ${compressor_files_path}v1.9.4.zip
cd lz4-1.9.4
make
cp lz4 "../${compressor_path}"
cd ../
mv lz4-1.9.4 ${compressor_files_path}
}
Snzip_Installation(){
mkdir -p ${compressor_files_path}
cd ${compressor_files_path}
git clone https://github.com/kubo/snzip.git
cd snzip
./autogen.sh
./configure
make
make install
cp snzip "../../${compressor_path}"
cd ../..
}
Brotli_Installation(){
# This specification defines a lossless compressed data format that
# compresses data using a combination of the LZ77 algorithm and Huffman
# coding, with efficiency comparable to the best currently available
# general-purpose compression methods.
mkdir -p ${compressor_files_path}
wget https://github.com/google/brotli/archive/refs/tags/v1.0.9.zip -P ${compressor_files_path}
unzip -o ${compressor_files_path}v1.0.9.zip
cd brotli-1.0.9;
mkdir -p out && cd out
../configure-cmake
make
make test
make install
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
cmake --build . --config Release --target install
cd ../..
mv brotli-1.0.9 ${compressor_files_path}
}
Libbsc_Installation() {
#bsc is a high performance file compressor based on lossless,
#block-sorting data compression algorithms.
mkdir -p ${compressor_files_path}
wget https://github.com/IlyaGrebnov/libbsc/archive/refs/tags/v3.2.4.zip -P ${compressor_files_path}
unzip -o ${compressor_files_path}/v3.2.4.zip
cd libbsc-3.2.4/
make
cp bsc "../${compressor_path}"
cd ../
mv libbsc-3.2.4 ${compressor_files_path}
}
MFCompress_Installation() {
# ./compress fastq_file.fastq
cd $compressor_files_path
git clone https://github.uconn.edu/sya12005/LFastqC
cp LFastqC/MFcompress/MFCompressC "../${compressor_path}"
cd ".."
}
UHT_Installation() {
cd $compressor_files_path
git clone https://github.com/aalokaily/Unbalanced-Huffman-Tree
cp Unbalanced-Huffman-Tree/dist/UHT_compress/UHT_compress "../${compressor_path}"
cd ..
}
NAF_Installation() {
# ennaf file.fa -o file.naf
cd $compressor_files_path
git clone --recurse-submodules https://github.com/KirillKryukov/naf.git
cd naf && make && make test && make install
cp ennaf/ennaf "../../${compressor_path}"
cd "../.."
}
NUHT_Installation() {
cd $compressor_files_path
git clone https://github.uconn.edu/sya12005/Non-Greedy-Unbalanced-Huffman-Tree-Compressor-for-single-and-multi-fasta-files.git
cd Non-Greedy-Unbalanced-Huffman-Tree-Compressor-for-single-and-multi-fasta-files
mv Linux/NUHT_Compress "../../${compressor_path}/NUHT_Compress"
cd "../.."
}
conda install -c conda-forge libgcc-ng --yes
conda install -y -c bioconda jarvis --yes
conda install -c bioconda geco3 --yes
conda install -c bioconda naf --yes
conda install -c cobilab gto --yes
conda install -c bioconda mbgc --yes
Brieflz_Installation;
Brotli_Installation;
Libbsc_Installation;
Lizard_Installation;
LZ4_Installation;
Snzip_Installation;
UHT_Installation;
MFCompress_Installation;
UHT_Installation;
NUHT_Installation;
Cmix_Installation;
chmod +x compressors/*