If I install pywfa using pip, I can run the example script from the README without any problems. However, if I use the wildcard option of WavefrontAligner I get a segfault:
$ diff works.py fails.py
5c5
< a = WavefrontAligner(pattern)
---
> a = WavefrontAligner(pattern, wildcard="N")
$ python works.py
ALIGNMENT 3M1X4M1D7M1I9M1X6M
ALIGNMENT.COMPACT 1X1D1I1X
PATTERN TCTTTACTCGCGCGTT-GGAGAAATACAATAGT
||| |||| ||||||| ||||||||| ||||||
TEXT TCTATACT-GCGCGTTTGGAGAAATAAAATAGT
$ python fails.py
Segmentation fault
If I build from pywfa source (using the exact steps from the README), the segfault goes away and the wildcard works as expected:
$ python fails.py
ALIGNMENT 3M1X4M1D7M1I9M1X6M
ETRACE 1X1D1I1X
CIGAR 8M1D7M1I16M
PATTERN TCTTTACTCGCGCGTT-GGAGAAATACAATAGT
||| |||| ||||||| ||||||||| ||||||
TEXT TCTATACT-GCGCGTTTGGAGAAATAAAATAGT