dputhier / libgtftk

gtftk C Library and program
GNU General Public License v3.0
3 stars 2 forks source link

Issue with libgtftk.get_sequences (this one looks simple) #74

Closed dputhier closed 6 years ago

dputhier commented 6 years ago

I have noticed that the first call to libgtftk.get_sequences leads to always to a NULL string, indicating that the sequence is not available in the SEQFRAG pointer. In my tests, after a fresh install (with an existing ~/.gtftk directory) the index is not available and will be produced during the first call. If I call the function another time, the index is now available and it will work like a charm for years. I guess that there is something that is related to index access at first call to get_sequences. The file is maybe locked ?

fafa13 commented 6 years ago

I just pushed a fix for this bug.