KMC icon indicating copy to clipboard operation
KMC copied to clipboard

KMC yields an error on fixed width fasta files

Open mesti90 opened this issue 1 year ago • 4 comments

I tried to run kmc (version 3.2.2) on fasta files downloaded from the NCBI ftp server. The program gave only the following error message: Error: unknown exception

After many hours I tried to change the fasta file from fixed width to one-line sequence format, and kmc finally worked. Please add (1) a meaningful error message (2) support for fixed width fasta files

mesti90 avatar Apr 26 '23 05:04 mesti90

Hi, thank you. The error message should definitely be more informative. I think I have a fix for this, but this is not in the public version yet. fixed-width fasta (or multif-asta) is handled in kmc with -fm switch. I guess you were using -fa. If no, please let me know what was your input file and the exact command line to run KMC. Thanks again for reporting this and using KMC!

marekkokot avatar Apr 26 '23 05:04 marekkokot

@marekkokot Thank you for your quick answer. I used the -fa switch, thanks for the info.

mesti90 avatar Apr 26 '23 05:04 mesti90

Great, thanks. I will keep this issue opened until I fix the error message.

marekkokot avatar Apr 26 '23 05:04 marekkokot

I also encountered this problem and after using -fm it's cool to get the right result

yeeus avatar Sep 24 '23 14:09 yeeus