Hi,

I have SAM files where the there are = signs for matching nucleotides. Is there an easy way (i.e. using samtools) to convert these to the corresponding ACTG letters? It is confusing GATK UnifiedGenotyper and I cannot find any SNPs.

asked 02 Jul '10, 09:39

szj's gravatar image

szj
3114
accept rate: 0%


What about piping it through samtools a few times?

 `samtools view -hS <in.sam> | samtools view -h - > <fixed.sam>`
link

answered 30 Jul '10, 22:45

nilshomer's gravatar image

nilshomer
764
accept rate: 0%

Might this Picard method help? I saw it mentioned on the mailing list at some point. Alec Wysoker said:

"The Picard project contains a (not very well tested) method for constructing a reference string from read bases, CIGAR and MD: net.sf.samtools.util.SequenceUtil.makeReferenceFromAlignment()"

link

answered 30 Jul '10, 16:50

Jenn's gravatar image

Jenn
3629
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:

×13
×2

Asked: 02 Jul '10, 09:39

Seen: 691 times

Last updated: 30 Jul '10, 22:45

powered by OSQA