How to visualize reads at per base position for a SNP
2
0
Entering edit mode
10.3 years ago
Saad Khan ▴ 440

Hi I want to visualize using R/bioconductor a position in the bam file which contains putative SNP. I want to see and visualize how the bases in the reads mapping at that position are distributed. How should I go about it. Or is there a solution already available.

SNP bam • 2.8k views
ADD COMMENT
0
Entering edit mode

samtools tview is a quick way to visualize SNPs.

ADD REPLY
2
Entering edit mode
10.3 years ago

Call samtools tview from R (http://www.htslib.org/man/samtools/) with option -d T (output=TEXT).

ADD COMMENT
0
Entering edit mode
10.3 years ago

IGV does exactly what you want.

ADD COMMENT
0
Entering edit mode

I am looking for a more R based solution.

ADD REPLY
2
Entering edit mode

I don't think these tools exist in R since everyone already uses IGV or UCSC for visualizing. The only NGS visualization package I can think of for bioconductor is gViz or ggbio but it probably doesn't do what you are looking for. You can look at coverage but I don't think you can look at individual SNPs or reads.

ADD REPLY

Login before adding your answer.

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