i am using samtools view option to convert sam2bam (sam file generated using novoalign version 2.05.17) but am getting an error.

[samopen] no @SQ lines in the header. [sam_read1] missing header? Abort!

can someone help? the aim is to sort the bam file and then call snps/indels using maq

asked 18 May '10, 13:13

bin's gravatar image

bin
112
accept rate: 0%

edited 18 May '10, 14:41

ECO's gravatar image

ECO ♦♦
186323


Hi, Try to include the FASTA reference as one of your arguments to see if that fixes your problem? (i.e., samtools view -T FASTA_FILE ... )

Q

link

answered 19 May '10, 06:58

qtrinh's gravatar image

qtrinh
161
accept rate: 0%

thanks qtrinh. i did that but am getting a segmentaton fault. [sam_header_read2] 28406716 sequences loaded. Segmentation fault

link

answered 19 May '10, 16:03

bin's gravatar image

bin
112
accept rate: 0%

Guys, this new format, if you're commenting on an answer, please use the "comment" button --->

(21 May '10, 12:05) ECO ♦♦

I am not sure then ... can you do 'samtools view BAM_FILE > tmp' and see if you get a segmentation fault?

link

answered 21 May '10, 11:29

qtrinh's gravatar image

qtrinh
161
accept rate: 0%

novoalign -o SAM should create the @SQ records but if you use native format and then novo2sam.pl there will be no @SQ records.

Try running novoalign -o SAM with just a few reads and then take the SAM header records from this file and add them to the file from novo2sam.pl

link

answered 21 May '10, 20:54

sparks's gravatar image

sparks
1
accept rate: 0%

sparks, why would one do novo2sam.pl for purpose of using maq (as i intends to do for snp/indel calling) instead of doing novo2map and then do map2cns, cns2snp, snpfilter and then get the snps

link

answered 24 May '10, 11:51

bin's gravatar image

bin
112
accept rate: 0%

Hi Bin, The poster was asking about samtools view and sam data built with novo2sam.pl, so I was suggesting a method to get the @SQ records into the SAM file. Aside from that I prefer samtools to maq because it was designed to handle indels in consensus and snp calling, while maq adds indels on as an after thought. You also have a selection of realigners (GATK & DNAA) that can help resolve consensus sequence around indels in sam alignments. I avoid using any aligners, snp callers, viewers etc. that don't handle indels.

link

answered 24 May '10, 17:08

sparks's gravatar image

sparks
1
accept rate: 0%

@DNAA - you're thinking about SRMA (http://srma.sf.net). I am the author of both :)

(15 Jun '10, 13:25) nilshomer

DNAA does indel realignment? Where, how? I see nothing about it at dnaa.sourceforge.net

Thanks, -Aaron

link

answered 15 Jun '10, 04:53

amackey's gravatar image

amackey
1
accept rate: 0%

Look at SRMA (http://srma.sf.net).

(15 Jun '10, 13:26) nilshomer

Aaron, Its SRMA not DNAA, my mistake, I thought we downloaded it as part of DNAA but obviously not.

link

answered 15 Jun '10, 05:44

sparks's gravatar image

sparks
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×5
×2
×1

Asked: 18 May '10, 13:13

Seen: 1,900 times

Last updated: 31 Oct '11, 06:44

powered by OSQA