Visualization Of Short Read Mapping To The Reference Sequence
3
0
Entering edit mode
12.7 years ago
Leo ▴ 130

Hi

Is there any script that can visualize the short read mapping to the reference sequence? such as this effect.

Great thanks!

mapping • 4.7k views
ADD COMMENT
2
Entering edit mode
12.7 years ago

if you want a script that prints the content of a bam to stdout, I wrote a tool based on samtools tview at http://code.google.com/p/variationtoolkit/

$ echo -e "ref\t3\nref2\t2" |\
  vcfttview -x 3 -B toy.bam -R toy.fa

>ref:3

1         11              21        31         41        51        61           
AGCATGTTAGATAA****GATA**GCTGTGCTAGTAGGCAG*TCAGCGCCATNNNNNNNNNNNNNNNNNNNNNNNNNNNN
      ........    ....  ......K.K......K. ..........                            
      ........AGAG....***...      ,,,,,    ,,,,,,,,,                            
        ......GG**....AA                                                        
        ..C...**** ...**...>>>>>>>>>>>>>>T.....

>ref2:2

1         11            21        31        41        51        61              
aggttttataaaac****aattaagtctacagagcaactacgcgNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
.............Y    ..W...................                                        
..............****..A...                                                        
 .............****..A...T.                                                      
     .........AAAT.............                                                 
         C...T****....................                                          
           ..T****.....................                                         
             T****......................
ADD COMMENT
0
Entering edit mode

great thanks for your tools.

ADD REPLY
1
Entering edit mode
12.7 years ago

For small numbers of sequences of ~20bp or longer you can use blat and then visualize the alignments in the genome browser. But, for larger numbers of reads you probably want to use an aligner like bwa and then load the result into a viewer like IGV.

ADD COMMENT
1
Entering edit mode
12.7 years ago
Joseph Hughes ★ 3.0k

Tablet is also a good tool for visualizing short read alignments to a reference sequence.

ADD COMMENT

Login before adding your answer.

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