@@ -4,7 +4,7 @@ data, and is the core library used by [samtools][2] and [bcftools][3].
44
55A set of sample programs are available which showcases the usage of APIs in HTSlib.
66They are based on version 1.17 of HTSLib and are mainly for demonstration of API usage.
7- Further optimization and error handling might be required for actual usage.
7+ Further optimisation and error handling might be required for actual usage.
88
99
1010[ 1 ] : http://samtools.github.io/hts-specs/
@@ -61,7 +61,7 @@ indexed.
6161
6262[ Read_fast] [ Read_fast ]
6363
64- This application showcases the fasta/fastq data read.
64+ This application showcases fasta/fastq data read without using index .
6565
6666[ Read_header] [ Read_header ]
6767
@@ -72,7 +72,7 @@ indexed.
7272[ Read_ref] [ Read_ref ]
7373
7474 This application showcases the read and access of header data. It shows
75- all reference names which has length equal or greather to given input.
75+ all reference names which has length equal or greater to given input.
7676
7777[ Read_bam] [ Read_bam ]
7878
@@ -129,24 +129,33 @@ indexed.
129129
130130[ Write_fast] [ Write_fast ]
131131
132- This application showcases the fasta/fastq data write. It appends a dummy
133- data to given file.
132+ This application showcases the fasta/fastq data write. It appends data on
133+ given file.
134134
135135[ Index_write] [ Index_write ]
136136
137137 This application showcases the creation of index along with output
138138 creation. Based on file type and shift, it creates bai, csi or crai files.
139139
140+ [ Index_fast] [ Index_fast ]
141+
142+ This application showcases index creation on fasta/fastq reference data.
143+
140144[ Read_reg] [ Read_reg ] :
141145
142146 This application showcases the usage of region specification in alignment
143147 read.
144148
145149[ Read_multireg] [ Read_multireg ] :
146150
147- This application showcases the usage of mulitple region specification in
151+ This application showcases the usage of multiple region specification in
148152 alignment read.
149153
154+ [ Read_fast_index] [ Read_fast_index ]
155+
156+ This application showcases the fasta/fastq data read using index. It takes a
157+ region (reference name[ : start-end ] ) and gets data from that region.
158+
150159[ Pileup] [ Pileup ] :
151160
152161 This application showcases the pileup api, where all alignments covering a
@@ -181,8 +190,7 @@ indexed.
181190
182191 This application showcases the use of threads in file handling. It saves
183192 the read1 and read2 as separate files in given directory, one as sam and
184- other as bam. 2 threads are used for read and 1 each dedicated for each
185- output file.
193+ other as bam. 1 thread is used for read, 1 for sam write and 2 for bam write.
186194
187195[ Split_thread2] [ Split_thread2 ]
188196
@@ -191,6 +199,19 @@ indexed.
191199 and other as bam. A pool of 4 threads is created and shared for both read
192200 and write.
193201
202+ [ Qtask_ordered] [ Qtask_ordered ]
203+
204+ This application showcases the use of queues and threads for custom
205+ processing. Alignments in input file are updated with their GC ratio on a
206+ custom aux tag. The processing may occur in any order but the results are
207+ retrieved in same order as it was queued and saved to disk.
208+
209+ [ Qtask_unordered] [ Qtask_unordered ]
210+
211+ This application showcases the use of queues and threads for custom
212+ processing. The count of bases and GC ratio are calculated and displayed.
213+ The order of counting is irrelevant and hence ordered retrieval is not used.
214+
194215### More Information
195216
196217More detailed documentation is available in the [ DEMO.md] [ DEMO ] with worked
@@ -215,13 +236,17 @@ examples per demonstration tool.
215236[ Mod_aux_ba ] : mod_aux_ba.c
216237[ Write_fast ] : write_fast.c
217238[ Index_write ] : index_write.c
239+ [ Index_fasta ] : index_fasta.c
218240[ Read_reg ] : index_reg_read.c
219241[ Read_multireg ] : index_multireg_read.c
242+ [ Read_fast_index ] : read_fast_index.c
220243[ Pileup ] : pileup.c
221244[ Mpileup ] : mpileup.c
222245[ Modstate ] : modstate.c
223246[ Pileup_mod ] : pileup_mod.c
224247[ Flags_field ] : flags_htsopt_field.c
225248[ Split_thread1 ] : split_thread1.c
226249[ Split_thread2 ] : split_thread2.c
250+ [ Qtask_ordered ] : qtask_ordered.c
251+ [ Qtask_unordered ] : qtask_unordered.c
227252[ DEMO ] : DEMO.md
0 commit comments