Entering edit mode
4.2 years ago
evafinegan
•
0
Hello,
I am using freebayes for SNP calling using multiple input bam files:
fasta_generate_regions.py genome.fasta.fai 100000 > genome.txt
export TMPDIR=.
freebayes-parallel genome.txt 8 \
-f /genome.fasta \
-L bam.txt > freebayes.vcf
But it gives error:
[E::bgzf_read] Read block operation failed with error -1 after 75 of 178 bytes
terminate called after throwing an instance of 'std::runtime_error'
what(): sam_read1 return status: -4 file: sample35.bam
It generates a vcf but log file shows this error. Thank you!
looks like you BAM are corrupted, check if that is true with
samtools flagstat sample35.bam
Thank you, here is what I got for one of bam files which were pointed out in the error: