This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bwa mem error: [fread] Unexpected end of file

Whenever I using bwa mem command:

bwa mem -t 10 -M ${classpath}/genome.fa 1.fastq > test.sam

or like that:

bwa mem -t 10  ${classpath}/genome.fa 1.fastq 2.fastq >test.sam

it just output the error message:

[M::bwa_idx_load_from_disk] read 0 ALT contigs
[fread] Unexpected end of file

Is the problem of bwaIndex file ?

Thank you for your suggestion.

alignment bwa

2 answers

Did you checked this post?

I would rebuild the index and try again. In my experience, errors like this usually come from corrupted files.

Log in to answer this question.