correct header with samtools mpileup
0
0
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 :)

assembly • 969 views
ADD COMMENT
1
Entering edit mode

the output of samtools pileup is NOT a SAM/BAM format.

ADD REPLY
0
Entering edit mode

Do you try to see the output mpileup with samtools?

ADD REPLY
0
Entering edit mode

they are ASCII text, with very long lines and no header

NC_045512.2     12      A       9       ^].^].^].^].^].^].^].^].^].     EEEEEEEEE
NC_045512.2     13      T       10      .........^].    DFFBFGFFF>
NC_045512.2     14      A       10      ..........      FFFFG>GFGD
NC_045512.2     15      C       10      ..........      8BFEFDEFFF
ADD REPLY
1
Entering edit mode

Yes of course, that is the mpileup format. What actually were you expecting?

ADD REPLY
0
Entering edit mode

So I should not expect any header? OK, will try to check out, why my downstream tool is asking for it

Thanks!

ADD REPLY
0
Entering edit mode

Pileup files have no header. Bam files absolutely do have headers. You don't run samtools view on a pileup file.

ADD REPLY

Login before adding your answer.

Traffic: 1564 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6