lh3 / yak

Yet another k-mer analyzer
MIT License
113 stars 8 forks source link

Fix/segfault #15

Open mphschmitt opened 2 years ago

mphschmitt commented 2 years ago

When working on a file that doesn't exist, a segfault occurs:

./yak count -k31 -b37 -t16 -o pat.yak paternal.fq.gz
[1]    27444 segmentation fault (core dumped)  ./yak count -k31 -b37 -t16 -o pat.yak paternal.fq.gz

This mr fixes it with the following behavior:

./yak count -k31 -b37 -t16 -o pat.yak paternal.fq.gz
ERROR: file paternal.fq.gz does not exist.

Also, add the binary output to gitignore.