Reduce file handle usage.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2503 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2010-01-05 18:03:01 +00:00
parent 8b087305f3
commit 331d6db783
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ BWA::BWA(const char* ann_filename,
reference = new ubyte_t[bns->l_pac/4+1];
rewind(bns->fp_pac);
fread(reference, 1, bns->l_pac/4+1, bns->fp_pac);
fclose(bns->fp_pac);
bns->fp_pac = NULL;
// Load the BWTs (both directions) and suffix arrays (both directions)
bwts[0] = bwt_restore_bwt(forward_bwt_filename);