Mash icon indicating copy to clipboard operation
Mash copied to clipboard

ERROR: Did not find fasta records

Open HAugustijn opened this issue 6 years ago • 4 comments

I am using Mash with good results, but in about 1/10 times, I get the following error when sketching: ERROR: Did not find fasta records in "1234.fna".

If I take a look at the named fasta file, then it is a valid fasta file including a single sequence. If I rerun Mash on the same input files, Mash will run without an error.

I am using the following command: mash sketch -k 16 -p 10 -s 1000 -a /path/to/*.fna

HAugustijn avatar Feb 05 '20 14:02 HAugustijn

I noticed that this only occurs when multi threading, I never encounter this issue by using only one thread. In addition, when using multi threading (-p 10) the errors occur more frequently if my server becomes more crowded.

HAugustijn avatar Mar 18 '20 11:03 HAugustijn

I have the same error when using multi-thread. It is really strange. What could be the reason?

THanks

Jianshu

jianshu93 avatar Dec 22 '21 16:12 jianshu93

In my case, my run failed showing ERROR: Did not find fasta records in "input files". when running mash sketch. I investigate the last reported fasta file and it was not properly formated. After correcting it, it was solved.

Cheers

adriangeerre avatar May 18 '23 09:05 adriangeerre

Try running mash with GNU parallel. In my case, the native -p flag made the function call the wrong file as having a bad format. Running with GNU parallel made it much easier to find the bad fasta.

HackenDirker avatar Aug 11 '23 14:08 HackenDirker