File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ func bgs_query(w http.ResponseWriter, r *http.Request) {
329
329
330
330
// read through
331
331
b := C .bcf_init1 ();
332
+ defer C .bcf_destroy1 (b );
332
333
n_read := 0 ;
333
334
for {
334
335
if n_read > max_read || uint64 (bm .n_gt_read ) > bgt_max_gt {
@@ -349,7 +350,6 @@ func bgs_query(w http.ResponseWriter, r *http.Request) {
349
350
}
350
351
n_read += 1 ;
351
352
}
352
- C .bcf_destroy1 (b );
353
353
354
354
// print hapcnt and/or sample list
355
355
if ! vcf_out && int (bm .n_aal ) > 0 {
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ \section{Results}
203
203
The command line above takes 12 CPU seconds with most of time spent on reading
204
204
through the variant annotation file to find matching alleles. The BGT server
205
205
reads the entire file into memory to alleviate the overhead, but a better
206
- solution would be to set up a proper database for variant annotations.
206
+ solution would be to use a proper database for variant annotations.
207
207
208
208
We have also set up a public BGT server at http://bgtdemo.herokuapp.com. It
209
209
hosts 1000 Genomes data for chromosome 11 and 20.
You can’t perform that action at this time.
0 commit comments