smarco / WFA2-lib

WFA-lib: Wavefront alignment algorithm library v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safe to change parameters between uses of aligner object?

brendanf opened this issue · comments

The README suggests that it is best to reuse the aligner object in order to avoid extra allocations and computations. Is it also safe to change parameters (specifically, maximum score and static band width) after the object has been used to create an alignment?

I am guessing the answer may be no, because for some data sets I am getting a segfault when I finally free the aligner object; specifically in wavefront_slab_delete.

Never mind! I found another bug in my code which was sometimes giving illegal values for the static band width (i.e., lower band >= 0), and the problem was when I tried to free the aligner when the most recent band width was illegal.