correct header with samtools mpileup
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 :)
• 1,700 views
•
link
0 answers
No answers yet.
Log in to answer this question.
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.
the output of
samtools pileupis NOT a SAM/BAM format.