Hi
I used export2sam.pl to convert export.txt to .sam. I checked the newly generated SAM file with header @PG. When I tried to use command line, like
" samtools view -b in.sam -o out.bam "
to generate BAM file, it occurs errors:
[bam_header_read] EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[main_samview] fail to read the header from "in.sam".
Does anybody know what's wrong with it? What command line I should use for converting SAM to BAM
Thanks
I used export2sam.pl to convert export.txt to .sam. I checked the newly generated SAM file with header @PG. When I tried to use command line, like
" samtools view -b in.sam -o out.bam "
to generate BAM file, it occurs errors:
[bam_header_read] EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[main_samview] fail to read the header from "in.sam".
Does anybody know what's wrong with it? What command line I should use for converting SAM to BAM
Thanks
Comment