Entering edit mode
3.5 years ago
storm1907
▴
30
Hello,
Samtools Mpileup does not generate correct headers
Have error, when piling several files in the folder with samtools mpileup -A -E -f $reference $INPATH/*.bam > piled
.
When trying to run downstream applications (and view header with samtools view), I get error like "fail to read the header of file.bam"
Headers in my sam and bam files are correct
Anyone else has this problem? thank you :)
the output of
samtools pileup
is NOT a SAM/BAM format.Do you try to see the output mpileup with samtools?
they are ASCII text, with very long lines and no header
Yes of course, that is the mpileup format. What actually were you expecting?
So I should not expect any header? OK, will try to check out, why my downstream tool is asking for it
Thanks!
Pileup files have no header. Bam files absolutely do have headers. You don't run samtools view on a pileup file.