1010[](https://github.com/yangao07/TideHunter/releases)
1111-->
1212
13- ## Updates (v1.4.4 )
14- * Skip N bases in the input sequences
13+ ## Updates (v1.5.0 )
14+ * Output fastq format
1515
1616
1717## Getting started
1818Download the [ latest release] ( https://github.com/yangao07/TideHunter/releases ) :
1919```
20- wget https://github.com/yangao07/TideHunter/releases/download/v1.4.4 /TideHunter-v1.4.4 .tar.gz
21- tar -zxvf TideHunter-v1.4.4 .tar.gz && cd TideHunter-v1.4.4
20+ wget https://github.com/yangao07/TideHunter/releases/download/v1.5.0 /TideHunter-v1.5.0 .tar.gz
21+ tar -zxvf TideHunter-v1.5.0 .tar.gz && cd TideHunter-v1.5.0
2222```
2323Make from source and run with test data:
2424```
@@ -38,8 +38,9 @@ TideHunter ./test_data/test_50x4.fa > cons.fa
3838 - [ Pre-built binary executable file for Linux/Unix] ( #binary )
3939- [ Getting started with toy example in ` test_data ` ] ( #start )
4040- [ Usage] ( #usage )
41- - [ To generate consensus sequencesin FASTA format] ( #fasta_cons )
42- - [ To generate consensus sequencesin tabular format] ( #tab_cons )
41+ - [ To generate consensus sequences in FASTA format] ( #fasta_cons )
42+ - [ To generate consensus sequences in tabular format] ( #tab_cons )
43+ - [ To generate consensus sequences in FASTQ format] ( #fq_cons )
4344 - [ To generate full-length consensus sequences] ( #full_cons )
4445 - [ To generate unit sequences in FASTA format] ( #fasta_unit )
4546 - [ To generate unit sequences in tabular format] ( #tab_unit )
@@ -49,6 +50,7 @@ TideHunter ./test_data/test_50x4.fa > cons.fa
4950- [ Output] ( #output )
5051 - [ Tabular format] ( #tabular )
5152 - [ FASTA format] ( #fasta )
53+ - [ FASTQ format] ( #fastq )
5254 - [ Unit sequences] ( #unit )
5355- [ Contact] ( #contact )
5456
@@ -76,9 +78,9 @@ Make sure you have gcc (>=6.4.0) and zlib installed before compiling.
7678It is recommended to download the latest release of TideHunter
7779from the [ release page] ( https://github.com/yangao07/TideHunter/releases ) .
7880```
79- wget https://github.com/yangao07/TideHunter/releases/download/v1.4.4 /TideHunter-v1.4.4 .tar.gz
80- tar -zxvf TideHunter-v1.4.4 .tar.gz
81- cd TideHunter-v1.4.4 ; make
81+ wget https://github.com/yangao07/TideHunter/releases/download/v1.5.0 /TideHunter-v1.5.0 .tar.gz
82+ tar -zxvf TideHunter-v1.5.0 .tar.gz
83+ cd TideHunter-v1.5.0 ; make
8284```
8385Or, you can use ` git clone ` command to download the source code.
8486Don't forget to include the ` --recursive ` to download the codes of [ abPOA] ( https://github.com/yangao07/abPOA ) .
@@ -91,8 +93,8 @@ cd TideHunter; make
9193### <a name =" binary " ></a >Pre-built binary executable file for Linux/Unix
9294If you meet any compiling issue, please try the pre-built binary file:
9395```
94- wget https://github.com/yangao07/TideHunter/releases/download/v1.4.4 /TideHunter-v1.4.4_x64 -linux.tar.gz
95- tar -zxvf TideHunter-v1.4.4_x64 -linux.tar.gz
96+ wget https://github.com/yangao07/TideHunter/releases/download/v1.5.0 /TideHunter-v1.5.0_x64 -linux.tar.gz
97+ tar -zxvf TideHunter-v1.5.0_x64 -linux.tar.gz
9698```
9799
98100## <a name =" start " ></a >Getting started with toy example in ` test_data `
@@ -109,6 +111,10 @@ TideHunter ./test_data/test_1000x10.fa > cons.fa
109111```
110112TideHunter -f 2 ./test_data/test_1000x10.fa > cons.out
111113```
114+ #### <a name =" fq_cons " ></a >To generate consensus sequences in FASTQ format
115+ ```
116+ TideHunter -f 3 ./test_data/test_1000x10.fa > cons.fq
117+ ```
112118#### <a name =" full_cons " ></a >To generate full-length consensus sequences
113119```
114120TideHunter -5 ./test_data/5prime.fa -3 ./test_data/3prime.fa ./test_data/full_length.fa > cons_full.fa
@@ -150,13 +156,18 @@ Options:
150156 -a --ada-mat-rat FLT minimum match ratio of adapter sequence [0.80]
151157 Output:
152158 -o --output STR output file [stdout]
153- -m --min-len [INT] only output consensus sequence with min. length of [30]
159+ -m --min-len INT only output consensus sequence with min. length of [30]
160+ -r --min-cov FLOAT|INT only output consensus sequence with at least R supporting units for all bases: [0.00]
161+ if r is fraction: R = r * total copy number
162+ if r is integer: R = r
154163 -u --unit-seq only output unit sequences of each tandem repeat, no consensus sequence [False]
155164 -l --longest only output consensus sequence of tandem repeat that covers the longest read sequence [False]
156165 -F --full-len only output full-length consensus sequence [False]
157166 -f --out-fmt INT output format [1]
158167 - 1: FASTA
159168 - 2: Tabular
169+ - 3: FASTQ
170+ qualiy score of each base represents the ratio of the consensus coverage to the # total copies.
160171 Computing resource:
161172 -t --thread INT number of threads to use [4]
162173
@@ -222,6 +233,35 @@ The read name and comment of each consensus sequence have the following format:
222233>readName_repN_copyNum readLen_start_end_consLen_aveMatch_fullLen_subPos
223234```
224235
236+ ### <a name =" fastq " ></a >FASTQ format
237+ For FASTQ output format, the read name and comment are the same as described in [ FASTA format] ( #fasta ) .
238+ TideHunter calculated a customized Phred score as the base quality score of each consensus base:
239+
240+ <p align =" center " >
241+ <img src =" https://latex.codecogs.com/svg.image?Q_{phred}=-10 \cdot log_{10}(p) " />
242+ <!-- <img src="https://render.githubusercontent.com/render/math?math=Q_{phred}=-10 \cdot log_{10}(p)"> -->
243+ </p >
244+
245+ Here, <img src =" https://latex.codecogs.com/svg.image?p " /> is the Sigmoid-smoothed consensus calling error rate for each base:
246+
247+ <p align =" center " >
248+ <!-- <img src="https://render.githubusercontent.com/render/math?math=p=1-S(N_{cons} / N_{total} \cdot 21)">, -->
249+ <img src =" https://latex.codecogs.com/svg.image?p=1-S(13.8 \cdot (1.25 \cdot N_{cons} / N_{total} - 0.25)) " />
250+ </p >
251+
252+ <img src =" https://latex.codecogs.com/svg.image?S " /> is the Sigmoid function:
253+ <p align =" center " >
254+ <img src =" https://latex.codecogs.com/svg.image?S(x)=\frac{1}{1+e^{-x}} " />
255+ </p >
256+
257+ <img src =" https://latex.codecogs.com/svg.image?N_{cons} " /> is the coverage of the consensus base and
258+ <img src =" https://latex.codecogs.com/svg.image?N_{total} " /> is the number of total copies.
259+ For example, if one base of the consensus sequence has 4 supporting copies and the total copy number is 5,
260+ <img src =" https://latex.codecogs.com/svg.image?N_{cons} " /> is 4 and <img src =" https://latex.codecogs.com/svg.image?N_{total} " /> is 5.
261+
262+ The Phred quality score was then shifted by 33 and converted to characters based on the ASCII value.
263+ The quality scores range from 0 to 60 and the corresponding ASCII values range from 33 to 93.
264+
225265### <a name =" unit " ></a >Unit sequences
226266TideHunter can output the unit sequences without performing the consensus calling step when option ` -u/--unit-seq ` is enabled. Then, only the following information will be output for the tabular format:
227267
0 commit comments