error: BAM to FASTQ
0
0
Entering edit mode
4.1 years ago
mailard ▴ 30

Hi! I run

samtools bam2fq bx_mapped.bam

and my result is

[E::sam_parse1] no SQ lines present in the header [bam2fq_mainloop] Failed to read bam record.
[bam2fq_mainloop] Error writing to FASTx files.: No such file or directory [M::bam2fq_mainloop] discarded 0 singletons
[M::bam2fq_mainloop] processed 0 reads

How can I fix it?

Thank you for your answer!

samtools fastq bam • 2.0k views
ADD COMMENT
0
Entering edit mode

Try remapping your BAM (which aligner did you use?). It looks to be corrupted/incorrect as the header does not contain reference chromosome lines.

samtools view -h BAMFILE | less
ADD REPLY
0
Entering edit mode

I use histat2 Thanks for your help, I decided my problem!

ADD REPLY

Login before adding your answer.

Traffic: 1617 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